Browse Source

python-dateutil-2.6.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11460 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
b0a263a7eb
1 changed files with 30 additions and 9 deletions
  1. 30 9
      p/python-dateutil/python-dateutil-vl.spec

+ 30 - 9
p/python-dateutil/python-dateutil-vl.spec

@@ -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
-Version:        1.4.1
-Release:        3%{?_dist_release}
+Version:        2.6.1
+Release:        1%{?_dist_release}
 Summary:        Powerful extensions to the standard datetime module
 
 Group:          Development/Languages
@@ -12,7 +10,12 @@ Source0:        http://labix.org/download/python-dateutil/python-dateutil-%{vers
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 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
 Distribution: Vine Linux
@@ -21,6 +24,13 @@ Distribution: Vine Linux
 The dateutil module provides powerful extensions to the standard datetime
 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
 %setup -q
 
@@ -28,25 +38,36 @@ module available in Python 2.3+.
 iconv -f ISO-8859-1 -t utf8 NEWS
 
 %build
-%{__python} setup.py build
+%py_build
+%py3_build
 
 
 %install
 %__rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+%py_install
+%py3_install
 
- 
 %clean
 %__rm -rf $RPM_BUILD_ROOT
 
 
 %files
 %defattr(-,root,root,-)
-%doc example.py LICENSE NEWS README
+%doc LICENSE NEWS README*
 %{python_sitelib}/dateutil/
 %{python_sitelib}/*.egg-info
 
+%files -n python3-dateutil
+%defattr(-,root,root,-)
+%doc LICENSE NEWS README*
+%{python3_sitelib}/dateutil/
+%{python3_sitelib}/*.egg-info
+
 %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
 - rebuild with VineSeed environment