5d9cc5
%global modname zope.schema
5d9cc5
2a7bbf
5d9cc5
Summary: Zope 3 schemas
5d9cc5
Name: python-zope-schema
587286
Version: 4.4.2
2572fa
Release: 16%{?dist}
818804
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
5d9cc5
License: ZPLv2.1
5d9cc5
BuildArch: noarch
5d9cc5
URL: http://pypi.python.org/pypi/zope.schema
5d9cc5
2a7bbf
1e9ff7
%description
1e9ff7
This package is a zope.interface extension for defining data schemas.
1e9ff7
2a7bbf
%package -n python3-zope-schema
2a7bbf
Summary:        Zope 3 schemas
1e9ff7
%{?python_provide:%python_provide python3-zope-schema}
1e9ff7
1e9ff7
BuildRequires: python3-devel
1e9ff7
BuildRequires: python3-setuptools
Jeroen van Meeuwen (Kolab Systems) 9e5edb
# For docs
Jeroen van Meeuwen (Kolab Systems) 9e5edb
BuildRequires: python3-sphinx
1e9ff7
# For tests
1e9ff7
BuildRequires: python3-zope-testing
1e9ff7
BuildRequires: python3-zope-interface
1e9ff7
BuildRequires: python3-zope-event
2a7bbf
2a7bbf
Requires: python3-zope-interface
2a7bbf
Requires: python3-zope-event
2a7bbf
2a7bbf
%description -n python3-zope-schema
2a7bbf
This package is a zope.interface extension for defining data schemas.
2a7bbf
5d9cc5
%prep
5d9cc5
%setup -q -n %{modname}-%{version}
2a7bbf
2a7bbf
rm -rf %{modname}.egg-info
2a7bbf
5d9cc5
5d9cc5
%build
1e9ff7
%py3_build
2a7bbf
531cee
# build Sphinx documents
Jeroen van Meeuwen (Kolab Systems) 9e5edb
sphinx-build-%{python3_version} -b html docs/ build/sphinx/html
fb6048
cp -pr build/sphinx/html .
531cee
rm -fr html/{.buildinfo,.doctrees}
5d9cc5
5d9cc5
%install
1e9ff7
%py3_install
5d9cc5
5d9cc5
%check
fb6048
# the test setup and runner are rather, ahem, 'special' (see setup.py
fb6048
# all_tests). This silly hack makes it fly on recent Python 3.
fb6048
ln -s %{python3_sitelib}/zope/* src/zope
75d767
# this can fail if sitelib and sitearch are the same on the host doing
75d767
# the build, it's no problem
75d767
ln -s %{python3_sitearch}/zope/* src/zope >/dev/null || :
2a7bbf
%{__python3} setup.py test
5d9cc5
2a7bbf
%files -n python3-zope-schema
1e9ff7
%doc CHANGES.rst COPYRIGHT.txt README.rst
2a7bbf
%doc html/
1e9ff7
%license LICENSE.txt
2a7bbf
%{python3_sitelib}/zope/schema/
2a7bbf
%exclude %{python3_sitelib}/zope/schema/tests/
2a7bbf
%exclude %{python3_sitelib}/zope/schema/*.txt
2a7bbf
%{python3_sitelib}/%{modname}-*.egg-info
2a7bbf
%{python3_sitelib}/%{modname}-*-nspkg.pth
2a7bbf
5d9cc5
5d9cc5
%changelog
2572fa
* Sun Sep 08 2019 Miro Hron훾ok <mhroncok@redhat.com> - 4.4.2-16
2572fa
- Subpackage python2-zope-schema has been removed
2572fa
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2572fa
491f1a
* Fri Aug 16 2019 Miro Hron훾ok <mhroncok@redhat.com> - 4.4.2-15
491f1a
- Rebuilt for Python 3.8
491f1a
29190a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-14
29190a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
29190a
3ba55b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-13
3ba55b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3ba55b
517ec2
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-12
517ec2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
517ec2
b5429e
* Sun Jun 17 2018 Miro Hron훾ok <mhroncok@redhat.com> - 4.4.2-11
b5429e
- Rebuilt for Python 3.7
b5429e
bbfbf0
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 4.4.2-10
bbfbf0
- Update Python 2 dependency declarations to new packaging standards
bbfbf0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bbfbf0
f804fa
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-9
f804fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f804fa
ec4959
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-8
ec4959
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ec4959
537b0d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-7
537b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
537b0d
fb6048
* Thu Dec 22 2016 Adam Williamson <awilliam@redhat.com> - 4.4.2-6
fb6048
- Fix Sphinx doc generation
fb6048
- Fix (in a stupid way, but it works) test running on recent Python 3
fb6048
fb6048
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com>
64ad67
- Rebuild for Python 3.6
64ad67
1fbacf
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.2-5
1fbacf
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1fbacf
1e9ff7
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 4.4.2-5
1e9ff7
- Modernize python macros.
1e9ff7
- Add an explicit python2 subpackage.
1e9ff7
22384e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.2-4
22384e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
22384e
c804a6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.2-3
c804a6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
c804a6
6b22a4
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.2-2
6b22a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6b22a4
587286
* Thu May 14 2015 Ralph Bean <rbean@redhat.com> - 4.4.2-1
587286
- new version
587286
818804
* Wed Aug 20 2014 Ralph Bean <rbean@redhat.com> - 4.4.1-1
818804
- Latest upstream.
818804
- Modernized python macros.
818804
2623ca
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.0-3
2623ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2623ca
d04c73
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 4.4.0-2
d04c73
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
d04c73
68a1ee
* Tue Jan 28 2014 Ralph Bean <rbean@redhat.com> - 4.4.0-1
68a1ee
- Latest upstream.
68a1ee
8317b7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-2
8317b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8317b7
fc42cf
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.3.2-1
fc42cf
- Latest upstream.
fc42cf
- README and CHANGES renamed from .txt to .rst.
fc42cf
2a7bbf
* Wed Feb 13 2013 Ralph Bean <rbean@redhat.com> - 4.2.2-1
2a7bbf
- Latest upstream.
2a7bbf
- Added Python3 subpackage.
2a7bbf
- Removed dos2unix references.  No longer needed.
2a7bbf
7645f5
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-3
7645f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7645f5
f222c2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-2
f222c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f222c2
b097f0
* Mon Sep 26 2011 Robin Lee <cheeselee@fedoraproject.org> - 3.8.1-1
b097f0
- Update to 3.8.1 (#741003)
b097f0
- Fix ends of lines
b097f0
af5847
* Thu Mar 31 2011 Robin Lee <cheeselee@fedoraproject.org> - 3.8.0-1
af5847
- Update to 3.8.0 (#689215)
af5847
9ab2f1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.1-2
9ab2f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9ab2f1
531cee
* Mon Jan  3 2011 Robin Lee <cheeselee@fedoraproject.org> - 3.7.1-1
531cee
- Update to 3.7.1
531cee
- Build Sphinx documents
531cee
5d9cc5
* Thu Sep 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.7.0-1
5d9cc5
- Update to 3.7.0
5d9cc5
- Move the documents to proper place
5d9cc5
- Exclude the tests
5d9cc5
5d9cc5
* Sat Sep 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.4-2
5d9cc5
- Spec cleaned up
5d9cc5
- Requires: python-zope-filesystem and python-setuptools removed
5d9cc5
- Add %%check section and run tests
5d9cc5
- BR: python-zope-testing and runtime requirements added
5d9cc5
- Don't move the text files
5d9cc5
5d9cc5
* Wed Jun 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.4-1
5d9cc5
- Initial packaging