[packages/python3-jdatetime] - python-jdatetime.spec updated to 5.2.0 for python 3.9+
qboosh
qboosh at pld-linux.org
Mon Jul 14 19:47:22 CEST 2025
commit 902f3aeaa847b6f615e1ae57a402f8797a686c63
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 14 19:48:24 2025 +0200
- python-jdatetime.spec updated to 5.2.0 for python 3.9+
python-jdatetime.spec | 92 --------------------------------------------------
python3-jdatetime.spec | 44 ++++++++++++++++++++++++
2 files changed, 44 insertions(+), 92 deletions(-)
---
diff --git a/python-jdatetime.spec b/python-jdatetime.spec
deleted file mode 100644
index 6b512e3..0000000
--- a/python-jdatetime.spec
+++ /dev/null
@@ -1,92 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-jdatetime.spec)
-
-Summary: Jalali implementation of Python's datetime module
-Summary(pl.UTF-8): Implementacja Dżalali modułu Pythona datetime
-Name: python-jdatetime
-# keep 3.x here for python2 support
-Version: 3.8.2
-Release: 1
-License: PSF
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/jdatetime/
-Source0: https://files.pythonhosted.org/packages/source/j/jdatetime/jdatetime-%{version}.tar.gz
-# Source0-md5: 4b58ee001e215027b5a483dcc5619c6e
-URL: https://pypi.org/project/jdatetime/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.6
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-jdatetime is Jalali implementation of Python's datetime module.
-
-%description -l pl.UTF-8
-jdatetime to implementacja Dżalali modułu Pythona datetime.
-
-%package -n python3-jdatetime
-Summary: Jalali implementation of Python's datetime module
-Summary(pl.UTF-8): Implementacja Dżalali modułu Pythona datetime
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-jdatetime
-jdatetime is Jalali implementation of Python's datetime module.
-
-%description -n python3-jdatetime -l pl.UTF-8
-jdatetime to implementacja Dżalali modułu Pythona datetime.
-
-%prep
-%setup -q -n jdatetime-%{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 LICENSE README
-%{py_sitescriptdir}/jdatetime
-%{py_sitescriptdir}/jdatetime-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-jdatetime
-%defattr(644,root,root,755)
-%doc LICENSE README
-%{py3_sitescriptdir}/jdatetime
-%{py3_sitescriptdir}/jdatetime-%{version}-py*.egg-info
-%endif
diff --git a/python3-jdatetime.spec b/python3-jdatetime.spec
new file mode 100644
index 0000000..a40bda2
--- /dev/null
+++ b/python3-jdatetime.spec
@@ -0,0 +1,44 @@
+Summary: Jalali implementation of Python's datetime module
+Summary(pl.UTF-8): Implementacja Dżalali modułu Pythona datetime
+Name: python3-jdatetime
+Version: 5.2.0
+Release: 1
+License: PSF
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/jdatetime/
+Source0: https://files.pythonhosted.org/packages/source/j/jdatetime/jdatetime-%{version}.tar.gz
+# Source0-md5: 7df62858c834b8bd379f67e8ce1aaac4
+URL: https://pypi.org/project/jdatetime/
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+jdatetime is Jalali implementation of Python's datetime module.
+
+%description -l pl.UTF-8
+jdatetime to implementacja Dżalali modułu Pythona datetime.
+
+%prep
+%setup -q -n jdatetime-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+%{py3_sitescriptdir}/jdatetime
+%{py3_sitescriptdir}/jdatetime-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-jdatetime.git/commitdiff/902f3aeaa847b6f615e1ae57a402f8797a686c63
More information about the pld-cvs-commit
mailing list