forked from pool/python-pyelftools
- Add %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyelftools?expand=0&rev=19
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 16 17:04:54 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 14 20:57:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Dec 14 20:57:11 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyelftools
|
# spec file for package python-pyelftools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 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
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyelftools
|
Name: python-pyelftools
|
||||||
Version: 0.30
|
Version: 0.30
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,7 +25,9 @@ License: SUSE-Public-Domain
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/eliben/pyelftools
|
URL: https://github.com/eliben/pyelftools
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyelftools/pyelftools-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyelftools/pyelftools-%{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(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
@@ -37,13 +39,13 @@ BuildArch: noarch
|
|||||||
pyelftools is a pure python library for analyzing ELF files and DWARF debugging information
|
pyelftools is a pure python library for analyzing ELF files and DWARF debugging information
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyelftools-%{version}
|
%autosetup -p1 -n pyelftools-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/readelf.py
|
%python_clone -a %{buildroot}%{_bindir}/readelf.py
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -66,6 +68,7 @@ pyelftools is a pure python library for analyzing ELF files and DWARF debugging
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES
|
%doc CHANGES
|
||||||
%python_alternative %{_bindir}/readelf.py
|
%python_alternative %{_bindir}/readelf.py
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/elftools
|
||||||
|
%{python_sitelib}/pyelftools-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user