|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package python-macholib
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
@@ -16,6 +16,7 @@
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
Name: python-macholib
|
|
|
|
|
Version: 1.16.3
|
|
|
|
|
@@ -25,13 +26,15 @@ License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://github.com/ronaldoussoren/macholib/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/macholib/macholib-%{version}.tar.gz
|
|
|
|
|
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): update-alternatives
|
|
|
|
|
Requires(postun):update-alternatives
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module altgraph >= 0.15}
|
|
|
|
|
@@ -56,10 +59,10 @@ sed -i -e '/^#!\//, 1d' macholib/macho_find.py
|
|
|
|
|
sed -i -e '/^#!\//, 1d' macholib/macho_standalone.py
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/macho_dump
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/macho_standalone
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/macho_find
|
|
|
|
|
@@ -70,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
|
|
|
|
|
@@ -86,6 +84,7 @@ rm macholib_tests/test_{command_line,dyld}.py
|
|
|
|
|
%python_alternative %{_bindir}/macho_find
|
|
|
|
|
%python_alternative %{_bindir}/macho_standalone
|
|
|
|
|
%python_alternative %{_bindir}/macho_dump
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%{python_sitelib}/macholib
|
|
|
|
|
%{python_sitelib}/macholib-%{version}*-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|