Accepting request 848902 from devel:languages:python
- Avoid duplicite wheel name in the generated package, and we actually don't need a subpackage at all. - Make wheel a separate build run to avoid the setuptools/wheel build cycle. - Add wheel subpackage with the generated wheel for this package (bsc#1176262, CVE-2019-20916). OBS-URL: https://build.opensuse.org/request/show/848902 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-setuptools?expand=0&rev=62
This commit is contained in:
commit
2016c9bc92
@ -1,3 +1,4 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>test</package>
|
<package>test</package>
|
||||||
|
<package>wheel</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 16 14:02:34 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Avoid duplicite wheel name in the generated package, and we actually
|
||||||
|
don't need a subpackage at all.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 12 16:09:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make wheel a separate build run to avoid the setuptools/wheel build
|
||||||
|
cycle.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 10 09:21:02 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add wheel subpackage with the generated wheel for this package
|
||||||
|
(bsc#1176262, CVE-2019-20916).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 13 11:03:41 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
Thu Aug 13 11:03:41 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -22,9 +22,16 @@
|
|||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
|
%bcond_with wheel
|
||||||
|
%else
|
||||||
|
%if "%{flavor}" == "wheel"
|
||||||
|
%define psuffix -wheel
|
||||||
|
%bcond_without wheel
|
||||||
%else
|
%else
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
|
%bcond_with wheel
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-setuptools%{psuffix}
|
Name: python-setuptools%{psuffix}
|
||||||
@ -80,6 +87,9 @@ Recommends: ca-certificates-mozilla
|
|||||||
Provides: %{oldpython}-distribute = %{version}
|
Provides: %{oldpython}-distribute = %{version}
|
||||||
Obsoletes: %{oldpython}-distribute < %{version}
|
Obsoletes: %{oldpython}-distribute < %{version}
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with wheel}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -121,15 +131,24 @@ find ./ -type f -name \*.py -exec sed -i \
|
|||||||
{} \;
|
{} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if ! %{with wheel}
|
||||||
%python_build
|
%python_build
|
||||||
|
%else
|
||||||
|
%python_exec setup.py bdist_wheel --universal
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test} && !%{with wheel}
|
||||||
%python_install
|
%python_install
|
||||||
%prepare_alternative easy_install
|
%prepare_alternative easy_install
|
||||||
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with wheel}
|
||||||
|
%python_expand install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# the 4 skipped test rely on the bundled packages but they are
|
# the 4 skipped test rely on the bundled packages but they are
|
||||||
@ -140,14 +159,16 @@ export PYTHONPATH=$(pwd)
|
|||||||
%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)'
|
%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test} && !%{with wheel}
|
||||||
%post
|
%post
|
||||||
%python_install_alternative easy_install
|
%python_install_alternative easy_install
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative easy_install
|
%python_uninstall_alternative easy_install
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
%if !%{with test} && !%{with wheel}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%python_alternative %{_bindir}/easy_install
|
%python_alternative %{_bindir}/easy_install
|
||||||
@ -159,4 +180,9 @@ export PYTHONPATH=$(pwd)
|
|||||||
%{python_sitelib}/pkg_resources/*
|
%{python_sitelib}/pkg_resources/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with wheel}
|
||||||
|
%dir %{python_sitelib}/../wheels
|
||||||
|
%{python_sitelib}/../wheels/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user