From 5dab1ed795e4a7d47846bf7701b6f70448b1686a Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 11:01:37 +0100 Subject: [PATCH] update the specfile to allow the automatic buid of the python3 subpackage [release 2.5.3-2mamba;Mon Jul 18 2016] --- python-dateutil.spec | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/python-dateutil.spec b/python-dateutil.spec index 816890b..b7f95e2 100644 --- a/python-dateutil.spec +++ b/python-dateutil.spec @@ -1,6 +1,6 @@ Name: python-dateutil Version: 2.5.3 -Release: 1mamba +Release: 2mamba Summary: Extensions to the standard python datetime module Group: System/Libraries/Python Vendor: openmamba @@ -10,13 +10,19 @@ URL: http://labix.org/python-dateutil Source: https://pypi.debian.net/python-dateutil/python-dateutil-%{version}.tar.gz License: PSF Requires: python >= %python_version +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The dateutil module provides powerful extensions to the standard datetime module, available since Python 2.3+. -%prep +%if 0%{?with_pyver} +%pyver_package +%endif +%prep %setup -q %build @@ -25,19 +31,22 @@ The dateutil module provides powerful extensions to the standard datetime module %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ + -O1 --skip-build \ --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/dateutil/* -%{python_sitearch}/python_dateutil-%{version}-py*.egg-info/* %changelog +* Mon Jul 18 2016 Davide Madrisan 2.5.3-2mamba +- update the specfile to allow the automatic buid of the python3 subpackage + * Thu Jun 02 2016 Automatic Build System 2.5.3-1mamba - automatic version update by autodist @@ -78,4 +87,4 @@ The dateutil module provides powerful extensions to the standard datetime module - update to 1.4.1 * Thu May 15 2008 Silvan Calarco 1.4-1mamba -- package created by autospec +- package created by autospec \ No newline at end of file