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> | ||||
|  | ||||
|   | ||||
| @@ -16,6 +16,7 @@ | ||||
| # | ||||
|  | ||||
|  | ||||
| %bcond_without libalternatives | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-macholib | ||||
| 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 setuptools} | ||||
| BuildRequires:  %{python_module wheel} | ||||
| BuildRequires:  alts | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| Requires:       alts | ||||
| Requires:       python-altgraph >= 0.15 | ||||
| Requires:       python-setuptools | ||||
| Requires(post): alts | ||||
| Requires(postun): alts | ||||
| BuildArch:      noarch | ||||
| # SECTION test requirements | ||||
| 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 | ||||
| %pytest | ||||
|  | ||||
| %post | ||||
| %python_install_alternative macho_dump | ||||
| %python_install_alternative macho_standalone | ||||
| %python_install_alternative macho_find | ||||
|  | ||||
| %postun | ||||
| %python_uninstall_alternative macho_dump | ||||
| %python_uninstall_alternative macho_standalone | ||||
| %python_uninstall_alternative macho_find | ||||
| %pre | ||||
| %python_libalternatives_reset_alternative macho_dump | ||||
| %python_libalternatives_reset_alternative macho_standalone | ||||
| %python_libalternatives_reset_alternative macho_find | ||||
|  | ||||
| %files %{python_files} | ||||
| %doc README.rst doc/*.rst | ||||
|   | ||||
		Reference in New Issue
	
	Block a user