Latest upstream and conditionalized py3 support.

epel8
Ralph Bean 12 years ago
parent 345691c1b3
commit 8b847e59b7

1
.gitignore vendored

@ -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

@ -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 <rbean@redhat.com> - 4.0.2-1
- Latest upstream.
- Conditionalized python3 subpackage for el6.
* Thu Oct 18 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.5.2-1
- Update to 3.5.2 (ZTK 1.1.5)

@ -1 +1 @@
6e8af2a16157a74885d4f0d88137cefb zope.event-3.5.2.tar.gz
e08dd299d428d77a1cfcbfe841b81872 zope.event-4.0.2.tar.gz

Loading…
Cancel
Save