83 lines
2.5 KiB
RPMSpec
83 lines
2.5 KiB
RPMSpec
Name: python-future
|
|
Version: 0.18.3
|
|
Release: 2mamba
|
|
Summary: Clean single-source support for Python 3 and 2
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://pypi.org/project/future/
|
|
Source: https://pypi.debian.net/future/future-%{version}.tar.gz
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: python3.7dist(setuptools)
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%if 0%{?with_pyver}
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n future-%{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 "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
sed -i "\,%{_bindir},d" %{name}.filelist
|
|
|
|
%if "%{?with_pyver}" != "3"
|
|
# Rename any conflicting file outside of python site packages tree
|
|
for f in %{_bindir}/{futurize,pasteurize}; do
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
done
|
|
%endif
|
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%{_bindir}/futurize*
|
|
%{_bindir}/pasteurize*
|
|
%dir %{python_sitearch}/future-%{version}-py*.egg-info
|
|
%{python_sitearch}/future-%{version}-py*.egg-info/*
|
|
|
|
%changelog
|
|
* Mon Jan 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.3-2mamba
|
|
- rename conflicting binaries
|
|
|
|
* Fri Jan 13 2023 Automatic Build System <autodist@mambasoft.it> 0.18.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat May 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.2-2mamba
|
|
- rebuilt with py27 and py3 targets
|
|
|
|
* Wed Nov 06 2019 Automatic Build System <autodist@mambasoft.it> 0.18.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 19 2019 Automatic Build System <autodist@mambasoft.it> 0.18.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Oct 14 2019 Automatic Build System <autodist@mambasoft.it> 0.18.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 31 2018 Automatic Build System <autodist@mambasoft.it> 0.17.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 30 2018 Automatic Build System <autodist@mambasoft.it> 0.17.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Oct 28 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
|
|
- package created using the webbuild interface
|