Blame SPECS/python-zope-interface.spec

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