forked from pool/python-macholib
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 83d844a8bf | |||
| f8f10fe353 | |||
| c2a61ff39d | |||
| 32ea22a0ef |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 7 22:29:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user