python-ciso8601/python-ciso8601.spec

52 lines
1.3 KiB
RPMSpec
Raw Normal View History

Name: python-ciso8601
Version: 2.2.0
Release: 1mamba
Summary: Converts ISO 8601 or RFC 3339 date time strings into Python datetime objects
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/ciso8601/
Source: https://pypi.debian.net/ciso8601/ciso8601-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n ciso8601-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%doc LICENSE
%changelog
* Sat Aug 07 2021 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
- automatic version update by autodist
* Wed Sep 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-1mamba
- package created using the webbuild interface