|
|
a1fe2ec |
%if 0%{?fedora}
|
|
|
a1fe2ec |
%global with_python3 1
|
|
|
a1fe2ec |
%endif
|
|
|
a1fe2ec |
|
|
|
ca84dde |
%global modname zope.contenttype
|
|
|
ca84dde |
|
|
|
ca84dde |
Summary: Content-Type Handling Utility
|
|
|
ca84dde |
Name: python-zope-contenttype
|
|
|
93c2781 |
Version: 4.1.0
|
|
|
a1fe2ec |
Release: 4%{?dist}
|
|
|
899440e |
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
ca84dde |
License: ZPLv2.1
|
|
|
ca84dde |
Group: Development/Libraries
|
|
|
ca84dde |
BuildArch: noarch
|
|
|
ca84dde |
URL: http://pypi.python.org/pypi/zope.contenttype
|
|
|
ca84dde |
|
|
|
ca84dde |
BuildRequires: python2-devel
|
|
|
ca84dde |
BuildRequires: python-setuptools
|
|
|
ca84dde |
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
BuildRequires: python3-devel
|
|
|
a1fe2ec |
BuildRequires: python3-setuptools
|
|
|
a1fe2ec |
%endif
|
|
|
a1fe2ec |
|
|
|
ca84dde |
%description
|
|
|
ca84dde |
This package provides a utility module for content-type handling.
|
|
|
ca84dde |
|
|
|
a1fe2ec |
%package -n python2-zope-contenttype
|
|
|
a1fe2ec |
Summary: Content-Type Handling Utility
|
|
|
a1fe2ec |
%{?python_provide:%python_provide python2-zope-contenttype}
|
|
|
a1fe2ec |
Requires: python2
|
|
|
a1fe2ec |
|
|
|
a1fe2ec |
%description -n python2-zope-contenttype
|
|
|
a1fe2ec |
This package provides a utility module for content-type handling.
|
|
|
a1fe2ec |
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
%package -n python3-zope-contenttype
|
|
|
a1fe2ec |
Summary: Content-Type Handling Utility
|
|
|
a1fe2ec |
%{?python_provide:%python_provide python3-zope-contenttype}
|
|
|
a1fe2ec |
Requires: python3
|
|
|
a1fe2ec |
|
|
|
a1fe2ec |
%description -n python3-zope-contenttype
|
|
|
a1fe2ec |
This package provides a utility module for content-type handling.
|
|
|
a1fe2ec |
%endif
|
|
|
a1fe2ec |
|
|
|
ca84dde |
%prep
|
|
|
ca84dde |
%setup -q -n %{modname}-%{version}
|
|
|
ca84dde |
|
|
|
ca84dde |
%build
|
|
|
a1fe2ec |
%py2_build
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
%py3_build
|
|
|
a1fe2ec |
%endif
|
|
|
ca84dde |
|
|
|
ca84dde |
%install
|
|
|
a1fe2ec |
%py2_install
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
%py3_install
|
|
|
a1fe2ec |
%endif
|
|
|
ca84dde |
|
|
|
ca84dde |
%check
|
|
|
a1fe2ec |
%{__python2} setup.py test
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
%{__python3} setup.py test
|
|
|
a1fe2ec |
%endif
|
|
|
a1fe2ec |
|
|
|
a1fe2ec |
%files -n python2-zope-contenttype
|
|
|
a1fe2ec |
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
|
|
a1fe2ec |
%license LICENSE.txt
|
|
|
a1fe2ec |
%{python2_sitelib}/zope/contenttype/
|
|
|
a1fe2ec |
%dir %{python2_sitelib}/zope/
|
|
|
a1fe2ec |
%{python2_sitelib}/%{modname}-*.egg-info
|
|
|
a1fe2ec |
%{python2_sitelib}/%{modname}-*-nspkg.pth
|
|
|
a1fe2ec |
|
|
|
a1fe2ec |
%if 0%{?with_python3}
|
|
|
a1fe2ec |
%files -n python3-zope-contenttype
|
|
|
a1fe2ec |
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
|
|
a1fe2ec |
%license LICENSE.txt
|
|
|
a1fe2ec |
%{python3_sitelib}/zope/contenttype/
|
|
|
a1fe2ec |
%dir %{python3_sitelib}/zope/
|
|
|
a1fe2ec |
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
a1fe2ec |
%{python3_sitelib}/%{modname}-*-nspkg.pth
|
|
|
a1fe2ec |
%endif
|
|
|
ca84dde |
|
|
|
ca84dde |
%changelog
|
|
|
a1fe2ec |
* Tue Apr 05 2016 Ralph Bean <rbean@redhat.com> - 4.1.0-4
|
|
|
a1fe2ec |
- Modernize python macros.
|
|
|
a1fe2ec |
- Add python3 subpackage.
|
|
|
a1fe2ec |
|
|
|
b1796b7 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-3
|
|
|
b1796b7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b1796b7 |
|
|
|
fd9b35b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-2
|
|
|
fd9b35b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
fd9b35b |
|
|
|
93c2781 |
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 4.1.0-1
|
|
|
93c2781 |
- new version
|
|
|
93c2781 |
|
|
|
93c2781 |
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 4.1.0-1
|
|
|
93c2781 |
- new version
|
|
|
93c2781 |
|
|
|
93c2781 |
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 4.1.0-1
|
|
|
93c2781 |
- new version
|
|
|
93c2781 |
|
|
|
46f8b86 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-3
|
|
|
46f8b86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
46f8b86 |
|
|
|
1dd895b |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
|
|
|
1dd895b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1dd895b |
|
|
|
899440e |
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.0.1-1
|
|
|
899440e |
- Latest upstream
|
|
|
899440e |
|
|
|
9a8ce4f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.5-4
|
|
|
9a8ce4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9a8ce4f |
|
|
|
5fc6a90 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.5-3
|
|
|
5fc6a90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5fc6a90 |
|
|
|
ca84dde |
* Tue May 29 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.5.5-2
|
|
|
ca84dde |
- Include the license text
|
|
|
ca84dde |
|
|
|
ca84dde |
* Sun May 27 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.5.5-1
|
|
|
ca84dde |
- Update to 3.5.5
|
|
|
ca84dde |
- Remove defattr
|
|
|
ca84dde |
- Remove upstreamed patch
|
|
|
ca84dde |
- Add --quiet option to 'python setup.py' commands
|
|
|
ca84dde |
|
|
|
ca84dde |
* Sun Sep 12 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.1-2
|
|
|
ca84dde |
- Requires: python-zope-filesystem and python-setuptools removed
|
|
|
ca84dde |
- Spec cleaned up
|
|
|
ca84dde |
- Co-own %%{python_sitelib}/zope/
|
|
|
ca84dde |
- Add %%check section and run tests
|
|
|
ca84dde |
- Add python-zope-contenttype-3.5.1-run-tests.patch to register the test_suite
|
|
|
ca84dde |
|
|
|
ca84dde |
* Wed Jun 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.1-1
|
|
|
ca84dde |
- Initial packaging
|