[packages/python-jdatetime] - new
qboosh
qboosh at pld-linux.org
Mon Jul 14 19:42:39 CEST 2025
commit 6f7a887a2c6e3cd450fc473c070b62e1ceae78c7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 14 19:44:08 2025 +0200
- new
python-jdatetime.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
---
diff --git a/python-jdatetime.spec b/python-jdatetime.spec
new file mode 100644
index 0000000..6b512e3
--- /dev/null
+++ b/python-jdatetime.spec
@@ -0,0 +1,92 @@
+#
+# 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-jdatetime.git/commitdiff/6f7a887a2c6e3cd450fc473c070b62e1ceae78c7
More information about the pld-cvs-commit
mailing list