From 86571ee758431fec804c546458c6e51732b26b0d Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mar 20 2013 22:47:12 +0000 Subject: Latest uptream (2.0.1) and a py3 subpackage. --- diff --git a/.gitignore b/.gitignore index ab5ef45..fbdd55f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /zc.buildout-1.5.2.tar.gz +/zc.buildout-2.0.1.tar.gz diff --git a/python-zc-buildout.spec b/python-zc-buildout.spec index d4deb94..56d7384 100644 --- a/python-zc-buildout.spec +++ b/python-zc-buildout.spec @@ -1,17 +1,38 @@ +%if 0%{?fedora} +%global with_python3 1 +%{!?py3ver: %global py3ver %(%{__python3} -c "import sys ; print(sys.version[:3])")} +%endif +%{!?py2ver: %global py2ver %(%{__python} -c "import sys ; print sys.version[:3]")} + + %global modname zc.buildout Summary: System for managing development buildouts -Name: python-%(echo %{modname} | sed -r 's|\.|-|') -Version: 1.5.2 -Release: 4%{?dist} +Name: python-zc-buildout +Version: 2.0.1 +Release: 1%{?dist} Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz License: ZPLv2.1 Group: Development/Libraries BuildArch: noarch URL: http://buildout.org -BuildRequires: python2-devel -BuildRequires: python-setuptools +BuildRequires: python2-devel +BuildRequires: python-setuptools + +BuildRequires: python-zope-testing +BuildRequires: python-nose +BuildRequires: python-manuel + +%if 0%{with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +BuildRequires: python3-zope-testing +BuildRequires: python3-nose +BuildRequires: python3-manuel +%endif + Requires: python-setuptools %description @@ -21,29 +42,92 @@ applications from multiple parts, Python or otherwise. An application may actually contain multiple programs, processes, and configuration settings. +%if 0%{with_python3} +%package -n python3-zc-buildout +Summary: System for managing development buildouts +Group: Development/Libraries + +Requires: python3-setuptools + +%description -n python3-zc-buildout +The Buildout project provides support for creating applications, +especially Python applications. It provides tools for assembling +applications from multiple parts, Python or otherwise. An application +may actually contain multiple programs, processes, and configuration +settings. +%endif + %prep %setup -q -n %{modname}-%{version} +rm -rf %{modname}.egg* + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + %build python setup.py build +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif %install rm -rf $RPM_BUILD_ROOT -python setup.py install --root=$RPM_BUILD_ROOT +python setup.py install -O1 --skip-build --root=%{buildroot} +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} +popd +%endif + +#%%check +#%%if 0%%{?rhel} +#PYTHONPATH=$(pwd) nosetests src/zc/buildout/tests.py +#%%else +#PYTHONPATH=$(pwd) nosetests-%%{py2ver} src/zc/buildout/tests.py +#%%endif +# +#%%if 0%%{?with_python3} +#pushd %%{py3dir} +#PYTHONPATH=$(pwd) nosetests-%%{py3ver} src/zc/buildout/tests.py +#popd +#%%endif + %files %defattr(-,root,root,-) -%doc CHANGES.txt README.txt todo.txt DEVELOPERS.txt SYSTEM_PYTHON_HELP.txt doc/* specifications/ +%doc CHANGES.rst README.rst todo.txt DEVELOPERS.txt %{python_sitelib}/%(echo %{modname} | sed -r 's|\.|/|') %dir %{python_sitelib}/zc/ %{_bindir}/buildout -%exclude %{_usr}/README.txt +%exclude %{_usr}/README.rst %exclude %{python_sitelib}/%(echo %{modname} | sed -r 's|\.|/|')/*.txt %{python_sitelib}/%{modname}-*.egg-info %{python_sitelib}/%{modname}-*-nspkg.pth +%if 0%{?with_python3} +%files -n python3-zc-buildout +%doc CHANGES.rst README.rst todo.txt DEVELOPERS.txt +%{python3_sitelib}/%(echo %{modname} | sed -r 's|\.|/|') +%dir %{python3_sitelib}/zc/ +%{_bindir}/buildout +%exclude %{_usr}/README.rst +%exclude %{python3_sitelib}/%(echo %{modname} | sed -r 's|\.|/|')/*.txt +%{python3_sitelib}/%{modname}-*.egg-info +%{python3_sitelib}/%{modname}-*-nspkg.pth +%endif + %changelog +* Mon Feb 25 2013 Ralph Bean - 2.0.1-1 +- Latest upstream. +- Added python3 subpackage. +- Added %%check section but left it commented out (not working under mock). + * Thu Feb 14 2013 Fedora Release Engineering - 1.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index ed64b51..f588254 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -87f7b3f8d13926c806242fd5f6fe36f7 zc.buildout-1.5.2.tar.gz +393380126d8c094a32df556ec0abd506 zc.buildout-2.0.1.tar.gz