SPECS: koffice-l10n.spec - Obsoletetes for languages that are empt...
glen
glen at pld-linux.org
Mon Nov 6 00:33:29 CET 2006
Author: glen Date: Sun Nov 5 23:33:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Obsoletetes for languages that are empty or already didn't exist (Afrikaans
Breton Esperanto Farsi Hebrew Lao Maltese Northern_Sami Spanish Thai
Upper_Sorbian Xhosa Zulu)
- add more error checking
---- Files affected:
SPECS:
koffice-l10n.spec (1.29 -> 1.30)
---- Diffs:
================================================================
Index: SPECS/koffice-l10n.spec
diff -u SPECS/koffice-l10n.spec:1.29 SPECS/koffice-l10n.spec:1.30
--- SPECS/koffice-l10n.spec:1.29 Mon Nov 6 00:01:06 2006
+++ SPECS/koffice-l10n.spec Mon Nov 6 00:33:23 2006
@@ -114,10 +114,23 @@
Obsoletes: koffice-kugar-i18n
Obsoletes: koffice-kword-i18n
# Languages that didn't make it or are dropped
+Obsoletes: koffice-l10n-Afrikaans
+Obsoletes: koffice-l10n-Breton
Obsoletes: koffice-l10n-Bulgarian
+Obsoletes: koffice-l10n-Esperanto
+Obsoletes: koffice-l10n-Farsi
+Obsoletes: koffice-l10n-Hebrew
+Obsoletes: koffice-l10n-Lao
+Obsoletes: koffice-l10n-Maltese
+Obsoletes: koffice-l10n-Northern_Sami
Obsoletes: koffice-l10n-Norwegian_Nynorsk
+Obsoletes: koffice-l10n-Spanish
Obsoletes: koffice-l10n-Tajik
Obsoletes: koffice-l10n-Tamil
+Obsoletes: koffice-l10n-Thai
+Obsoletes: koffice-l10n-Upper_Sorbian
+Obsoletes: koffice-l10n-Xhosa
+Obsoletes: koffice-l10n-Zulu
%description base
Empty metapackage to handle obsoletes for individual i18n subpackages.
@@ -1089,12 +1102,13 @@
fi
# share/apps/koffice/autocorrect/*.xml
- if [ -f "$RPM_BUILD_ROOT%{_datadir}/apps/koffice/autocorrect/$lan.xml" ]; then
+ if [ -f "$RPM_BUILD_ROOT%{_datadir}/apps/koffice/autocorrect/$lang.xml" ]; then
echo "%lang($lang) %{_datadir}/apps/koffice/autocorrect/$lang.xml" >> "$language.lang"
fi
if [ ! -s $language.lang ]; then
echo >&2 "Missing launguage: $language ($lang)"
+ exit 1
fi
}
@@ -1111,15 +1125,15 @@
"
for i in $ziew; do
- rm -rf `find $RPM_BUILD_ROOT -name ${i}\*\.mo`
- rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/${i}
+ rm -rf $(find $RPM_BUILD_ROOT -name "$i*.mo")
+ rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/$i
done
-FindLang af Afrikaans
+#FindLang af Afrikaans
#FindLang ar Arabic
#FindLang az Azerbaijani
#FindLang bg Bulgarian
-FindLang br Breton
+#FindLang br Breton
#FindLang bs Bosnian
FindLang ca Catalan
FindLang cs Czech
@@ -1129,17 +1143,17 @@
FindLang el Greek
#FindLang en English
FindLang en_GB English_UK
-FindLang eo Esperanto
-FindLang es Spanish
+#FindLang eo Esperanto
+#FindLang es Spanish
FindLang et Estonian
FindLang eu Basque
-FindLang fa Farsi
+#FindLang fa Farsi
FindLang fi Finnish
FindLang fr French
#FindLang ga Irish
#FindLang gl Galician
-FindLang he Hebrew
-FindLang hsb Upper_Sorbian
+#FindLang he Hebrew
+#FindLang hsb Upper_Sorbian
#FindLang hi Hindi
#FindLang hr Croatian
FindLang hu Hungarian
@@ -1149,13 +1163,13 @@
FindLang ja Japanese
#FindLang ko Korean
#FindLang lt Lithuanian
-FindLang lo Lao
+#FindLang lo Lao
FindLang lv Latvian
#FindLang mi Maori
#FindLang mk Macedonian
#FindLang mn Mongolian
FindLang ms Malay
-FindLang mt Maltese
+#FindLang mt Maltese
FindLang nb Norwegian_Bokmaal
FindLang nl Dutch
#FindLang nn Norwegian_Nynorsk
@@ -1167,7 +1181,7 @@
#FindLang ro Romanian
FindLang ru Russian
#FindLang ss Swati
-FindLang se Northern_Sami
+#FindLang se Northern_Sami
FindLang sk Slovak
FindLang sl Slovenian
FindLang sr Serbian
@@ -1176,17 +1190,24 @@
FindLang sv Swedish
#FindLang ta Tamil
#FindLang tg Tajik
-FindLang th Thai
+#FindLang th Thai
FindLang tr Turkish
#FindLang uk Ukrainian
#FindLang uz Uzbek
-FindLang ve Venda
+#FindLang ve Venda
#FindLang vi Vietnamese
#FindLang wa Walloon
-FindLang xh Xhosa
+#FindLang xh Xhosa
FindLang zh_CN Simplified_Chinese
FindLang zh_TW Chinese
-FindLang zu Zulu
+#FindLang zu Zulu
+
+dirs=$(echo %{name}-*-%{version} | wc -w)
+langs=$(echo *.lang | wc -w)
+if [ $dirs ! = $langs ]; then
+ echo >&2 "Not all languages processed!"
+ exit 1
+fi
%clean
rm -rf $RPM_BUILD_ROOT
@@ -1194,17 +1215,17 @@
%files base
%defattr(644,root,root,755)
-%files -f Afrikaans.lang Afrikaans
-%defattr(644,root,root,755)
+#%files -f Afrikaans.lang Afrikaans
+#%defattr(644,root,root,755)
#%%files -f Arabic.lang Arabic
##%files -f Azerbaijani.lang Azerbaijani
-%files -f Bulgarian.lang Bulgarian
-%defattr(644,root,root,755)
+#%files -f Bulgarian.lang Bulgarian
+#%defattr(644,root,root,755)
-%files -f Breton.lang Breton
-%defattr(644,root,root,755)
+#%files -f Breton.lang Breton
+#%defattr(644,root,root,755)
##%files -f Bosnian.lang Bosnian
@@ -1231,11 +1252,11 @@
%files -f English_UK.lang English_UK
%defattr(644,root,root,755)
-%files -f Esperanto.lang Esperanto
-%defattr(644,root,root,755)
+#%files -f Esperanto.lang Esperanto
+#%defattr(644,root,root,755)
-%files -f Spanish.lang Spanish
-%defattr(644,root,root,755)
+#%files -f Spanish.lang Spanish
+#%defattr(644,root,root,755)
%files -f Estonian.lang Estonian
%defattr(644,root,root,755)
@@ -1243,8 +1264,8 @@
%files -f Basque.lang Basque
%defattr(644,root,root,755)
-%files -f Farsi.lang Farsi
-%defattr(644,root,root,755)
+#%files -f Farsi.lang Farsi
+#%defattr(644,root,root,755)
%files -f Finnish.lang Finnish
%defattr(644,root,root,755)
@@ -1256,11 +1277,11 @@
##%files -f Galician.lang Galician
##%files -f Hindi.lang Hindi
-%files -f Hebrew.lang Hebrew
-%defattr(644,root,root,755)
+#%files -f Hebrew.lang Hebrew
+#%defattr(644,root,root,755)
-%files -f Upper_Sorbian.lang Upper_Sorbian
-%defattr(644,root,root,755)
+#%files -f Upper_Sorbian.lang Upper_Sorbian
+#%defattr(644,root,root,755)
#%%files -f Croatian.lang Croatian
@@ -1278,16 +1299,16 @@
##%files -f Korean.lang Korean
-%files -f Lao.lang Lao
-%defattr(644,root,root,755)
+#%files -f Lao.lang Lao
+#%defattr(644,root,root,755)
#%%files -f Lithuanian.lang Lithuanian
%files -f Latvian.lang Latvian
%defattr(644,root,root,755)
-%files -f Maltese.lang Maltese
-%defattr(644,root,root,755)
+#%files -f Maltese.lang Maltese
+#%defattr(644,root,root,755)
%files -f Malay.lang Malay
%defattr(644,root,root,755)
@@ -1302,8 +1323,8 @@
%files -f Norwegian_Bokmaal.lang Norwegian_Bokmaal
%defattr(644,root,root,755)
-%files -f Norwegian_Nynorsk.lang Norwegian_Nynorsk
-%defattr(644,root,root,755)
+#%files -f Norwegian_Nynorsk.lang Norwegian_Nynorsk
+#%defattr(644,root,root,755)
#%%files -f Northern_Sotho.lang Northern_Sotho
# %files -f Gascon_occitan.lang Gascon_occitan
@@ -1322,8 +1343,8 @@
%files -f Russian.lang Russian
%defattr(644,root,root,755)
-%files -f Northern_Sami.lang Northern_Sami
-%defattr(644,root,root,755)
+#%files -f Northern_Sami.lang Northern_Sami
+#%defattr(644,root,root,755)
#%%files -f Swati.lang Swati
@@ -1339,14 +1360,14 @@
%files -f Swedish.lang Swedish
%defattr(644,root,root,755)
-%files -f Tamil.lang Tamil
-%defattr(644,root,root,755)
+#%files -f Tamil.lang Tamil
+#%defattr(644,root,root,755)
-%files -f Tajik.lang Tajik
-%defattr(644,root,root,755)
+#%files -f Tajik.lang Tajik
+#%defattr(644,root,root,755)
-%files -f Thai.lang Thai
-%defattr(644,root,root,755)
+#%files -f Thai.lang Thai
+#%defattr(644,root,root,755)
%files -f Turkish.lang Turkish
%defattr(644,root,root,755)
@@ -1354,14 +1375,14 @@
##%files -f Ukrainian.lang Ukrainian
##%files -f Uzbek.lang Uzbek
-%files -f Venda.lang Venda
-%defattr(644,root,root,755)
+#%files -f Venda.lang Venda
+#%defattr(644,root,root,755)
#%%files -f Vietnamese.lang Vietnamese
# %files -f Walloon.lang Walloon
-%files -f Xhosa.lang Xhosa
-%defattr(644,root,root,755)
+#%files -f Xhosa.lang Xhosa
+#%defattr(644,root,root,755)
%files -f Simplified_Chinese.lang Simplified_Chinese
%defattr(644,root,root,755)
@@ -1369,8 +1390,8 @@
%files -f Chinese.lang Chinese
%defattr(644,root,root,755)
-%files -f Zulu.lang Zulu
-%defattr(644,root,root,755)
+#%files -f Zulu.lang Zulu
+#%defattr(644,root,root,755)
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -1378,6 +1399,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+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
+ Upper_Sorbian Xhosa Zulu)
+- add more error checking
+
Revision 1.29 2006/11/05 23:01:06 glen
- es is broken
- cleanups
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/koffice-l10n.spec?r1=1.29&r2=1.30&f=u
More information about the pld-cvs-commit
mailing list