From 8b847e59b7d7902de234bf00d7c1c1d9c74ad663 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Feb 14 2013 15:35:58 +0000 Subject: Latest upstream and conditionalized py3 support. --- diff --git a/.gitignore b/.gitignore index 55b5b4c..84b9c5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ zope.event-3.5.0-1.tar.gz /zope.event-3.5.1.tar.gz /zope.event-3.5.2.tar.gz +/zope.event-4.0.2.tar.gz diff --git a/python-zope-event.spec b/python-zope-event.spec index c618dd6..40d9b3c 100644 --- a/python-zope-event.spec +++ b/python-zope-event.spec @@ -1,5 +1,9 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + Name: python-zope-event -Version: 3.5.2 +Version: 4.0.2 Release: 1%{?dist} Summary: Zope Event Publication Group: Development/Languages @@ -24,6 +28,7 @@ zope.event can be found in zope.component.) This package contains the version for Python 2. +%if 0%{?with_python3} %package -n python3-zope-event Summary: Zope Event Publication (Python 3) @@ -35,14 +40,25 @@ on which more sophisticated event dispatching systems can be built. zope.event can be found in zope.component.) This package contains the version for Python 3. +%endif %prep %setup -q -n zope.event-%{version} +rm -rf %{modname}.egg-info + +%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 # build the sphinx documents pushd docs @@ -52,12 +68,20 @@ popd %install -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +popd +%endif +%{__python} setup.py install -O1 --skip-build --root %{buildroot} %check %{__python} setup.py test +%if 0%{?with_python3} +pushd %{py3dir} %{__python3} setup.py test +popd +%endif %files %doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt @@ -68,6 +92,7 @@ popd %{python_sitelib}/zope.event-*.egg-info %{python_sitelib}/zope.event-*-nspkg.pth +%if 0%{?with_python3} %files -n python3-zope-event %doc CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt %doc docs/_build/html/ @@ -77,10 +102,13 @@ popd %dir %{python3_sitelib}/zope/ %{python3_sitelib}/zope.event-*.egg-info %{python3_sitelib}/zope.event-*-nspkg.pth - - +%endif %changelog +* Thu Feb 14 2013 Ralph Bean - 4.0.2-1 +- Latest upstream. +- Conditionalized python3 subpackage for el6. + * Thu Oct 18 2012 Robin Lee - 3.5.2-1 - Update to 3.5.2 (ZTK 1.1.5) diff --git a/sources b/sources index 4535f4f..5be5f8b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e8af2a16157a74885d4f0d88137cefb zope.event-3.5.2.tar.gz +e08dd299d428d77a1cfcbfe841b81872 zope.event-4.0.2.tar.gz