diff --git a/future-0.18.2.tar.gz b/future-0.18.2.tar.gz new file mode 100644 index 0000000..3c5328a Binary files /dev/null and b/future-0.18.2.tar.gz differ diff --git a/future.spec b/future.spec index 2ec8ce0..3319c0f 100644 --- a/future.spec +++ b/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 - 0.18.2-1 +- update package from 0.16.0 to 0.18.2 + * Wed Oct 21 2020 leiju - 0.16.0-12 - remove python2 subpackage diff --git a/python-future-0.16.0.tar.gz b/python-future-0.16.0.tar.gz deleted file mode 100644 index d45ff76..0000000 Binary files a/python-future-0.16.0.tar.gz and /dev/null differ