Add python3 subpackage
This commit is contained in:
parent
359d70f19e
commit
ef4129168e
@ -1,6 +1,6 @@
|
||||
Name: python-dateutil
|
||||
Version: 2.4.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Powerful extensions to the standard datetime module
|
||||
|
||||
@ -26,6 +26,21 @@ Requires: python-six
|
||||
The dateutil module provides powerful extensions to the standard datetime
|
||||
module available in Python 2.3+.
|
||||
|
||||
This is the version for Python 2.
|
||||
|
||||
%package -n python3-dateutil
|
||||
Summary: Powerful extensions to the standard datetime module
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-six
|
||||
Requires: tzdata
|
||||
Requires: python3-six
|
||||
|
||||
%description -n python3-dateutil
|
||||
The dateutil module provides powerful extensions to the standard datetime
|
||||
module available in Python 2.3+.
|
||||
|
||||
This is the version for Python 3.
|
||||
|
||||
%package doc
|
||||
Summary: API documentation for python-dateutil
|
||||
%description doc
|
||||
@ -39,13 +54,16 @@ mv NEWS.new NEWS
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
%{__python3} setup.py build
|
||||
make -C docs html
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
@ -53,11 +71,20 @@ make -C docs html
|
||||
%{python2_sitelib}/dateutil/
|
||||
%{python2_sitelib}/*.egg-info
|
||||
|
||||
%files -n python3-dateutil
|
||||
%license LICENSE
|
||||
%doc NEWS README.rst
|
||||
%{python3_sitelib}/dateutil/
|
||||
%{python3_sitelib}/*.egg-info
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc docs/_build/html
|
||||
|
||||
%changelog
|
||||
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.4.0-2
|
||||
- Add python3 subpackage.
|
||||
|
||||
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.4.0-1
|
||||
- Change to new upstream, update to 2.4 (#1126521)
|
||||
- Build documentation.
|
||||
|
Loading…
Reference in New Issue
Block a user