Blame SPECS/python-zope-interface.spec

adb559
# Filter private shared library provides
adb559
%filter_provides_in %{python_sitearch}/zope/interface/.*\.so$
adb559
%filter_setup
adb559
adb559
%if 0%{?fedora} > 12
adb559
%global with_python3 1
adb559
%{!?py3ver: %global py3ver %(%{?__python3} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
adb559
%endif
adb559
adb559
adb559
Name:		python-zope-interface
adb559
Version:	4.0.5
4684c9
Release:	4%{?dist}
adb559
Summary:	Zope 3 Interface Infrastructure
adb559
Group:		Development/Libraries
adb559
License:	ZPLv2.1
adb559
URL:		http://pypi.python.org/pypi/zope.interface
adb559
Source0:	http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip
adb559
BuildRequires:	python2-devel
adb559
BuildRequires:	python-setuptools
adb559
BuildRequires:	python-nose
adb559
# since F14
adb559
Obsoletes:	python-zope-filesystem <= 1-8
adb559
adb559
%if 0%{?with_python3}
adb559
BuildRequires:  python3-devel
adb559
BuildRequires:  python3-setuptools
adb559
BuildRequires:  python3-nose
adb559
%endif
adb559
adb559
%description
adb559
Interfaces are a mechanism for labeling objects as conforming to a given API
adb559
or contract.
adb559
adb559
This is a separate distribution of the zope.interface package used in Zope 3.
adb559
adb559
%if 0%{?with_python3}
adb559
%package -n python3-zope-interface
adb559
Summary:	Zope 3 Interface Infrastructure
adb559
Group:		Development/Libraries
adb559
adb559
%description -n python3-zope-interface
adb559
Interfaces are a mechanism for labeling objects as conforming to a given API
adb559
or contract.
adb559
adb559
This is a separate distribution of the zope.interface package used in Zope 3.
adb559
%endif
adb559
adb559
%prep
adb559
%setup -n zope.interface-%{version} -q
adb559
adb559
rm -rf %{modname}.egg-info
adb559
adb559
%if 0%{?with_python3}
adb559
rm -rf %{py3dir}
adb559
cp -a . %{py3dir}
adb559
%endif
adb559
adb559
%build
adb559
CFLAGS="%{optflags}" %{__python} setup.py build
adb559
adb559
%if 0%{?with_python3}
adb559
pushd %{py3dir}
adb559
CFLAGS="%{optflags}" %{__python3} setup.py build
adb559
popd
adb559
%endif
adb559
adb559
adb559
%install
adb559
# python3 block
adb559
%if 0%{?with_python3}
adb559
pushd %{py3dir}
adb559
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
adb559
adb559
# Will put docs in %%{_docdir} instead
adb559
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt
adb559
adb559
# C files don't need to be packaged
adb559
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
adb559
popd
adb559
%endif
adb559
adb559
# do it again for python2
adb559
%{__python} setup.py install -O1 --skip-build --root  %{buildroot}
adb559
adb559
# Will put docs in %%{_docdir} instead
adb559
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/{,tests/}*.txt
adb559
adb559
# C files don't need to be packaged
adb559
%{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
adb559
adb559
%check
adb559
PYTHONPATH=$(pwd) nosetests
adb559
adb559
%if 0%{?with_python3}
adb559
pushd %{py3dir}
adb559
PYTHONPATH=$(pwd) nosetests-%{py3ver}
adb559
popd
adb559
%endif
adb559
adb559
%files
adb559
%defattr(-,root,root,-)
adb559
%doc README.rst LICENSE.txt CHANGES.rst COPYRIGHT.txt docs/
adb559
%{python_sitearch}/zope/interface/
adb559
# Co-own %%{python_sitearch}/zope/
adb559
%dir %{python_sitearch}/zope/
adb559
%exclude %{python_sitearch}/zope/interface/tests/
adb559
%exclude %{python_sitearch}/zope/interface/common/tests/
adb559
%{python_sitearch}/zope.interface-*.egg-info
adb559
%{python_sitearch}/zope.interface-*-nspkg.pth
adb559
adb559
%if 0%{?with_python3}
adb559
%files -n python3-zope-interface
adb559
%doc README.rst LICENSE.txt CHANGES.rst COPYRIGHT.txt docs/
adb559
%{python3_sitearch}/zope/interface/
adb559
# Co-own %%{python3_sitearch}/zope/
adb559
%dir %{python3_sitearch}/zope/
adb559
%exclude %{python3_sitearch}/zope/interface/tests/
adb559
%exclude %{python3_sitearch}/zope/interface/common/tests/
adb559
%{python3_sitearch}/zope.interface-*.egg-info
adb559
%{python3_sitearch}/zope.interface-*-nspkg.pth
adb559
%endif
adb559
adb559
%changelog
4684c9
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.0.5-4
4684c9
- Mass rebuild 2014-01-24
4684c9
4684c9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.0.5-3
4684c9
- Mass rebuild 2013-12-27
4684c9
adb559
* Fri May 17 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 4.0.5-2
adb559
- Remove the python-zope-event soft dependency.
adb559
adb559
* Thu Apr 11 2013 Luke Macken <lmacken@redhat.com> - 4.0.5-1
adb559
- Update to 4.0.5 (#891046)
adb559
- Run the unit tests with nose
adb559
adb559
* Tue Mar 26 2013 David Malcolm <dmalcolm@redhat.com> - 4.0.4-2
adb559
- remove rhel clause from python3 guard
adb559
adb559
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.0.4-1
adb559
- Latest upstream
adb559
- README and CHANGES moved from .txt to .rst.
adb559
adb559
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-5
adb559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
adb559
adb559
* Thu Dec 06 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-4
adb559
- Wrap files section in a python3 conditional.
adb559
adb559
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-3
adb559
- Typofix to python-zope-event requirement.
adb559
adb559
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-2
adb559
- Added dependency on python-zope-event.
adb559
adb559
* Wed Nov 28 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-1
adb559
- Latest upstream release.
adb559
- Python3 subpackage.
adb559
- Rearrange the way we package docs.
adb559
adb559
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.0-2
adb559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
adb559
adb559
* Sat Jan  7 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.7.0-1
adb559
- Update to 3.7.0 (ZTK 1.1.3)
adb559
adb559
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-8
adb559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
adb559
adb559
* Mon Oct  4 2010 Robin Lee <cheeselee@fedoraproject.org> - 3.6.1-7
adb559
- Obsoletes python-zope-filesystem
adb559
adb559
* Wed Sep 29 2010 jkeating - 3.6.1-6
adb559
- Rebuilt for gcc bug 634757
adb559
adb559
* Sun Sep 19 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-5
adb559
- Move the texts files to %%doc
adb559
- Exclude the tests from installation
adb559
- Filter private shared library provides
adb559
adb559
* Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4
adb559
- Run the test suite
adb559
- Don't move the text files
adb559
adb559
* Tue Aug 31 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-3
adb559
- Remove python-zope-filesystem from requirements
adb559
- Own %%{python_sitearch}/zope/
adb559
- BR: python-setuptools-devel renamed to python-setuptools
adb559
- Spec cleaned up
adb559
adb559
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.6.1-2
adb559
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
adb559
adb559
* Tue Jun 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-1
adb559
- update to 3.6.1
adb559
- License provided in the source package
adb559
- include the tests
adb559
adb559
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-2
adb559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
adb559
adb559
* Sun Jul 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.2-1
adb559
- update to 3.5.2
adb559
adb559
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 3.5.1-3
adb559
- Add python-setuptools-devel to the BuildRequires, so we generate egg-info
adb559
adb559
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-2
adb559
- use correct source filename (upstream switched from zip to tar.gz)
adb559
adb559
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-1
adb559
- update to 3.5.1
adb559
adb559
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
adb559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
adb559
adb559
* Wed Dec 17 2008 Conrad Meyer <konrad@tylerc.org> - 3.5.0-3
adb559
- Make compatible with the new python-zope-filesystem.
adb559
adb559
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.5.0-2
adb559
- Rebuild for Python 2.6
adb559
adb559
* Sat Nov 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.0-1
adb559
- update to 3.5.0
adb559
adb559
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.4.1-1
adb559
- update to 3.4.1
adb559
- incorporate suggestions from Felix Schwarz:
adb559
  - new summary and description
adb559
  - new upstream URL (old one out of date)
adb559
  - don't package test files
adb559
  - include more documentation
adb559
adb559
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.3.0-1
adb559
- update to 3.3.0
adb559
- update source URL to include versioned directory and new tarball name
adb559
- drop the gcc 4.x compatibility patch, no longer needed
adb559
- don't run the test suite as it now depends on zope.testing
adb559
- exclude _zope_interface_coptimizations.c source from the binary package
adb559
adb559
* Thu Feb 14 2008 Paul Howarth <paul@city-fan.org> 3.0.1-10
adb559
- rebuild with gcc 4.3.0 for Fedora 9
adb559
adb559
* Fri Jan  4 2008 Paul Howarth <paul@city-fan.org> 3.0.1-9
adb559
- tweak %%files list to pull in egg info file when necessary
adb559
- fix permissions on shared objects (silence rpmlint)
adb559
adb559
* Wed Aug 29 2007 Paul Howarth <paul@city-fan.org> 3.0.1-8
adb559
- update license tag to ZPLv2.1 in anticipation of this tag being approved
adb559
adb559
* Sat Dec  9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-7
adb559
- rebuild against python 2.5 for Rawhide
adb559
adb559
* Tue Oct 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-6
adb559
- add %%check section
adb559
adb559
* Wed Sep 20 2006 Paul Howarth <paul@city-fan.org> 3.0.1-5
adb559
- dispense with %%{pybasever} macro and python-abi dependency, not needed from
adb559
  FC4 onwards
adb559
- include ZPL 2.1 license text
adb559
- add reference in %%description to origin of patch
adb559
- change License: tag from "ZPL 2.1" to "Zope Public License" to shut rpmlint up
adb559
adb559
* Thu Aug 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-4
adb559
- files list simplified as .pyo files are no longer %%ghost-ed
adb559
adb559
* Tue May  9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-3
adb559
- import from PyVault Repository
adb559
- rewrite in Fedora Extras style
adb559
adb559
* Tue Aug 23 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-2
adb559
- add bug fix for gcc 4
adb559
adb559
* Mon Feb 07 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-1
adb559
- new rpm
adb559