public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/patchelf] rawhide: Add Python package metadata
Date: Sat, 14 Nov 2026 12:39:12 GMT [thread overview]
Message-ID: <179465995225.1.3710911096705097680.rpms-patchelf-144068ad1bea@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/patchelf
Branch : rawhide
Commit : 144068ad1bea49e39083c5ca71a64cd9f4b0adcc
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-09T09:31:48-05:00
Stats : +26/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/patchelf/c/144068ad1bea49e39083c5ca71a64cd9f4b0adcc?branch=rawhide
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 752e7d3..ae7d520 100644
--- a/patchelf.spec
+++ b/patchelf.spec
@@ -3,7 +3,7 @@
Name: patchelf
Version: 0.19.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A utility for patching ELF binaries
License: GPL-3.0-or-later
@@ -18,12 +18,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
@@ -44,6 +54,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
@@ -53,7 +72,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.19.3-2
+- Add Python package metadata
+
* Sat Oct 31 2026 Jeremy Sanders <jeremy@jeremysanders.net> - 0.19.3-1
- Update to v0.19.3
- Fixes rhbz#2564374
reply other threads:[~2026-11-14 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179465995225.1.3710911096705097680.rpms-patchelf-144068ad1bea@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox