python-ciso8601/python-ciso8601.spec

52 lines
1.3 KiB
RPMSpec

Name: python-ciso8601
Version: 2.1.3
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: ldconfig
BuildRequires: libpython3-devel
BuildRequires: libpython36-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
* Wed Sep 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-1mamba
- package created using the webbuild interface