find-lang.sh: patched to fix detection of qt translations [release 4.14.2.1-13mamba;Sat Aug 31 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 17:29:06 +01:00
parent 3b9ac4a353
commit ca4fc5d717
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- rpm-4.14.2.1/scripts/find-lang.sh.orig 2019-08-31 12:50:47.237000000 +0200
+++ rpm-4.14.2.1/scripts/find-lang.sh 2019-08-31 12:50:53.363000000 +0200
@@ -235,6 +235,7 @@
find "$TOP_DIR" -type f -o -type l|sed '
s:'"$TOP_DIR"'::
'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([a-zA-Z]\{2\}\([_@].*\)\?\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:^\([^%].*/\([a-zA-Z_@]*\)/LC_MESSAGES/.*\.qm$\):%lang(\2) \1:
'"$ALL_NAME$QT"'s:^\([^%].*/\([a-zA-Z]\{2\}[_@].*\)\.qm$\):%lang(\2) \1:
'"$ALL_NAME$QT"'s:^\([^%].*/\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
'"$ALL_NAME$QT"'s:^\([^%].*/[^/_]\+_\([a-zA-Z]\{2\}[_@].*\)\.qm$\):%lang(\2) \1:

View File

@ -17,7 +17,7 @@
Name: rpm
Epoch: 1
Version: 4.14.2.1
Release: 12mamba
Release: 13mamba
Summary: The RPM Package Manager (RPM) is a powerful package management system
Group: System/Management
Vendor: openmamba
@ -38,6 +38,7 @@ Patch8: rpm-4.14.2.1-arm-openamba-force-armv5t.patch
Patch9: rpm-4.14.2.1-increase_default_patch_fuzz.patch
Patch10: rpm-4.14.2.1-openmamba-buildroot.patch
Patch11: rpm-4.14.2.1-target-platform-gnu.patch
Patch12: rpm-4.14.2.1-find-lang-qt-fix.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -131,6 +132,7 @@ This package should be installed if you want to develop Python programs that wil
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%build
#:<< _EOF
@ -272,6 +274,9 @@ _EOF
%{python27_sitearch}/rpm/*
%changelog
* Sat Aug 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14.2.1-13mamba
- find-lang.sh: patched to fix detection of qt translations
* Thu Aug 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14.2.1-12mamba
- added patch to add %{_gnu} to %_target platform