[packages/rpm-pld-macros] - 2.075: find_lang 1.43: for empty .mo files generate %%exclude entry to silence check-files

qboosh qboosh at pld-linux.org
Tue Dec 1 17:27:43 CET 2026


commit 8dfef0da949c4f9481dae5e57c7dd6228a3fdbc0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 1 17:27:49 2026 +0100

    - 2.075: find_lang 1.43: for empty .mo files generate %%exclude entry to silence check-files

 find-lang.sh        | 6 +++---
 rpm-pld-macros.spec | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 7e1b6e4..7ea5d01 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,5 +1,5 @@
-%define		rpm_macros_rev	2.074
-%define		find_lang_rev	1.42
+%define		rpm_macros_rev	2.075
+%define		find_lang_rev	1.43
 # split into individual X_prov_ver if there is a reason to desync
 %define		prov_ver	4.15
 Summary:	PLD Linux RPM macros
diff --git a/find-lang.sh b/find-lang.sh
index 5339946..db3877e 100755
--- a/find-lang.sh
+++ b/find-lang.sh
@@ -178,7 +178,7 @@ echo '%defattr(644,root,root,755)' > $MO_NAME
 if [ ! -f __find.files ] || [ "$TOP_DIR" -nt __find.files ]; then
 	find $TOP_DIR -xtype f -name '*.mo' | xargs -r file -L | \
 	sed -e '
-		/, 1 message/d
+		/, 1 message/ s/^/%exclude /
 		s/:.*//
 		s:'"$TOP_DIR"'::' > __find.files
 else
@@ -211,8 +211,8 @@ fi
 		cat __find.files
 	fi
 ) | sed '
-'"$ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/@]\+\)\(@quot\|@boldquot\)\?\(@[^/]*\)\?\(/.*\.mo$\):%lang(\2\4) \1\2\3\4\5:
-'"$NO_ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/@]\+\)\(@quot\|@boldquot\)\?\(@[^/]*\)\?\(/.*/'"$NAME"'\.mo$\):%lang(\2\4) \1\2\3\4\5:
+'"$ALL_NAME$MO"'s:^\([^% ]*/share/locale/\)\([^/@]\+\)\(@quot\|@boldquot\)\?\(@[^/]*\)\?\(/.*\.mo$\):%lang(\2\4) \1\2\3\4\5:
+'"$NO_ALL_NAME$MO"'s:^\([^% ]*/share/locale/\)\([^/@]\+\)\(@quot\|@boldquot\)\?\(@[^/]*\)\?\(/.*/'"$NAME"'\.mo$\):%lang(\2\4) \1\2\3\4\5:
 /^[^%]/d
 s:%lang(C) ::' >> $MO_NAME
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/8dfef0da949c4f9481dae5e57c7dd6228a3fdbc0



More information about the pld-cvs-commit mailing list