packages: myspell-dictionaries/myspell-dictionaries.spec - converted perl t...

amateja amateja at pld-linux.org
Fri Mar 12 15:28:53 CET 2010


Author: amateja                      Date: Fri Mar 12 14:28:53 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- converted perl to sed in scriptlets
- removed TODO

---- Files affected:
packages/myspell-dictionaries:
   myspell-dictionaries.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: packages/myspell-dictionaries/myspell-dictionaries.spec
diff -u packages/myspell-dictionaries/myspell-dictionaries.spec:1.26 packages/myspell-dictionaries/myspell-dictionaries.spec:1.27
--- packages/myspell-dictionaries/myspell-dictionaries.spec:1.26	Fri Mar 12 12:55:35 2010
+++ packages/myspell-dictionaries/myspell-dictionaries.spec	Fri Mar 12 15:28:47 2010
@@ -1,8 +1,4 @@
 # $Revision$, $Date$
-# TODO
-# - convert perl to sed in scriptlets
-# - add dictionaries currently obsoleted in -common
-#
 %define		_ver	1.0.3
 %define		_rel	1
 Summary:	MySpell Spelling and Hyphenation dictionaries
@@ -210,13 +206,7 @@
 Summary(pl.UTF-8):	Pliki wspólne dla słowników myspella i hunspella
 License:	Public Domain
 Group:		Applications/Text
-Obsoletes:	mozilla-thunderbird-dictionary-fr-FR
-Obsoletes:	mozilla-thunderbird-dictionary-he-IL
-Obsoletes:	mozilla-thunderbird-dictionary-ia
-Obsoletes:	mozilla-thunderbird-dictionary-la
-Obsoletes:	mozilla-thunderbird-dictionary-lv-LV
 Obsoletes:	mozilla-thunderbird-dictionary-ru-IE
-Obsoletes:	openoffice-dict-la
 
 %description -n myspell-common
 Common files for myspell and hunspell dictionaries.
@@ -1006,6 +996,7 @@
 Provides:	myspell-dictionary = %{version}
 Provides:	myspell-la = %{version}
 Obsoletes:	mozilla-thunderbird-dictionary-la
+Obsoletes:	openoffice-dict-la
 
 %description -n myspell-la_VA
 myspell-it_IT contains spell checking data in Latin (Vatican) to be
@@ -2279,7 +2270,7 @@
 
 %preun -n myspell-af_ZA
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*af\s*ZA\s*af_ZA$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*af.*ZA.*af_ZA$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-bg_BG
@@ -2290,7 +2281,7 @@
 
 %preun -n myspell-bg_BG
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*bg\s*BG\s*bg_BG$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*bg.*BG.*bg_BG$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ca_ES
@@ -2301,7 +2292,7 @@
 
 %preun -n myspell-ca_ES
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ca\s*ES\s*ca_ES$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ca.*ES.*ca_ES$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-cs_CZ
@@ -2312,7 +2303,7 @@
 
 %preun -n myspell-cs_CZ
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*cs\s*CZ\s*cs_CZ$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*cs.*CZ.*cs_CZ$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-cy_GB
@@ -2323,7 +2314,7 @@
 
 %preun -n myspell-cy_GB
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*cy\s*GB\s*cy_GB$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*cy.*GB.*cy_GB$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-da_DK
@@ -2334,7 +2325,7 @@
 
 %preun -n myspell-da_DK
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*da\s*DK\s*da_DK$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*da.*DK.*da_DK$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-de_AT
@@ -2345,7 +2336,7 @@
 
 %preun -n myspell-de_AT
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*de\s*AT\s*de_AT$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*de.*AT.*de_AT$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-el_GR
@@ -2356,7 +2347,7 @@
 
 %preun -n myspell-el_GR
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*el\s*GR\s*el_GR$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*el.*GR.*el_GR$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-en_US
@@ -2367,7 +2358,7 @@
 
 %preun -n myspell-en_US
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*en\s*US\s*en_US$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*en.*US.*en_US$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-en_NZ
@@ -2378,7 +2369,7 @@
 
 %preun -n myspell-en_NZ
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*en\s*NZ\s*en_NZ$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*en.*NZ.*en_NZ$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-es_MX
@@ -2395,9 +2386,9 @@
 
 %preun -n myspell-es_MX
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*es\s*MX\s*es_MX$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^DICT\s*es\s*AR\s*es_MX$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^DICT\s*es\s*CO\s*es_MX$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*es.*MX.*es_MX$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*es.*AR.*es_MX$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*es.*CO.*es_MX$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-et_EE
@@ -2408,7 +2399,7 @@
 
 %preun -n myspell-et_EE
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*et\s*EE\s*et_EE$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*et.*EE.*et_EE$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-fo_FO
@@ -2419,7 +2410,7 @@
 
 %preun -n myspell-fo_FO
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*fo\s*FO\s*fo_FO$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*fo.*FO.*fo_FO$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-fr_BE
@@ -2430,7 +2421,7 @@
 
 %preun -n myspell-fr_BE
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*fr\s*BE\s*fr_BE$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*fr.*BE.*fr_BE$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ga_IE
@@ -2441,7 +2432,7 @@
 
 %preun -n myspell-ga_IE
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ga\s*IE\s*ga_IE$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ga.*IE.*ga_IE$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-gl_ES
@@ -2452,7 +2443,7 @@
 
 %preun -n myspell-gl_ES
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*gl\s*ES\s*gl_ES$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*gl.*ES.*gl_ES$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-he_IL
@@ -2463,7 +2454,7 @@
 
 %preun -n myspell-he_IL
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*he\s*IL\s*he_IL$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*he.*IL.*he_IL$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hr_HR
@@ -2474,7 +2465,7 @@
 
 %preun -n myspell-hr_HR
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*hr\s*HR\s*hr_HR$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*hr.*HR.*hr_HR$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hu_HU
@@ -2485,7 +2476,7 @@
 
 %preun -n myspell-hu_HU
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*hu\s*HU\s*hu_HU$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*hu.*HU.*hu_HU$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ia_IA
@@ -2496,7 +2487,7 @@
 
 %preun -n myspell-ia_IA
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ia\s*IA\s*ia_IA$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ia.*IA.*ia_IA$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-id_ID
@@ -2507,7 +2498,7 @@
 
 %preun -n myspell-id_ID
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*id\s*ID\s*id_ID$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*id.*ID.*id_ID$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-it_IT
@@ -2518,7 +2509,7 @@
 
 %preun -n myspell-it_IT
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*it\s*IT\s*it_IT$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*it.*IT.*it_IT$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-la_VA
@@ -2529,7 +2520,7 @@
 
 %preun -n myspell-la_VA
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*la\s*VA\s*la_VA$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*la.*VA.*la_VA$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-lt_LT
@@ -2540,7 +2531,7 @@
 
 %preun -n myspell-lt_LT
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*lt\s*LT\s*lt_LT$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*lt.*LT.*lt_LT$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-mi_NZ
@@ -2551,7 +2542,7 @@
 
 %preun -n myspell-mi_NZ
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*mi\s*NZ\s*mi_NZ$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*mi.*NZ.*mi_NZ$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ms_MY
@@ -2562,7 +2553,7 @@
 
 %preun -n myspell-ms_MY
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ms\s*MY\s*ms_MY$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ms.*MY.*ms_MY$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-nb_NO
@@ -2573,7 +2564,7 @@
 
 %preun -n myspell-nb_NO
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*nb\s*NO\s*nb_NO$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*nb.*NO.*nb_NO$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-nl_NL
@@ -2584,7 +2575,7 @@
 
 %preun -n myspell-nl_NL
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*nl\s*NL\s*nl_NL$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*nl.*NL.*nl_NL$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-nn_NO
@@ -2595,7 +2586,7 @@
 
 %preun -n myspell-nn_NO
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*nn\s*NO\s*nn_NO$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*nn.*NO.*nn_NO$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-pl_PL
@@ -2606,7 +2597,7 @@
 
 %preun -n myspell-pl_PL
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*pl\s*PL\s*pl_PL$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*pl.*PL.*pl_PL$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-pt_BR
@@ -2617,7 +2608,7 @@
 
 %preun -n myspell-pt_BR
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*pt\s*BR\s*pt_BR$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*pt.*BR.*pt_BR$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ro_RO
@@ -2628,7 +2619,7 @@
 
 %preun -n myspell-ro_RO
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ro\s*RO\s*ro_RO$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ro.*RO.*ro_RO$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-ru_RU
@@ -2639,7 +2630,7 @@
 
 %preun -n myspell-ru_RU
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*ru\s*RU\s*ru_RU$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*ru.*RU.*ru_RU$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-sk_SK
@@ -2650,7 +2641,7 @@
 
 %preun -n myspell-sk_SK
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*sk\s*SK\s*sk_SK$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*sk.*SK.*sk_SK$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-sl_SI
@@ -2661,7 +2652,7 @@
 
 %preun -n myspell-sl_SI
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*sl\s*SI\s*sl_SI$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*sl.*SI.*sl_SI$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-sv_SE
@@ -2672,7 +2663,7 @@
 
 %preun -n myspell-sv_SE
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*sv\s*SE\s*sv_SE$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*sv.*SE.*sv_SE$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-sw_KE
@@ -2683,7 +2674,7 @@
 
 %preun -n myspell-sw_KE
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*sw\s*KE\s*sw_KE$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*sw.*KE.*sw_KE$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-uk_UA
@@ -2694,7 +2685,7 @@
 
 %preun -n myspell-uk_UA
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*uk\s*UA\s*uk_UA$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*uk.*UA.*uk_UA$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-zu_ZA
@@ -2705,7 +2696,7 @@
 
 %preun -n myspell-zu_ZA
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^DICT\s*zu\s*ZA\s*zu_ZA$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^DICT.*zu.*ZA.*zu_ZA$/d' %{dictdir}/dictionary.lst
 fi
 
 ##
@@ -2719,7 +2710,7 @@
 
 %preun -n myspell-hyph-bg
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*bg\s*BG\s*hyph_bg$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*bg.*BG.*hyph_bg$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-cs
@@ -2730,7 +2721,7 @@
 
 %preun -n myspell-hyph-cs
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*cs\s*CZ\s*hyph_cs$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*cs.*CZ.*hyph_cs$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-da
@@ -2741,7 +2732,7 @@
 
 %preun -n myspell-hyph-da
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*da\s*DA\s*hyph_da$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*da.*DA.*hyph_da$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-de
@@ -2764,11 +2755,11 @@
 
 %preun -n myspell-hyph-de
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*de\s*DE\s*hyph_de$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*de\s*AT\s*hyph_de$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*de\s*CH\s*hyph_de$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*de\s*LI\s*hyph_de$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*de\s*LU\s*hyph_de$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*de.*AT.*hyph_de$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*de.*CH.*hyph_de$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*de.*DE.*hyph_de$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*de.*LI.*hyph_de$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*de.*LU.*hyph_de$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-el
@@ -2779,7 +2770,7 @@
 
 %preun -n myspell-hyph-el
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*el\s*GR\s*hyph_el$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*el.*GR.*hyph_el$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-en
@@ -2799,6 +2790,9 @@
 if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*en[ \t]*AU[ \t]*hyph_en" %{dictdir}/dictionary.lst; then
 	echo "HYPH en AU hyph_en" >> %{dictdir}/dictionary.lst
 fi
+if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*en[ \t]*BZ[ \t]*hyph_en" %{dictdir}/dictionary.lst; then
+	echo "HYPH en BZ hyph_en" >> %{dictdir}/dictionary.lst
+fi
 if [ ! -f "%{dictdir}/dictionary.lst" ] || ! grep -q "^HYPH[ \t]*en[ \t]*ZA[ \t]*hyph_en" %{dictdir}/dictionary.lst; then
 	echo "HYPH en ZA hyph_en" >> %{dictdir}/dictionary.lst
 fi
@@ -2820,17 +2814,18 @@
 
 %preun -n myspell-hyph-en
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*en\s*US\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*CA\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*GB\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*NZ\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*AU\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*ZA\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*IE\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*JM\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*PH\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*TT\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*en\s*ZW\s*hyph_en$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*AU.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*BZ.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*CA.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*GB.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*IE.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*JM.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*NZ.*hyph_bg$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*PH.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*TT.*hyph_bg$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*US.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*ZA.*hyph_en$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*en.*ZW.*hyph_en$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-es
@@ -2901,27 +2896,27 @@
 
 %preun -n myspell-hyph-es
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*es\s*ES\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*AR\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*BZ\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*BO\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*CL\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*CO\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*CR\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*CU\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*DO\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*EC\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*SV\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*GU\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*JN\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*MX\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*NI\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*PA\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*PU\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*PE\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*PR\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*UY\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*es\s*VE\s*hyph_es$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*AR.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*BZ.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*BO.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*CL.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*CO.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*CR.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*CU.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*DO.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*EC.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*ES.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*GU.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*JN.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*MX.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*NI.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*PA.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*PU.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*PE.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*PR.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*SV.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*UY.*hyph_es$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*es.*VE.*hyph_es$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-et
@@ -2931,7 +2926,7 @@
 fi
 %preun -n myspell-hyph-et
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*et\s*EE\s*hyph_et$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*et.*EE.*hyph_et$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-fi
@@ -2942,7 +2937,7 @@
 
 %preun -n myspell-hyph-fi
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*fi\s*FI\s*hyph_fi$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fi.*FI.*hyph_fi$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-fr
@@ -2968,12 +2963,12 @@
 
 %preun -n myspell-hyph-fr
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*fr\s*FR\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*fr\s*BE\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*fr\s*CA\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*fr\s*LU\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*fr\s*MC\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
-	perl -ni -e "/^HYPH\s*fr\s*CH\s*hyph_fr$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*BE.*hyph_fr$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*CA.*hyph_fr$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*CH.*hyph_fr$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*FR.*hyph_fr$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*LU.*hyph_fr$/d' %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*fr.*MC.*hyph_fr$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-ga
@@ -2984,7 +2979,7 @@
 
 %preun -n myspell-hyph-ga
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*ga\s*IE\s*hyph_ga$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*ga.*IE.*hyph_ga$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-hu
@@ -2995,7 +2990,7 @@
 
 %preun -n myspell-hyph-hu
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*hu\s*HU\s*hyph_hu$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*hu.*HU.*hyph_hu$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-ia
@@ -3006,7 +3001,7 @@
 
 %preun -n myspell-hyph-ia
 if [ "$1" = "0" ]; then
-	perl -ni -e "/^HYPH\s*ia\s*IA\s*hyph_ia$/ or print" %{dictdir}/dictionary.lst
+	%{__sed} -i -e '/^HYPH.*ia.*IA.*hyph_ia$/d' %{dictdir}/dictionary.lst
 fi
 
 %post -n myspell-hyph-id
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/myspell-dictionaries/myspell-dictionaries.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list