14
0
2025-06-02 08:07:08 +00:00
committed by Git OBS Bridge
parent 87a45d5ba5
commit 6965e5559e
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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> Thu Dec 7 22:29:13 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-macholib # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,13 +25,15 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/ronaldoussoren/macholib/ URL: https://github.com/ronaldoussoren/macholib/
Source: https://files.pythonhosted.org/packages/source/m/macholib/macholib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/m/macholib/macholib-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-altgraph >= 0.15 Requires: python-altgraph >= 0.15
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives Requires(post): alts
Requires(postun):update-alternatives 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}
@@ -56,10 +58,10 @@ sed -i -e '/^#!\//, 1d' macholib/macho_find.py
sed -i -e '/^#!\//, 1d' macholib/macho_standalone.py sed -i -e '/^#!\//, 1d' macholib/macho_standalone.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/macho_dump %python_clone -a %{buildroot}%{_bindir}/macho_dump
%python_clone -a %{buildroot}%{_bindir}/macho_standalone %python_clone -a %{buildroot}%{_bindir}/macho_standalone
%python_clone -a %{buildroot}%{_bindir}/macho_find %python_clone -a %{buildroot}%{_bindir}/macho_find
@@ -86,6 +88,7 @@ rm macholib_tests/test_{command_line,dyld}.py
%python_alternative %{_bindir}/macho_find %python_alternative %{_bindir}/macho_find
%python_alternative %{_bindir}/macho_standalone %python_alternative %{_bindir}/macho_standalone
%python_alternative %{_bindir}/macho_dump %python_alternative %{_bindir}/macho_dump
%{python_sitelib}/* %{python_sitelib}/macholib
%{python_sitelib}/macholib-%{version}*-info
%changelog %changelog