public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-rpm-generators] rawhide: Generate python(abi) Requires for any files in pythonX.Y directory
Date: Wed, 26 Aug 2026 10:20:56 GMT [thread overview]
Message-ID: <178773965672.1.9884040320705906813.rpms-python-rpm-generators-c88849770b0a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-rpm-generators
Branch : rawhide
Commit : c88849770b0a8beea977821ca2a87c56124b21c0
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-08-15T10:49:05+00:00
Stats : +14/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-rpm-generators/c/c88849770b0a8beea977821ca2a87c56124b21c0?branch=rawhide
Log:
Generate python(abi) Requires for any files in pythonX.Y directory
It does not matter if the package installs .py, .so or different files.
Packages that simply drop a .pth file to site-packages or even only carry dist-info folder
still need to Require the package that owns /usr/lib(64)/pythonX.Y.
---
diff --git a/python.attr b/python.attr
index cf5ae39..afcb18a 100644
--- a/python.attr
+++ b/python.attr
@@ -28,4 +28,4 @@
end
}
-%__python_path ^((%{?!flatpak:/usr}%{?flatpak:/app}/lib(64)?/python[[:digit:]]+\\.[[:digit:]]+/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]+\\.[[:digit:]]+))$
+%__python_path ^((%{?!flatpak:/usr}%{?flatpak:/app}/lib(64)?/python[[:digit:]]+\\.[[:digit:]]+/.+)|(%{_bindir}/python[[:digit:]]+\\.[[:digit:]]+))$
diff --git a/tests/pythonabi.sh b/tests/pythonabi.sh
index 36b6060..03d3723 100755
--- a/tests/pythonabi.sh
+++ b/tests/pythonabi.sh
@@ -15,5 +15,8 @@ rpm -qp --provides ${RPMDIR}/${ARCH}/python-arched-0-0.${ARCH}.rpm | grep "${ABI
rpm -qp --requires ${RPMDIR}/noarch/python-noarch-0-0.noarch.rpm | grep "${ABI}"
rpm -qp --provides ${RPMDIR}/noarch/python-noarch-0-0.noarch.rpm | grep "${ABI}" && exit 1 || true
+rpm -qp --requires ${RPMDIR}/noarch/python-data-0-0.noarch.rpm | grep "${ABI}"
+rpm -qp --provides ${RPMDIR}/noarch/python-data-0-0.noarch.rpm | grep "${ABI}" && exit 1 || true
+
rpm -qp --provides ${RPMDIR}/${ARCH}/python-misplaced-interpreter-0-0.${ARCH}.rpm | grep "${ABI}" && exit 1 || true
rpm -qp --requires ${RPMDIR}/noarch/python-misplaced-library-0-0.noarch.rpm | grep "${ABI}" && exit 1 || true
diff --git a/tests/pythonabi.spec b/tests/pythonabi.spec
index 4f5e477..c36f81c 100644
--- a/tests/pythonabi.spec
+++ b/tests/pythonabi.spec
@@ -17,6 +17,7 @@ mkdir -p %{buildroot}/opt%{_bindir}
echo "print()" > %{buildroot}%{python3_sitelib}/file.py
echo "print()" > %{buildroot}/opt%{python3_sitelib}/file.py
+echo "data" > %{buildroot}%{python3_sitelib}/file.txt
cp %{python3_sitearch}/../lib-dynload/cmath.*.so %{buildroot}%{python3_sitearch}/file.so
@@ -49,6 +50,15 @@ Summary: ...
%{_bindir}/python%{python3_version}
+%package -n python-data
+Summary: ...
+BuildArch: noarch
+%description -n python-data
+...
+%files -n python-data
+%{python3_sitelib}/file.txt
+
+
%package -n python-misplaced-library
Summary: ...
BuildArch: noarch
reply other threads:[~2026-08-26 10:20 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=178773965672.1.9884040320705906813.rpms-python-rpm-generators-c88849770b0a@fedoraproject.org \
--to=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