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