forked from pool/python-macholib
		
	Accepting request 808683 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808683 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-macholib?expand=0&rev=5
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon May 25 06:50:39 UTC 2020 - Petr Gajdos <pgajdos@suse.com> | ||||
|  | ||||
| - %python3_only -> %python_alternative | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Wed Apr  1 10:32:23 UTC 2020 - pgajdos@suse.com | ||||
|  | ||||
|   | ||||
| @@ -30,6 +30,8 @@ BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| Requires:       python-altgraph >= 0.15 | ||||
| Requires:       python-setuptools | ||||
| Requires(post): update-alternatives | ||||
| Requires(postun): update-alternatives | ||||
| BuildArch:      noarch | ||||
| # SECTION test requirements | ||||
| BuildRequires:  %{python_module altgraph >= 0.15} | ||||
| @@ -58,6 +60,9 @@ sed -i -e '/^#!\//, 1d' macholib/macho_standalone.py | ||||
|  | ||||
| %install | ||||
| %python_install | ||||
| %python_clone -a %{buildroot}%{_bindir}/macho_dump | ||||
| %python_clone -a %{buildroot}%{_bindir}/macho_standalone | ||||
| %python_clone -a %{buildroot}%{_bindir}/macho_find | ||||
| %python_expand %fdupes %{buildroot}%{$python_sitelib} | ||||
|  | ||||
| %check | ||||
| @@ -65,12 +70,22 @@ 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 | ||||
|  | ||||
| %files %{python_files} | ||||
| %doc README.rst doc/*.rst | ||||
| %license doc/license.rst | ||||
| %python3_only %{_bindir}/macho_find | ||||
| %python3_only %{_bindir}/macho_standalone | ||||
| %python3_only %{_bindir}/macho_dump | ||||
| %python_alternative %{_bindir}/macho_find | ||||
| %python_alternative %{_bindir}/macho_standalone | ||||
| %python_alternative %{_bindir}/macho_dump | ||||
| %{python_sitelib}/* | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user