|
@@ -1,8 +1,6 @@
|
|
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
-
|
|
|
|
Name: python-dateutil
|
|
Name: python-dateutil
|
|
-Version: 1.4.1
|
|
|
|
-Release: 3%{?_dist_release}
|
|
|
|
|
|
+Version: 2.6.1
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: Powerful extensions to the standard datetime module
|
|
Summary: Powerful extensions to the standard datetime module
|
|
|
|
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
@@ -12,7 +10,12 @@ Source0: http://labix.org/download/python-dateutil/python-dateutil-%{vers
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
-BuildRequires: python-devel,python-setuptools
|
|
|
|
|
|
+BuildRequires: python-devel
|
|
|
|
+BuildRequires: python-setuptools
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python3-devel
|
|
|
|
+BuildRequires: python3-setuptools
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -21,6 +24,13 @@ Distribution: Vine Linux
|
|
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+.
|
|
|
|
|
|
|
|
+%package -n python3-dateutil
|
|
|
|
+Summary: Powerful extensions to the standard datetime module
|
|
|
|
+
|
|
|
|
+%description -n python3-dateutil
|
|
|
|
+The dateutil module provides powerful extensions to the standard datetime
|
|
|
|
+module available in Python 3.0+.
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
@@ -28,25 +38,36 @@ module available in Python 2.3+.
|
|
iconv -f ISO-8859-1 -t utf8 NEWS
|
|
iconv -f ISO-8859-1 -t utf8 NEWS
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__python} setup.py build
|
|
|
|
|
|
+%py_build
|
|
|
|
+%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
+%py_install
|
|
|
|
+%py3_install
|
|
|
|
|
|
-
|
|
|
|
%clean
|
|
%clean
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc example.py LICENSE NEWS README
|
|
|
|
|
|
+%doc LICENSE NEWS README*
|
|
%{python_sitelib}/dateutil/
|
|
%{python_sitelib}/dateutil/
|
|
%{python_sitelib}/*.egg-info
|
|
%{python_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
+%files -n python3-dateutil
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc LICENSE NEWS README*
|
|
|
|
+%{python3_sitelib}/dateutil/
|
|
|
|
+%{python3_sitelib}/*.egg-info
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Jan 31 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.6.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- added a subpackage for python3.
|
|
|
|
+
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.4.1-3
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.4.1-3
|
|
- rebuild with VineSeed environment
|
|
- rebuild with VineSeed environment
|
|
|
|
|