fix pythondist provides for noarch packages
authorJan Palus <atler@pld-linux.org>
Wed, 9 Dec 2020 12:24:28 +0000 (13:24 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 9 Dec 2020 12:24:28 +0000 (13:24 +0100)
rpm-noarch_py_prov.patch [new file with mode: 0644]
rpm.spec

diff --git a/rpm-noarch_py_prov.patch b/rpm-noarch_py_prov.patch
new file mode 100644 (file)
index 0000000..7c42050
--- /dev/null
@@ -0,0 +1,8 @@
+diff --color -urN rpm-4.16.0.orig/fileattrs/pythondist.attr rpm-4.16.0/fileattrs/pythondist.attr
+--- rpm-4.16.0.orig/fileattrs/pythondist.attr  2020-12-09 12:38:21.203961862 +0100
++++ rpm-4.16.0/fileattrs/pythondist.attr       2020-12-09 12:58:43.178952892 +0100
+@@ -1,3 +1,3 @@
+ %__pythondist_provides        %{_rpmconfigdir}/pythondistdeps.py --provides --majorver-provides
+ %__pythondist_requires        %{_rpmconfigdir}/pythondistdeps.py --requires
+-%__pythondist_path            /lib(64|x32)?/python[[:digit:]]\\.[[:digit:]]+/site-packages/[^/]+\\.(dist-info|egg-info|egg-link)$
++%__pythondist_path            /(lib(64|x32)?|share)/python[[:digit:]]\\.[[:digit:]]+/site-packages/[^/]+\\.(dist-info|egg-info|egg-link)$
index 89e83563883ebbe5d0e3e676ea027b98f868b78e..6329cb122d6924170b436eef845f1685a96326d8 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -79,6 +79,7 @@ Patch25:      rpmio-read-proc-files.patch
 Patch26:       allow-at-in-ver-rel.patch
 Patch27:       no-exeonly-for-elf-reqprov.patch
 Patch28:       default-patch-flags.patch
+Patch29:       %{name}-noarch_py_prov.patch
 URL:           https://rpm.org/
 BuildRequires: acl-devel
 BuildRequires: db-devel >= %{db_ver}
@@ -573,6 +574,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
 
 install %{SOURCE15} scripts/perl.prov.in
 
This page took 0.044403 seconds and 4 git commands to generate.