From ef4129168e0a3eacd2fc08e9e3e3c6f2001ed048 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Feb 21 2015 23:28:18 +0000 Subject: Add python3 subpackage --- 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 - 1:2.4.0-2 +- Add python3 subpackage. + * Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek - 1:2.4.0-1 - Change to new upstream, update to 2.4 (#1126521) - Build documentation.