Accepting request 807659 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807659 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyelftools?expand=0&rev=4
This commit is contained in:
commit
8ef14994af
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:24 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 19 14:07:18 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Thu Mar 19 14:07:18 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/p/pyelftools/pyel
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -45,6 +47,7 @@ rm test/test_pubtypes.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/readelf.py
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -54,10 +57,16 @@ rm test/test_pubtypes.py
|
|||||||
# https://github.com/eliben/pyelftools/wiki/Hacking-guide#tests
|
# https://github.com/eliben/pyelftools/wiki/Hacking-guide#tests
|
||||||
%python_exec test/run_readelf_tests.py || :
|
%python_exec test/run_readelf_tests.py || :
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative readelf.py
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative readelf.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES
|
%doc CHANGES
|
||||||
%python3_only %{_bindir}/readelf.py
|
%python_alternative %{_bindir}/readelf.py
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user