Notification time stamped 2021-03-31 17:00:31 UTC
From 0807f99e8f1614d0829e805845fc605f8621ebf3 Mon Sep 17 00:00:00 2001
From: Jan Sedlák <jsedlak(a)redhat.com>
Date: Nov 11 2015 12:29:53 +0000
Subject: update to 1.1.0, rebuild with Python 3
---
diff --git a/.gitignore b/.gitignore
index adba274..db06695 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/aniso8601-0.82.tar.gz
/aniso8601-1.0.0.tar.gz
+/aniso8601-1.1.0.tar.gz
diff --git a/python-aniso8601.spec b/python-aniso8601.spec
index 6bbc399..da605c0 100644
--- a/python-aniso8601.spec
+++ b/python-aniso8601.spec
@@ -4,88 +4,76 @@
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
-%if (0%{?fedora} > 12)
-%global with_python3 1
-%endif
-
-%global pkgname aniso8601
-%global tarball_name aniso8601
+%global srcname aniso8601
+%global sum Another ISO 8601 parser for Python
-Name: python-aniso8601
-Version: 1.0.0
+Name: python-%{srcname}
+Version: 1.1.0
Release: 1%{?dist}
-Summary: Python 2 library for parsing ISO 8601 strings
+Summary: %{sum}
Group: Development/Languages
License: GPLv3+
-URL:
https://bitbucket.org/nielsenb/aniso8601
-Source0:
https://pypi.python.org/packages/source/a/aniso8601/%{tarball_name}-%{ver...
+URL:
https://bitbucket.org/nielsenb/%{srcname}
+Source0:
https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version...
BuildArch: noarch
-BuildRequires: python2-devel python-setuptools
-%if 0%{?with_python3}
-BuildRequires: python3-devel python3-setuptools
-%endif
+BuildRequires: python2-devel python3-devel python-dateutil python3-dateutil
%description
-This is a Python 2 library for parsing date strings
+Python library for parsing date strings
in ISO 8601 format into datetime format.
-%if 0%{?with_python3}
-%package -n python3-aniso8601
-Summary: Python 3 library for parsing ISO 8601 strings
+%package -n python2-%{srcname}
+Summary: %{sum}
+Requires: python-dateutil
+%{?python_provide:%python_provide python2-%{srcname}}
-%description -n python3-aniso8601
-This is a Python 3 library for parsing date strings
+%description -n python2-%{srcname}
+Python 2 library for parsing date strings
in ISO 8601 format into datetime format.
-%endif
-%prep
-%setup -qn %{tarball_name}-%{version}
-rm -rf %{tarball_name}.egg-info
+%package -n python3-%{srcname}
+Summary: %{sum}
+Requires: python3-dateutil
+%{?python_provide:%python_provide python3-%{srcname}}
-%if 0%{?with_python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-find %{py3dir} -name '*.py' | xargs sed -i
'1s|^#!python|#!%{__python3}|'
-%endif
+%description -n python3-%{srcname}
+Python 3 library for parsing date strings
+in ISO 8601 format into datetime format.
+
+%prep
+%autosetup -n %{srcname}-%{version}
+rm -rf %{srcname}.egg-info
%build
-%{__python2} setup.py build
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
-%endif
+%py2_build
+%py3_build
%install
-%{__python2} setup.py install --skip-build --root %{buildroot}
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root %{buildroot}
-popd
-%endif
+%py2_install
+%py3_install
%if ! 0%{?rhel} || 0%{?rhel} > 6
%check
-PYTHONPATH=%{buildroot}/%{python_sitelib} %{__python2} -m unittest discover
aniso8601/tests/
-%if 0%{?with_python3}
-PYTHONPATH=%{buildroot}/%{python3_sitelib} %{__python3} -m unittest discover
aniso8601/tests/
-%endif
+%{__python2} -m unittest discover aniso8601/tests/
+%{__python3} -m unittest discover aniso8601/tests/
%endif
-%files
-%doc LICENSE README.rst
+%files -n python2-%{srcname}
+%license LICENSE
+%doc README.rst
%{python2_sitelib}/*
-%if 0%{?with_python3}
-%files -n python3-aniso8601
-%doc LICENSE README.rst
+%files -n python3-%{srcname}
+%license LICENSE
+%doc README.rst
%{python3_sitelib}/*
-%endif
-
%changelog
+* Wed Nov 11 2015 Jan Sedlak <jsedlak(a)redhat.com> - 1.1.0-1
+- update to 1.1.0, rebuild with Python 3
+
* Wed Jul 08 2015 Jan Sedlak <jsedlak(a)redhat.com> - 1.0.0-1
- update to newest version
diff --git a/sources b/sources
index ee2c658..457c6ce 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-de0dcc6c74613e3efbfcc95e7dcff335 aniso8601-1.0.0.tar.gz
+d2610ecaab3bdfe51f74678c89c69cf7 aniso8601-1.1.0.tar.gz
https://src.fedoraproject.org/rpms/python-aniso8601/c/0807f99e8f1614d0829...