2022-06-27 12:53:49 +02:00
|
|
|
--- macros.in.orig 2021-09-23 19:54:19.515028659 +0000
|
|
|
|
+++ macros.in 2021-09-23 19:54:25.495016311 +0000
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -1150,6 +1150,7 @@ package or when debugging this package.\
|
2010-10-29 15:10:19 +02:00
|
|
|
# %files -f %{name}.lang
|
|
|
|
#
|
|
|
|
%find_lang %{_rpmconfigdir}/find-lang.sh %{buildroot}
|
|
|
|
+%no_lang_C --without-C
|
|
|
|
|
|
|
|
# Commands + opts to use for retrieving remote files
|
|
|
|
# Proxy opts can be set through --httpproxy/--httpport popt aliases,
|
2022-06-27 12:53:49 +02:00
|
|
|
--- scripts/find-lang.sh.orig 2021-09-23 19:54:19.507028675 +0000
|
|
|
|
+++ scripts/find-lang.sh 2021-09-23 19:54:25.495016311 +0000
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -75,6 +75,8 @@ MO=
|
2018-01-31 15:06:28 +01:00
|
|
|
MO_NAME=${NAMES[0]}.lang
|
2010-10-29 15:10:19 +02:00
|
|
|
ALL_NAME=#
|
|
|
|
NO_ALL_NAME=
|
|
|
|
+ONLY_C=#
|
|
|
|
+NO_C=#
|
|
|
|
while test $# -gt 0 ; do
|
|
|
|
case "${1}" in
|
2018-01-31 15:06:28 +01:00
|
|
|
--with-gnome )
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -118,6 +120,14 @@ while test $# -gt 0 ; do
|
2010-10-29 15:10:19 +02:00
|
|
|
NO_ALL_NAME=#
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
+ --with-only-C )
|
|
|
|
+ ONLY_C=
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+ --without-C )
|
|
|
|
+ NO_C=
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
* )
|
2018-01-31 15:06:28 +01:00
|
|
|
if [ $MO_NAME != ${NAMES[$#]}.lang ]; then
|
|
|
|
NAMES[${#NAMES[@]}]=$MO_NAME
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -158,6 +168,8 @@ s:'"$TOP_DIR"'::
|
2011-09-16 14:38:52 +02:00
|
|
|
'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
|
|
|
|
'"$NO_ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
|
2010-10-29 15:10:19 +02:00
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
2012-03-14 11:19:44 +01:00
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
2018-01-31 15:06:28 +01:00
|
|
|
/^$/d' >> $MO_NAME_NEW
|
2012-03-14 11:19:44 +01:00
|
|
|
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -166,19 +178,23 @@ s:'"$TOP_DIR"'::
|
2012-03-14 11:19:44 +01:00
|
|
|
'"$NO_ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/'"$NAME"'\)$:%lang(\2) %doc \1\2\3\4/:
|
|
|
|
'"$ALL_NAME$GNOME"'s:\(.*/share/help/\)\([^/_]\+\)\([^/]*\)\(/[a-zA-Z0-9.\_\-]\+\)$:%lang(\2) %doc \1\2\3\4/:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
2010-10-29 15:10:19 +02:00
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
find "$TOP_DIR" -type d|sed '
|
2010-10-29 15:10:19 +02:00
|
|
|
s:'"$TOP_DIR"'::
|
|
|
|
-'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'$\):%dir %doc \1:
|
|
|
|
+'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'$\):%lang(C) %dir %doc \1:
|
|
|
|
'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'/[a-zA-Z0-9.\_\-]/.\+\)::
|
|
|
|
'"$NO_ALL_NAME$GNOME"'s:\(.*/gnome/help/'"$NAME"'\/\)\([^/_]\+\):%lang(\2) %doc \1\2:
|
|
|
|
-'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+$\):%dir %doc \1:
|
|
|
|
+'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+$\):%lang(C) %dir %doc \1:
|
|
|
|
'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]/.\+\)::
|
|
|
|
'"$ALL_NAME$GNOME"'s:\(.*/gnome/help/[a-zA-Z0-9.\_\-]\+\/\)\([^/_]\+\):%lang(\2) %doc \1\2:
|
|
|
|
s:%lang(.*) .*/gnome/help/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+/.*::
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -194,6 +210,8 @@ s:'"$TOP_DIR"'::
|
2010-10-29 15:10:19 +02:00
|
|
|
'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'/'"$NAME"'-\([^/.]\+\)\.omf\):%lang(\2) \1:
|
|
|
|
'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+/[a-zA-Z0-9.\_\-]\+-\([^/.]\+\)\.omf\):%lang(\2) \1:
|
|
|
|
s:^[^%].*::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -234,6 +252,8 @@ s:'"$TOP_DIR"'::
|
2010-10-29 15:10:19 +02:00
|
|
|
'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
|
|
|
|
'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
fi
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -247,6 +267,8 @@ s:'"$TOP_DIR"'::
|
2010-10-29 15:10:19 +02:00
|
|
|
'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
|
|
|
|
'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
fi
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -284,6 +306,8 @@ s:'"$TOP_DIR"'::
|
|
|
|
'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\+[_@].*\)\.qm$\):%lang(\2) \1:
|
|
|
|
'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\+\)\.qm$\):%lang(\2) \1:
|
2010-10-29 15:10:19 +02:00
|
|
|
s:^[^%].*::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -292,6 +316,8 @@ s:'"$TOP_DIR"'::
|
2010-10-29 15:10:19 +02:00
|
|
|
'"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/\)::
|
|
|
|
'"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+$\):%lang(\2) \1*:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2021-09-24 10:49:04 +02:00
|
|
|
@@ -299,6 +325,8 @@ find "$TOP_DIR" -type f -o -type l|sed -
|
2010-10-29 15:10:19 +02:00
|
|
|
s:'"$TOP_DIR"'::
|
|
|
|
'"$NO_ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/'"$NAME"'\.[a-z0-9].*\):%lang(\2) \1*:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|