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] f44: Add Python package metadata
Date: Mon, 16 Nov 2026 18:49:53 GMT [thread overview]
Message-ID: <179485499351.1.2454232733469295301.rpms-patchelf-385dc3144fa5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/patchelf
Branch : f44
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=f44
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
reply other threads:[~2026-11-16 18:49 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=179485499351.1.2454232733469295301.rpms-patchelf-385dc3144fa5@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