For example for python-markupsafe.
--- /dev/null
+--- rpm-5.4.15/lib/rpmfc.c.old 2015-02-27 14:41:47.000000000 +0000
++++ rpm-5.4.15/lib/rpmfc.c 2015-02-27 14:59:44.000000000 +0000
+@@ -1153,6 +1153,7 @@ assert(fc->fn != NULL);
+ { fn = strstr(fc->fn[fc->ix], "/usr/lib");
+ if (fn) {
+ fn += sizeof("/usr/lib")-1;
++ if (fn[0] == 'x') fn++;
+ if ((fn[0] == '3' && fn[1] == '2') ||
+ (fn[0] == '6' && fn[1] == '4'))
+ fn += 2;
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 5.4.15
-Release: 12
+Release: 13
License: LGPL v2.1
Group: Base
# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
# https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
+Patch1050: python-libx32.patch
+
URL: http://rpm5.org/
BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
%if %{with sqlite}
%patch83 -p1
+%patch1050 -p1
+
install %{SOURCE2} macros/pld.in
install %{SOURCE8} scripts/php.prov.in
install %{SOURCE9} scripts/php.req.in