SPECS: koffice-l10n.spec - check that all languages have files sec...
glen
glen at pld-linux.org
Mon Nov 6 00:44:11 CET 2006
Author: glen Date: Sun Nov 5 23:44:10 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- check that all languages have files section
---- Files affected:
SPECS:
koffice-l10n.spec (1.30 -> 1.31)
---- Diffs:
================================================================
Index: SPECS/koffice-l10n.spec
diff -u SPECS/koffice-l10n.spec:1.30 SPECS/koffice-l10n.spec:1.31
--- SPECS/koffice-l10n.spec:1.30 Mon Nov 6 00:33:23 2006
+++ SPECS/koffice-l10n.spec Mon Nov 6 00:44:04 2006
@@ -1204,11 +1204,28 @@
dirs=$(echo %{name}-*-%{version} | wc -w)
langs=$(echo *.lang | wc -w)
-if [ $dirs ! = $langs ]; then
+if [ $dirs != $langs ]; then
echo >&2 "Not all languages processed!"
exit 1
fi
+%check
+check_installed_files() {
+ for a in *.lang; do
+ lang=${a%%.lang}
+
+ # included in Serbian.lang
+ [ $lang = Serbian_Latin ] && continue
+
+ rpmfile=%{_rpmdir}/%{name}-$lang-%{version}-%{release}.%{_target_cpu}.rpm
+ if [ ! -f $rpmfile ]; then
+ echo >&2 "Missing %%files section for $lang"
+ exit 1
+ fi
+ done
+}
+check_installed_files
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -1399,6 +1416,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.31 2006/11/05 23:44:04 glen
+- check that all languages have files section
+
Revision 1.30 2006/11/05 23:33:23 glen
- Obsoletetes for languages that are empty or already didn't exist (Afrikaans
Breton Esperanto Farsi Hebrew Lao Maltese Northern_Sami Spanish Thai
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/koffice-l10n.spec?r1=1.30&r2=1.31&f=u
More information about the pld-cvs-commit
mailing list