[packages/python3-elftools] - python-elftools.spec updated to 0.32 for python 3
qboosh
qboosh at pld-linux.org
Sun Feb 22 19:12:57 CET 2026
commit cb0d0472506613817407889090cbcd0da5d47d48
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 22 19:13:01 2026 +0100
- python-elftools.spec updated to 0.32 for python 3
python-elftools.spec => python3-elftools.spec | 67 ++++-----------------------
1 file changed, 9 insertions(+), 58 deletions(-)
---
diff --git a/python-elftools.spec b/python3-elftools.spec
similarity index 51%
rename from python-elftools.spec
rename to python3-elftools.spec
index a0777b5..7bf8a35 100644
--- a/python-elftools.spec
+++ b/python3-elftools.spec
@@ -1,37 +1,30 @@
#
# Conditional build:
-%bcond_with tests # run tests (require some specific version of binutils)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with tests # test suite (requires some specific version of binutils)
%define module elftools
Summary: Pure-Python library for parsing and analyzing ELF files
Summary(pl.UTF-8): Czysto pythonowa biblioteka do analizy plików ELF
Name: python-%{module}
-Version: 0.29
-Release: 3
+Version: 0.32
+Release: 1
License: public domain
Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pyelftools/
Source0: https://files.pythonhosted.org/packages/source/p/pyelftools/pyelftools-%{version}.tar.gz
-# Source0-md5: 2afc97cd239c0dea0cca97d00d3dcb42
+# Source0-md5: 240cf39dc5dad992f25cb5a4e4244f88
URL: https://github.com/eliben/pyelftools
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-setuptools >= 1:46.4.0
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%endif
%if %{with tests}
# readelf
BuildRequires: binutils
# llvm-dwarfdump
BuildRequires: llvm
%endif
-Requires: python-modules
+Requires: python3-modules >= 1:3.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,20 +36,6 @@ files and DWARF debugging information.
pyelftools to czysto pythonowa biblioteka do analizy plików ELF oraz
informacji dla debuggera DWARF.
-%package -n python3-%{module}
-Summary: Pure-Python library for parsing and analyzing ELF files
-Summary(pl.UTF-8): Czysto pythonowa biblioteka do analizy plików ELF
-Group: Libraries/Python
-Requires: python3-modules
-
-%description -n python3-%{module}
-pyelftools is a pure-Python library for parsing and analyzing ELF
-files and DWARF debugging information.
-
-%description -n python3-%{module} -l pl.UTF-8
-pyelftools to czysto pythonowa biblioteka do analizy plików ELF oraz
-informacji dla debuggera DWARF.
-
%prep
%setup -q -n pyelftools-%{version}
@@ -68,34 +47,16 @@ ln -sf /usr/bin/llvm-dwarfdump test/external_tools/llvm-dwarfdump
%endif
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} ./test/all_tests.py
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
%{__python3} ./test/all_tests.py
%endif
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
%py3_install
-%endif
# readelf clone example
%{__rm} $RPM_BUILD_ROOT%{_bindir}/readelf.py
@@ -103,18 +64,8 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc LICENSE CHANGES
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/pyelftools-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE CHANGES
+%doc CHANGES LICENSE README.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/pyelftools-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-elftools.git/commitdiff/cb0d0472506613817407889090cbcd0da5d47d48
More information about the pld-cvs-commit
mailing list