[packages/python-isodate] - updated URLs and dependencies, fixed python2/python3 bconds

qboosh qboosh at pld-linux.org
Sun Apr 3 16:44:15 CEST 2022


commit 15380b7465ac90e324261ddb9d1f22cdd5578316
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 3 16:44:11 2022 +0200

    - updated URLs and dependencies, fixed python2/python3 bconds

 python-isodate.spec | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/python-isodate.spec b/python-isodate.spec
index 86f1c70..0815b48 100644
--- a/python-isodate.spec
+++ b/python-isodate.spec
@@ -8,28 +8,30 @@
 Summary:	An ISO 8601 date/time/duration parser and formater
 Summary(pl.UTF-8):	Moduł analizujący i formatujący daty/czas/okresy w formacie ISO 8601
 Name:		python-%{module}
+# 0.6.1 is expected to be last version for python2
 Version:	0.6.1
 Release:	1
 License:	BSD
 Group:		Libraries/Python
-#Source0Download: https://pypi.python.org/simple/isodate/
-Source0:	https://pypi.python.org/packages/source/i/isodate/isodate-%{version}.tar.gz
+#Source0Download: https://pypi.simple/isodate/
+Source0:	https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
 # Source0-md5:	1a310658b30a48641bafb5652ad91c40
-URL:		https://pypi.python.org/pypi/isodate/
+URL:		https://pypi.org/project/pypi/
 %if %{with python2}
-BuildRequires:	python-devel >= 1:2.6
-BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-devel >= 1:2.7
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
+BuildRequires:	python-six
 %endif
 %if %{with python3}
-BuildRequires:	python3-2to3 >= 1:3.2
-BuildRequires:	python3-devel >= 1:3.2
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-devel >= 1:3.6
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
+BuildRequires:	python3-six
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.6
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,7 +52,7 @@ standardzie.
 Summary:	An ISO 8601 date/time/duration parser and formater
 Summary(pl.UTF-8):	Moduł analizujący i formatujący daty/czas/okresy w formacie ISO 8601
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.6
 
 %description -n python3-%{module}
 This module implements ISO 8601 date, time and duration parsing. The
@@ -98,13 +100,16 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.txt README.rst TODO.txt
 %dir %{py_sitescriptdir}/isodate
 %{py_sitescriptdir}/isodate/*.py[co]
 %{py_sitescriptdir}/isodate-%{version}-py*.egg-info
+%endif
 
+%if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc CHANGES.txt README.rst TODO.txt
@@ -112,3 +117,4 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/isodate/*.py
 %{py3_sitescriptdir}/isodate/__pycache__
 %{py3_sitescriptdir}/isodate-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-isodate.git/commitdiff/15380b7465ac90e324261ddb9d1f22cdd5578316



More information about the pld-cvs-commit mailing list