660a507
%if 0%{?rhel} && 0%{?rhel} <= 6
660a507
%{!?__python2:        %global __python2 /usr/bin/python2}
660a507
%{!?python2_sitelib:  %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
660a507
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
660a507
%endif
660a507
3410c5f
# Filter private shared library provides
660a507
%filter_provides_in %{python2_sitearch}/zope/interface/.*\.so$
3410c5f
%filter_setup
3410c5f
012dc72
%if 0%{?fedora} || 0%{?rhel} > 7
9882c0c
%global with_python3 1
bac6ef5
%endif
bac6ef5
87a7812
Name:		python-zope-interface
9b7b0f8
Version:	4.5.0
c3a0d2b
Release:	2%{?dist}
dad53f8
Summary:	Zope 3 Interface Infrastructure
89c68c8
License:	ZPLv2.1
4e76045
URL:		https://pypi.io/project/zope.interface
4e76045
Source0:	https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
87a7812
7da96d1
%description
7da96d1
Interfaces are a mechanism for labeling objects as conforming to a given API
7da96d1
or contract.
9882c0c
7da96d1
This is a separate distribution of the zope.interface package used in Zope 3.
096c73a
7da96d1
%package -n python2-zope-interface
7da96d1
Summary:	Zope 3 Interface Infrastructure
7da96d1
%{?python_provide:%python_provide python2-zope-interface}
096c73a
30772de
BuildRequires:  gcc
7da96d1
BuildRequires:  python2-devel
7da96d1
BuildRequires:  python2-setuptools
7da96d1
BuildRequires:  python2-nose
7da96d1
BuildRequires:  python2-zope-event
7da96d1
7da96d1
Requires:       python2-zope-event
7da96d1
7da96d1
# since F14
7da96d1
Obsoletes:	python-zope-filesystem <= 1-8
7da96d1
7da96d1
%description -n python2-zope-interface
dad53f8
Interfaces are a mechanism for labeling objects as conforming to a given API
dad53f8
or contract.
87a7812
dad53f8
This is a separate distribution of the zope.interface package used in Zope 3.
87a7812
9882c0c
%if 0%{?with_python3}
9882c0c
%package -n python3-zope-interface
9882c0c
Summary:	Zope 3 Interface Infrastructure
7da96d1
%{?python_provide:%python_provide python3-zope-interface}
7da96d1
7da96d1
BuildRequires:  python3-devel
7da96d1
BuildRequires:  python3-setuptools
7da96d1
BuildRequires:  python3-nose
7da96d1
BuildRequires:  python3-zope-event
9882c0c
096c73a
Requires:       python3-zope-event
096c73a
9882c0c
%description -n python3-zope-interface
9882c0c
Interfaces are a mechanism for labeling objects as conforming to a given API
9882c0c
or contract.
9882c0c
9882c0c
This is a separate distribution of the zope.interface package used in Zope 3.
9882c0c
%endif
9882c0c
87a7812
%prep
dad53f8
%setup -n zope.interface-%{version} -q
87a7812
9882c0c
rm -rf %{modname}.egg-info
9882c0c
9882c0c
87a7812
%build
7da96d1
%py2_build
9882c0c
%if 0%{?with_python3}
7da96d1
%py3_build
9882c0c
%endif
9882c0c
9882c0c
87a7812
%install
9882c0c
# python3 block
9882c0c
%if 0%{?with_python3}
7da96d1
%py3_install
9882c0c
9882c0c
# Will put docs in %%{_docdir} instead
9882c0c
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt
9882c0c
9882c0c
# C files don't need to be packaged
9882c0c
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
9882c0c
%endif
9882c0c
9882c0c
# do it again for python2
7da96d1
%py2_install
dad53f8
90024d3
# Will put docs in %%{_docdir} instead
660a507
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/{,tests/}*.txt
3410c5f
dad53f8
# C files don't need to be packaged
660a507
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/_zope_interface_coptimizations.c
dad53f8
87a7812
%check
9b7b0f8
PYTHONPATH=$(pwd) nosetests-2
9882c0c
%if 0%{?with_python3}
9b7b0f8
PYTHONPATH=$(pwd) nosetests-3
9882c0c
%endif
9882c0c
7da96d1
%files -n python2-zope-interface
7da96d1
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
7da96d1
%license LICENSE.txt
660a507
%{python2_sitearch}/zope/interface/
660a507
# Co-own %%{python2_sitearch}/zope/
660a507
%dir %{python2_sitearch}/zope/
660a507
%exclude %{python2_sitearch}/zope/interface/tests/
660a507
%exclude %{python2_sitearch}/zope/interface/common/tests/
660a507
%{python2_sitearch}/zope.interface-*.egg-info
660a507
%{python2_sitearch}/zope.interface-*-nspkg.pth
87a7812
253faf7
%if 0%{?with_python3}
9882c0c
%files -n python3-zope-interface
7da96d1
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
7da96d1
%license LICENSE.txt
9882c0c
%{python3_sitearch}/zope/interface/
9882c0c
# Co-own %%{python3_sitearch}/zope/
9882c0c
%dir %{python3_sitearch}/zope/
9882c0c
%exclude %{python3_sitearch}/zope/interface/tests/
9882c0c
%exclude %{python3_sitearch}/zope/interface/common/tests/
9882c0c
%{python3_sitearch}/zope.interface-*.egg-info
9882c0c
%{python3_sitearch}/zope.interface-*-nspkg.pth
253faf7
%endif
9882c0c
87a7812
%changelog
c3a0d2b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
c3a0d2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c3a0d2b
9b7b0f8
* Wed Jul 11 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.0-1
9b7b0f8
- New upstream version
9b7b0f8
- Specfile cleanup
9b7b0f8
9ad2e02
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.4.3-2
9ad2e02
- Rebuilt for Python 3.7
9ad2e02
3c63202
* Tue Feb 06 2018 Lumír Balhar <lbalhar@redhat.com> - 4.4.3-1
3c63202
- New upstream release
3c63202
012dc72
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 4.3.3-7
012dc72
- Cleanup spec file conditionals
012dc72
8f68c1b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-6
8f68c1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8f68c1b
f387653
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-5
f387653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f387653
Igor Gnatenko d519f9a
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 4.3.3-4
Igor Gnatenko d519f9a
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko d519f9a
f1dd7c6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-3
f1dd7c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f1dd7c6
7b1f4f7
* Wed Dec 21 2016 Jerry James <loganjerry@gmail.com> - 4.3.3-2
7b1f4f7
- Rebuild for Python 3.6 again
7b1f4f7
df0021e
* Wed Dec 14 2016 Ralph Bean <rbean@redhat.com> - 4.3.3-1
df0021e
- new version
df0021e
eff1d2f
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 4.3.2-2
eff1d2f
- Rebuild for Python 3.6
eff1d2f
ac4da9f
* Tue Sep 27 2016 Ralph Bean <rbean@redhat.com> - 4.3.2-1
ac4da9f
- new version
ac4da9f
96028d9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
96028d9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
96028d9
4e76045
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 4.2.0-1
4e76045
- new version
4e76045
a52c0f6
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 4.1.3-5
7da96d1
- Modernize python macros.
7da96d1
- Provide an explicit python2 subpackage.
7da96d1
33ed899
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.3-4
33ed899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
33ed899
bac6ef5
* Thu Jan 28 2016 Dan Horák <dan[at]danny.cz> - 4.1.3-3
bac6ef5
- make Python3 support more modular
bac6ef5
Matej Stuchlik 5e65344
* Wed Nov 04 2015 Matej Stuchlik <mstuchli@redhat.com> - 4.1.3-2
Matej Stuchlik 5e65344
- Rebuilt for Python 3.5
Matej Stuchlik 5e65344
3c68e82
* Mon Oct 05 2015 Ralph Bean <rbean@redhat.com> - 4.1.3-1
3c68e82
- new version
3c68e82
4811807
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
4811807
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4811807
10b8b78
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 4.1.2-1
10b8b78
- new version
10b8b78
660a507
* Wed Aug 20 2014 Ralph Bean <rbean@redhat.com> - 4.1.1-1
660a507
- Latest upstream.
660a507
- Modernized python macros.
660a507
a6ffdb9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-4
a6ffdb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a6ffdb9
276114a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-3
276114a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
276114a
9cfb49d
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 4.1.0-2
9cfb49d
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
9cfb49d
01c2153
* Wed Feb 12 2014 Ralph Bean <rbean@redhat.com> - 4.1.0-1
01c2153
- Latest upstream.
01c2153
- Change .zip back to .tar.gz.
01c2153
- Drop fedora 12 conditional.
01c2153
49e4abe
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.5-2
49e4abe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
49e4abe
Luke Macken 6a2f3d8
* Thu Apr 11 2013 Luke Macken <lmacken@redhat.com> - 4.0.5-1
Luke Macken 6a2f3d8
- Update to 4.0.5 (#891046)
Luke Macken 6a2f3d8
- Run the unit tests with nose
Luke Macken 6a2f3d8
9892725
* Tue Mar 26 2013 David Malcolm <dmalcolm@redhat.com> - 4.0.4-2
9892725
- remove rhel clause from python3 guard
9892725
ebc3841
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.0.4-1
ebc3841
- Latest upstream
ebc3841
- README and CHANGES moved from .txt to .rst.
ebc3841
64e23df
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-5
64e23df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
64e23df
253faf7
* Thu Dec 06 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-4
253faf7
- Wrap files section in a python3 conditional.
253faf7
84ace6d
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-3
84ace6d
- Typofix to python-zope-event requirement.
84ace6d
096c73a
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-2
84ace6d
- Added dependency on python-zope-event.
096c73a
9882c0c
* Wed Nov 28 2012 Ralph Bean <rbean@redhat.com> - 4.0.2-1
9882c0c
- Latest upstream release.
9882c0c
- Python3 subpackage.
9882c0c
- Rearrange the way we package docs.
9882c0c
5b7ae5a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.0-2
5b7ae5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5b7ae5a
db1633f
* Sat Jan  7 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.7.0-1
db1633f
- Update to 3.7.0 (ZTK 1.1.3)
db1633f
4d77396
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-8
4d77396
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4d77396
90024d3
* Mon Oct  4 2010 Robin Lee <cheeselee@fedoraproject.org> - 3.6.1-7
90024d3
- Obsoletes python-zope-filesystem
90024d3
Jesse Keating 3bdbaa7
* Wed Sep 29 2010 jkeating - 3.6.1-6
Jesse Keating 3bdbaa7
- Rebuilt for gcc bug 634757
Jesse Keating 3bdbaa7
3410c5f
* Sun Sep 19 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-5
3410c5f
- Move the texts files to %%doc
3410c5f
- Exclude the tests from installation
3410c5f
- Filter private shared library provides
3410c5f
a81774c
* Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4
a81774c
- Run the test suite
a81774c
- Don't move the text files
a81774c
6d99a62
* Tue Aug 31 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-3
6d99a62
- Remove python-zope-filesystem from requirements
6d99a62
- Own %%{python_sitearch}/zope/
6d99a62
- BR: python-setuptools-devel renamed to python-setuptools
6d99a62
- Spec cleaned up
6d99a62
763fe0a
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.6.1-2
763fe0a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
763fe0a
6cec3d4
* Tue Jun 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-1
6cec3d4
- update to 3.6.1
6cec3d4
- License provided in the source package
6cec3d4
- include the tests
6cec3d4
2395f54
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-2
2395f54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2395f54
d0b2e10
* Sun Jul 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.2-1
d0b2e10
- update to 3.5.2
d0b2e10
c5d36f1
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> 3.5.1-3
c5d36f1
- Add python-setuptools-devel to the BuildRequires, so we generate egg-info
c5d36f1
21121c0
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-2
21121c0
- use correct source filename (upstream switched from zip to tar.gz)
21121c0
7d514c5
* Sun Apr 05 2009 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.1-1
7d514c5
- update to 3.5.1
7d514c5
2a85cce
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
2a85cce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2a85cce
e4b13e9
* Wed Dec 17 2008 Conrad Meyer <konrad@tylerc.org> - 3.5.0-3
e4b13e9
- Make compatible with the new python-zope-filesystem.
e4b13e9
b50e78e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.5.0-2
b50e78e
- Rebuild for Python 2.6
b50e78e
0aaedb2
* Sat Nov 15 2008 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 3.5.0-1
0aaedb2
- update to 3.5.0
0aaedb2
dad53f8
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.4.1-1
dad53f8
- update to 3.4.1
dad53f8
- incorporate suggestions from Felix Schwarz:
dad53f8
  - new summary and description
dad53f8
  - new upstream URL (old one out of date)
dad53f8
  - don't package test files
dad53f8
  - include more documentation
dad53f8
dad53f8
* Mon Mar 31 2008 Paul Howarth <paul@city-fan.org> 3.3.0-1
dad53f8
- update to 3.3.0
dad53f8
- update source URL to include versioned directory and new tarball name
dad53f8
- drop the gcc 4.x compatibility patch, no longer needed
dad53f8
- don't run the test suite as it now depends on zope.testing
dad53f8
- exclude _zope_interface_coptimizations.c source from the binary package
dad53f8
ace813d
* Thu Feb 14 2008 Paul Howarth <paul@city-fan.org> 3.0.1-10
ace813d
- rebuild with gcc 4.3.0 for Fedora 9
ace813d
4c09a26
* Fri Jan  4 2008 Paul Howarth <paul@city-fan.org> 3.0.1-9
4c09a26
- tweak %%files list to pull in egg info file when necessary
4c09a26
- fix permissions on shared objects (silence rpmlint)
4c09a26
89c68c8
* Wed Aug 29 2007 Paul Howarth <paul@city-fan.org> 3.0.1-8
89c68c8
- update license tag to ZPLv2.1 in anticipation of this tag being approved
89c68c8
606046d
* Sat Dec  9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-7
606046d
- rebuild against python 2.5 for Rawhide
606046d
87a7812
* Tue Oct 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-6
87a7812
- add %%check section
87a7812
87a7812
* Wed Sep 20 2006 Paul Howarth <paul@city-fan.org> 3.0.1-5
87a7812
- dispense with %%{pybasever} macro and python-abi dependency, not needed from
87a7812
  FC4 onwards
87a7812
- include ZPL 2.1 license text
87a7812
- add reference in %%description to origin of patch
87a7812
- change License: tag from "ZPL 2.1" to "Zope Public License" to shut rpmlint up
87a7812
87a7812
* Thu Aug 31 2006 Paul Howarth <paul@city-fan.org> 3.0.1-4
87a7812
- files list simplified as .pyo files are no longer %%ghost-ed
87a7812
87a7812
* Tue May  9 2006 Paul Howarth <paul@city-fan.org> 3.0.1-3
87a7812
- import from PyVault Repository
87a7812
- rewrite in Fedora Extras style
87a7812
87a7812
* Tue Aug 23 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-2
87a7812
- add bug fix for gcc 4
87a7812
87a7812
* Mon Feb 07 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-1
87a7812
- new rpm
87a7812