!6 [sync] PR-5: update future package for openstack wallaby
From: @openeuler-sync-bot Reviewed-by: @zhuchunyi Signed-off-by: @zhuchunyi
This commit is contained in:
commit
e4f29466d7
BIN
future-0.18.2.tar.gz
Normal file
BIN
future-0.18.2.tar.gz
Normal file
Binary file not shown.
26
future.spec
26
future.spec
@ -9,12 +9,12 @@ you can convert you Python code to support both version.
|
||||
%{!?python3_shortver: %global python3_shortver %(%{__python3} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
|
||||
|
||||
Name: future
|
||||
Version: 0.16.0
|
||||
Release: 12
|
||||
Version: 0.18.2
|
||||
Release: 1
|
||||
Summary: Missing compatibility layer on Python 3
|
||||
License: MIT
|
||||
URL: http://python-future.org/
|
||||
Source0: https://github.com/PythonCharmers/python-future/archive/v%{version}.tar.gz#/python-future-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -29,20 +29,12 @@ BuildRequires: python3-devel python3-setuptools python3-numpy python3-requests
|
||||
%{desc}
|
||||
|
||||
%prep
|
||||
%autosetup -c -p1
|
||||
|
||||
mv python-future-%{version} python3
|
||||
cd python3
|
||||
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||
cd ..
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
cd python3
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py build --executable="%{__python3} -s"
|
||||
cd ..
|
||||
|
||||
%install
|
||||
cd python3
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/futurize $RPM_BUILD_ROOT%{_bindir}/python3-futurize
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/pasteurize $RPM_BUILD_ROOT%{_bindir}/python3-pasteurize
|
||||
@ -57,19 +49,16 @@ touch pasteurize-3 pasteurize-%{?python3_shortver}
|
||||
install -p pasteurize-3 pasteurize-%{?python3_shortver} $RPM_BUILD_ROOT%{_bindir}
|
||||
ln -sf %{_bindir}/python3-pasteurize $RPM_BUILD_ROOT%{_bindir}/pasteurize-3
|
||||
ln -sf %{_bindir}/python3-pasteurize $RPM_BUILD_ROOT%{_bindir}/pasteurize-%{?python3_shortver}
|
||||
cd ..
|
||||
|
||||
%check
|
||||
%if %{with_tests}
|
||||
cd python3
|
||||
PYTHONPATH=$PWD/build/lib py.test-3 -v
|
||||
cd ..
|
||||
%endif
|
||||
|
||||
%files -n python3-future
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%license python3/LICENSE.txt
|
||||
%doc python3/README.rst
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{_bindir}/futurize-3
|
||||
%{_bindir}/futurize-%{?python3_shortver}
|
||||
%{_bindir}/pasteurize-3
|
||||
@ -79,6 +68,9 @@ cd ..
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 14 2021 liksh <liks11@chinaunicom.cn> - 0.18.2-1
|
||||
- update package from 0.16.0 to 0.18.2
|
||||
|
||||
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 0.16.0-12
|
||||
- remove python2 subpackage
|
||||
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user