[packages/python3-convertdate] - python-convertdate.spec updated to 2.4.0 for python 3.7+

qboosh qboosh at pld-linux.org
Mon Jul 14 19:38:53 CEST 2025


commit 41cc5983b1ba2a31a3c1a04c318f0fd7ce91c7d4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 14 19:40:30 2025 +0200

    - python-convertdate.spec updated to 2.4.0 for python 3.7+

 python-convertdate.spec  | 100 -----------------------------------------------
 python3-convertdate.spec |  51 ++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 100 deletions(-)
---
diff --git a/python-convertdate.spec b/python-convertdate.spec
deleted file mode 100644
index 66ece88..0000000
--- a/python-convertdate.spec
+++ /dev/null
@@ -1,100 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-convertdate.spec)
-
-Summary:	Converts between Gregorian dates and other calendar systems
-Summary(pl.UTF-8):	Konwersja między datami gregoriańskimi a innymi systemami kalendarza
-Name:		python-convertdate
-# keep 2.2.x here for python2 support
-Version:	2.2.2
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/convertdate/
-Source0:	https://files.pythonhosted.org/packages/source/c/convertdate/convertdate-%{version}.tar.gz
-# Source0-md5:	ac845ba4edec63754594bfbd63447e0e
-URL:		https://pypi.org/project/convertdate/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Converts between Gregorian dates and other calendar systems. Calendars
-included: Baha'i, French Republican, Hebrew, Indian Civil, Islamic,
-ISO, Julian, Mayan and Persian.
-
-%description -l pl.UTF-8
-Konwersja między datami gregoriańskimi a innymi systemami kalendarzy -
-w tym: baha'i, francuski republikański, hebrajski, indyjski narodowy,
-islamski, ISO, juliański, Majów i perski.
-
-%package -n python3-convertdate
-Summary:	Converts between Gregorian dates and other calendar systems
-Summary(pl.UTF-8):	Konwersja między datami gregoriańskimi a innymi systemami kalendarza
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-convertdate
-Converts between Gregorian dates and other calendar systems. Calendars
-included: Baha'i, French Republican, Hebrew, Indian Civil, Islamic,
-ISO, Julian, Mayan and Persian.
-
-%description -n python3-convertdate -l pl.UTF-8
-Konwersja między datami gregoriańskimi a innymi systemami kalendarzy -
-w tym: baha'i, francuski republikański, hebrajski, indyjski narodowy,
-islamski, ISO, juliański, Majów i perski.
-
-%prep
-%setup -q -n convertdate-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc HISTORY.rst LICENSE README.md
-%{py_sitescriptdir}/convertdate
-%{py_sitescriptdir}/convertdate-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-convertdate
-%defattr(644,root,root,755)
-%doc HISTORY.rst LICENSE README.md
-%{py3_sitescriptdir}/convertdate
-%{py3_sitescriptdir}/convertdate-%{version}-py*.egg-info
-%endif
diff --git a/python3-convertdate.spec b/python3-convertdate.spec
new file mode 100644
index 0000000..9c09b45
--- /dev/null
+++ b/python3-convertdate.spec
@@ -0,0 +1,51 @@
+Summary:	Converts between Gregorian dates and other calendar systems
+Summary(pl.UTF-8):	Konwersja między datami gregoriańskimi a innymi systemami kalendarza
+Name:		python3-convertdate
+Version:	2.4.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/convertdate/
+Source0:	https://files.pythonhosted.org/packages/source/c/convertdate/convertdate-%{version}.tar.gz
+# Source0-md5:	320965d9ae24060c385110606c61d040
+URL:		https://pypi.org/project/convertdate/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:60.5.0
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Converts between Gregorian dates and other calendar systems. Calendars
+included: Baha'i, French Republican, Hebrew, Indian Civil, Islamic,
+ISO, Julian, Mayan and Persian.
+
+%description -l pl.UTF-8
+Konwersja między datami gregoriańskimi a innymi systemami kalendarzy -
+w tym: baha'i, francuski republikański, hebrajski, indyjski narodowy,
+islamski, ISO, juliański, Majów i perski.
+
+%prep
+%setup -q -n convertdate-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+# python code (censusgeocode.__main__) not present
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/censusgeocode
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/convertdate
+%{py3_sitescriptdir}/convertdate-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-convertdate.git/commitdiff/41cc5983b1ba2a31a3c1a04c318f0fd7ce91c7d4



More information about the pld-cvs-commit mailing list