2011-07-19 15:04:21 +02:00
|
|
|
--- ./macros.in.orig 2011-07-18 17:18:24.000000000 +0000
|
|
|
|
+++ ./macros.in 2011-07-18 17:18:36.000000000 +0000
|
|
|
|
@@ -1249,6 +1249,7 @@ EOF
|
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,
|
2011-07-19 15:04:21 +02:00
|
|
|
--- ./scripts/find-lang.sh.orig 2011-07-18 17:18:24.000000000 +0000
|
|
|
|
+++ ./scripts/find-lang.sh 2011-07-18 17:18:36.000000000 +0000
|
2010-10-29 15:10:19 +02:00
|
|
|
@@ -62,6 +62,8 @@ MO=
|
|
|
|
MO_NAME=$NAME.lang
|
|
|
|
ALL_NAME=#
|
|
|
|
NO_ALL_NAME=
|
|
|
|
+ONLY_C=#
|
|
|
|
+NO_C=#
|
|
|
|
|
|
|
|
while test $# -gt 0 ; do
|
|
|
|
case "${1}" in
|
|
|
|
@@ -98,6 +100,14 @@ while test $# -gt 0 ; do
|
|
|
|
NO_ALL_NAME=#
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
+ --with-only-C )
|
|
|
|
+ ONLY_C=
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
+ --without-C )
|
|
|
|
+ NO_C=
|
|
|
|
+ shift
|
|
|
|
+ ;;
|
|
|
|
* )
|
|
|
|
MO_NAME=${1}
|
|
|
|
shift
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -117,27 +127,32 @@ s:'"$TOP_DIR"'::
|
|
|
|
'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) %doc \1\2\3:
|
|
|
|
'"$NO_ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) %doc \1\2\3:
|
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
|
|
|
|
|
|
|
|
find $TOP_DIR -type d|sed '
|
|
|
|
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
|
|
|
|
|
|
|
|
find $TOP_DIR -type d|sed '
|
|
|
|
s:'"$TOP_DIR"'::
|
|
|
|
-'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'$\):%dir \1:
|
|
|
|
-'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+$\):%dir \1:
|
|
|
|
+'"$NO_ALL_NAME$GNOME"'s:\(.*/omf/'"$NAME"'$\):%lang(C) %dir \1:
|
|
|
|
+'"$ALL_NAME$GNOME"'s:\(.*/omf/[a-zA-Z0-9.\_\-]\+$\):%lang(C) %dir \1:
|
|
|
|
s:^\([^%].*\)::
|
|
|
|
+s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
|
|
|
find $TOP_DIR -type f|sed '
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -145,6 +160,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
|
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -157,6 +174,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
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -170,6 +189,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
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -182,6 +203,8 @@ s:'"$TOP_DIR"'::
|
2011-07-19 15:04:21 +02:00
|
|
|
'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}[_@].*\)\.qm$\):%lang(\2) \1:
|
2010-10-29 15:10:19 +02:00
|
|
|
'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
|
|
|
|
s:^[^%].*::
|
|
|
|
+'"$ONLY_C"'/%lang(C)/!d
|
|
|
|
+'"$NO_C"'/%lang(C)/d
|
|
|
|
s:%lang(C) ::
|
|
|
|
/^$/d' >> $MO_NAME_NEW
|
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -190,6 +213,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
|
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -197,6 +222,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
|
|
|
|
|