You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
350 lines
12 KiB
350 lines
12 KiB
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
%endif
|
|
|
|
# Filter private shared library provides
|
|
%filter_provides_in %{python2_sitearch}/zope/interface/.*\.so$
|
|
%filter_setup
|
|
|
|
%{!?py2ver: %global py2ver %(%{?__python2} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
|
|
%if 0%{?fedora}
|
|
%global with_python3 1
|
|
%endif
|
|
|
|
%if 0%{?with_python3}
|
|
%{!?py3ver: %global py3ver %(%{?__python3} -c 'import sys; print(sys.version[0:3])' 2>/dev/null)}
|
|
%endif
|
|
|
|
|
|
Name: python-zope-interface
|
|
Version: 4.3.3
|
|
Release: 3%{?dist}
|
|
Summary: Zope 3 Interface Infrastructure
|
|
Group: Development/Libraries
|
|
License: ZPLv2.1
|
|
URL: https://pypi.io/project/zope.interface
|
|
Source0: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
|
|
|
|
%description
|
|
Interfaces are a mechanism for labeling objects as conforming to a given API
|
|
or contract.
|
|
|
|
This is a separate distribution of the zope.interface package used in Zope 3.
|
|
|
|
%package -n python2-zope-interface
|
|
Summary: Zope 3 Interface Infrastructure
|
|
Group: Development/Libraries
|
|
%{?python_provide:%python_provide python2-zope-interface}
|
|
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python2-setuptools
|
|
BuildRequires: python2-nose
|
|
BuildRequires: python2-zope-event
|
|
|
|
Requires: python2-zope-event
|
|
|
|
# since F14
|
|
Obsoletes: python-zope-filesystem <= 1-8
|
|
|
|
%description -n python2-zope-interface
|
|
Interfaces are a mechanism for labeling objects as conforming to a given API
|
|
or contract.
|
|
|
|
This is a separate distribution of the zope.interface package used in Zope 3.
|
|
|
|
%if 0%{?with_python3}
|
|
%package -n python3-zope-interface
|
|
Summary: Zope 3 Interface Infrastructure
|
|
Group: Development/Libraries
|
|
%{?python_provide:%python_provide python3-zope-interface}
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-nose
|
|
BuildRequires: python3-zope-event
|
|
|
|
Requires: python3-zope-event
|
|
|
|
%description -n python3-zope-interface
|
|
Interfaces are a mechanism for labeling objects as conforming to a given API
|
|
or contract.
|
|
|
|
This is a separate distribution of the zope.interface package used in Zope 3.
|
|
%endif
|
|
|
|
%prep
|
|
%setup -n zope.interface-%{version} -q
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
|
|
%build
|
|
%py2_build
|
|
%if 0%{?with_python3}
|
|
%py3_build
|
|
%endif
|
|
|
|
|
|
%install
|
|
# python3 block
|
|
%if 0%{?with_python3}
|
|
%py3_install
|
|
|
|
# Will put docs in %%{_docdir} instead
|
|
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt
|
|
|
|
# C files don't need to be packaged
|
|
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
%endif
|
|
|
|
# do it again for python2
|
|
%py2_install
|
|
|
|
# Will put docs in %%{_docdir} instead
|
|
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/{,tests/}*.txt
|
|
|
|
# C files don't need to be packaged
|
|
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
%check
|
|
PYTHONPATH=$(pwd) nosetests-%{py2ver}
|
|
%if 0%{?with_python3}
|
|
PYTHONPATH=$(pwd) nosetests-%{py3ver}
|
|
%endif
|
|
|
|
%files -n python2-zope-interface
|
|
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
|
|
%license LICENSE.txt
|
|
%{python2_sitearch}/zope/interface/
|
|
# Co-own %%{python2_sitearch}/zope/
|
|
%dir %{python2_sitearch}/zope/
|
|
%exclude %{python2_sitearch}/zope/interface/tests/
|
|
%exclude %{python2_sitearch}/zope/interface/common/tests/
|
|
%{python2_sitearch}/zope.interface-*.egg-info
|
|
%{python2_sitearch}/zope.interface-*-nspkg.pth
|
|
|
|
%if 0%{?with_python3}
|
|
%files -n python3-zope-interface
|
|
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
|
|
%license LICENSE.txt
|
|
%{python3_sitearch}/zope/interface/
|
|
# Co-own %%{python3_sitearch}/zope/
|
|
%dir %{python3_sitearch}/zope/
|
|
%exclude %{python3_sitearch}/zope/interface/tests/
|
|
%exclude %{python3_sitearch}/zope/interface/common/tests/
|
|
%{python3_sitearch}/zope.interface-*.egg-info
|
|
%{python3_sitearch}/zope.interface-*-nspkg.pth
|
|
%endif
|
|
|
|
%changelog
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Wed Dec 21 2016 Jerry James <loganjerry@gmail.com> - 4.3.3-2
|
|
- Rebuild for Python 3.6 again
|
|
|
|
* Wed Dec 14 2016 Ralph Bean <rbean@redhat.com> - 4.3.3-1
|
|
- new version
|
|
|
|
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 4.3.2-2
|
|
- Rebuild for Python 3.6
|
|
|
|
* Tue Sep 27 2016 Ralph Bean <rbean@redhat.com> - 4.3.2-1
|
|
- new version
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 4.2.0-1
|
|
- new version
|
|
|
|
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 4.1.3-5
|
|
- Modernize python macros.
|
|
- Provide an explicit python2 subpackage.
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.3-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jan 28 2016 Dan Horák <dan[at]danny.cz> - 4.1.3-3
|
|
- make Python3 support more modular
|
|
|
|
* Wed Nov 04 2015 Matej Stuchlik <mstuchli@redhat.com> - 4.1.3-2
|
|
- Rebuilt for Python 3.5
|
|
|
|
* Mon Oct 05 2015 Ralph Bean <rbean@redhat.com> - 4.1.3-1
|
|
- new version
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 4.1.2-1
|
|
- new version
|
|
|
|
* Wed Aug 20 2014 Ralph Bean <rbean@redhat.com> - 4.1.1-1
|
|
- Latest upstream.
|
|
- Modernized python macros.
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 4.1.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
* Wed Feb 12 2014 Ralph Bean <rbean@redhat.com> - 4.1.0-1
|
|
- Latest upstream.
|
|
- Change .zip back to .tar.gz.
|
|
- Drop fedora 12 conditional.
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.5-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Thu Apr 11 2013 Luke Macken <lmacken@redhat.com> - 4.0.5-1
|
|
- Update to 4.0.5 (#891046)
|
|
- Run the unit tests with nose
|
|
|
|
* Tue Mar 26 2013 David Malcolm <dmalcolm@redhat.com> - 4.0.4-2
|
|
- remove rhel clause from python3 guard
|
|
|
|
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.0.4-1
|
|
- Latest upstream
|
|
- README and CHANGES moved from .txt to .rst.
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Thu Dec 06 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-4
|
|
- Wrap files section in a python3 conditional.
|
|
|
|
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-3
|
|
- Typofix to python-zope-event requirement.
|
|
|
|
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-2
|
|
- Added dependency on python-zope-event.
|
|
|
|
* Wed Nov 28 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-1
|
|
- Latest upstream release.
|
|
- Python3 subpackage.
|
|
- Rearrange the way we package docs.
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Sat Jan 7 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.7.0-1
|
|
- Update to 3.7.0 (ZTK 1.1.3)
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Oct 4 2010 Robin Lee <cheeselee@fedoraproject.org> - 3.6.1-7
|
|
- Obsoletes python-zope-filesystem
|
|
|
|
* Wed Sep 29 2010 jkeating - 3.6.1-6
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
* Sun Sep 19 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-5
|
|
- Move the texts files to %%doc
|
|
- Exclude the tests from installation
|
|
- Filter private shared library provides
|
|
|
|
* Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4
|
|
- Run the test suite
|
|
- Don't move the text files
|
|
|
|
* Tue Aug 31 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-3
|
|
- Remove python-zope-filesystem from requirements
|
|
- Own %%{python_sitearch}/zope/
|
|
- BR: python-setuptools-devel renamed to python-setuptools
|
|
- Spec cleaned up
|
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.6.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
* Tue Jun 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-1
|
|
- update to 3.6.1
|
|
- License provided in the source package
|
|
- include the tests
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Sun Jul 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.2-1
|
|
- update to 3.5.2
|
|
|
|
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 3.5.1-3
|
|
- Add python-setuptools-devel to the BuildRequires, so we generate egg-info
|
|
|
|
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-2
|
|
- use correct source filename (upstream switched from zip to tar.gz)
|
|
|
|
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-1
|
|
- update to 3.5.1
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Wed Dec 17 2008 Conrad Meyer <konrad@tylerc.org> - 3.5.0-3
|
|
- Make compatible with the new python-zope-filesystem.
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.5.0-2
|
|
- Rebuild for Python 2.6
|
|
|
|
* Sat Nov 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.0-1
|
|
- update to 3.5.0
|
|
|
|
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.4.1-1
|
|
- update to 3.4.1
|
|
- incorporate suggestions from Felix Schwarz:
|
|
- new summary and description
|
|
- new upstream URL (old one out of date)
|
|
- don't package test files
|
|
- include more documentation
|
|
|
|
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.3.0-1
|
|
- update to 3.3.0
|
|
- update source URL to include versioned directory and new tarball name
|
|
- drop the gcc 4.x compatibility patch, no longer needed
|
|
- don't run the test suite as it now depends on zope.testing
|
|
- exclude _zope_interface_coptimizations.c source from the binary package
|
|
|
|
* Thu Feb 14 2008 Paul Howarth <paul@city-fan.org> 3.0.1-10
|
|
- rebuild with gcc 4.3.0 for Fedora 9
|
|
|
|
* Fri Jan 4 2008 Paul Howarth <paul@city-fan.org> 3.0.1-9
|
|
- tweak %%files list to pull in egg info file when necessary
|
|
- fix permissions on shared objects (silence rpmlint)
|
|
|
|
* Wed Aug 29 2007 Paul Howarth <paul@city-fan.org> 3.0.1-8
|
|
- update license tag to ZPLv2.1 in anticipation of this tag being approved
|
|
|
|
* Sat Dec 9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-7
|
|
- rebuild against python 2.5 for Rawhide
|
|
|
|
* Tue Oct 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-6
|
|
- add %%check section
|
|
|
|
* Wed Sep 20 2006 Paul Howarth <paul@city-fan.org> 3.0.1-5
|
|
- dispense with %%{pybasever} macro and python-abi dependency, not needed from
|
|
FC4 onwards
|
|
- include ZPL 2.1 license text
|
|
- add reference in %%description to origin of patch
|
|
- change License: tag from "ZPL 2.1" to "Zope Public License" to shut rpmlint up
|
|
|
|
* Thu Aug 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-4
|
|
- files list simplified as .pyo files are no longer %%ghost-ed
|
|
|
|
* Tue May 9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-3
|
|
- import from PyVault Repository
|
|
- rewrite in Fedora Extras style
|
|
|
|
* Tue Aug 23 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-2
|
|
- add bug fix for gcc 4
|
|
|
|
* Mon Feb 07 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-1
|
|
- new rpm
|
|
|