python-isodate/python-isodate.spec

86 lines
2.7 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-isodate
Version: 0.6.1
Release: 4mamba
Summary: An ISO 8601 date/time/duration parser and formatter
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/isodate/
Source: https://pypi.debian.net/isodate/isodate-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(six)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n isodate-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/{csv2rdf}; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Tue Dec 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-4mamba
- rebuilt with python-build and distdeps
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 0.6.1-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sun Sep 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-2mamba
- rebuilt with python 3.10
* Tue Dec 14 2021 Automatic Build System <autodist@mambasoft.it> 0.6.1-1mamba
- automatic version update by autodist
* Tue Jan 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-2mamba
- rebuilt with python3
* Tue May 01 2018 Automatic Build System <autodist@mambasoft.it> 0.6.0-1mamba
- automatic version update by autodist
* Tue Nov 03 2015 Automatic Build System <autodist@mambasoft.it> 0.5.4-1mamba
- automatic version update by autodist
* Wed Dec 03 2014 Automatic Build System <autodist@mambasoft.it> 0.5.1-1mamba
- automatic update by autodist
* Thu Feb 27 2014 Automatic Build System <autodist@mambasoft.it> 0.5.0-1mamba
- automatic update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.9-2mamba
- python 2.7 mass rebuild
* Tue Oct 30 2012 Automatic Build System <autodist@mambasoft.it> 0.4.9-1mamba
- automatic version update by autodist
* Tue Sep 04 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.8-1mamba
- package created by autospec