public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/patchelf] epel10: Add Python package metadata
@ 2026-11-17 18:27 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-17 18:27 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/patchelf
Branch : epel10
Commit : 385dc3144fa56196c2342434f6b85822912bf87b
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-16T09:35:34-05:00
Stats : +26/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/patchelf/c/385dc3144fa56196c2342434f6b85822912bf87b?branch=epel10
Log:
Add Python package metadata
patchelf is also packaged on PyPI via https://github.com/mayeut/patchelf-pypi.
For example, auditwheel lists this as a test dependency, and maturin
and meson-python use this in certain scenarios.
When %pyproject_buildrequires is run against such a package, a
BuildRequires on python3dist(patchelf) is generated. This will fulfill
such a requirement, and allow the package to build without bypassing or
patching dynamic BRs.
---
diff --git a/patchelf.spec b/patchelf.spec
index 98e2c6a..ad272f9 100644
--- a/patchelf.spec
+++ b/patchelf.spec
@@ -3,7 +3,7 @@
Name: patchelf
Version: 0.18.0
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: A utility for patching ELF binaries
# Automatically converted from old format: GPLv3+ - review is highly recommended.
@@ -24,12 +24,22 @@ BuildRequires: automake
BuildRequires: coreutils
BuildRequires: libacl-devel
BuildRequires: libattr-devel
+BuildRequires: python3-devel
%description
PatchELF is a simple utility for modifying an existing ELF executable
or library. It can change the dynamic loader ("ELF interpreter")
of an executable and change the RPATH of an executable or library.
+%package -n python3-%{name}
+Summary: Python package metadata for patchelf
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description -n python3-patchelf
+This package registers patchelf as installed Python package for the purpose
+of using "patchelf" as a build dependency in a pyproject.toml file.
+
%prep
%autosetup -p1
@@ -50,6 +60,15 @@ make check || (cat tests/*.log; exit 1)
# standard way in the docs section below
rm -rf %{buildroot}/usr/share/doc/%{name}
+# Create python package metadata
+mkdir -p %{buildroot}%{python3_sitelib}/%{name}-%{version}.dist-info
+echo "rpm" > %{buildroot}%{python3_sitelib}/%{name}-%{version}.dist-info/INSTALLER
+cat > %{buildroot}%{python3_sitelib}/%{name}-%{version}.dist-info/METADATA <<_EOF
+Metadata-Version: 2.1
+Name: %{name}
+Version: %{version}
+_EOF
+
%files
%license COPYING
%doc README.md
@@ -59,7 +78,13 @@ rm -rf %{buildroot}/usr/share/doc/%{name}
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_patchelf
+%files -n python3-%{name}
+%{python3_sitelib}/%{name}-%{version}.dist-info/
+
%changelog
+* Mon Nov 09 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.18.0-11
+- Add Python package metadata
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-17 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 18:27 [rpms/patchelf] epel10: Add Python package metadata Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox