forked from pool/python-macholib
Accepting request 1284159 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284159 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-macholib?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 9 10:50:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 2 08:06:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Mon Jun 2 08:06:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-macholib
|
Name: python-macholib
|
||||||
Version: 1.16.3
|
Version: 1.16.3
|
||||||
@@ -28,12 +29,12 @@ Source: https://files.pythonhosted.org/packages/source/m/macholib/machol
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-altgraph >= 0.15
|
Requires: python-altgraph >= 0.15
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires(post): alts
|
|
||||||
Requires(postun): alts
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module altgraph >= 0.15}
|
BuildRequires: %{python_module altgraph >= 0.15}
|
||||||
@@ -72,15 +73,10 @@ sed -i -e '/^#!\//, 1d' macholib/macho_standalone.py
|
|||||||
rm macholib_tests/test_{command_line,dyld}.py
|
rm macholib_tests/test_{command_line,dyld}.py
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative macho_dump
|
%python_libalternatives_reset_alternative macho_dump
|
||||||
%python_install_alternative macho_standalone
|
%python_libalternatives_reset_alternative macho_standalone
|
||||||
%python_install_alternative macho_find
|
%python_libalternatives_reset_alternative macho_find
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative macho_dump
|
|
||||||
%python_uninstall_alternative macho_standalone
|
|
||||||
%python_uninstall_alternative macho_find
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst doc/*.rst
|
%doc README.rst doc/*.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user