[python-dateutil] Add python3 subpackage
Zbigniew Jędrzejewski-Szmek
zbyszek at fedoraproject.org
Sat Feb 21 23:34:23 UTC 2015
commit ef4129168e0a3eacd2fc08e9e3e3c6f2001ed048
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 21 13:27:27 2015 -0500
Add python3 subpackage
python-dateutil.spec | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/python-dateutil.spec b/python-dateutil.spec
index 8b9a50c..f8be86e 100644
--- a/python-dateutil.spec
+++ b/python-dateutil.spec
@@ -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 at in.waw.pl> - 1:2.4.0-2
+- Add python3 subpackage.
+
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> - 1:2.4.0-1
- Change to new upstream, update to 2.4 (#1126521)
- Build documentation.
More information about the scm-commits
mailing list