[mythes-de] add the de_CH variant for Swiss people and people with ß allergy

Michael Stahl mstahl at fedoraproject.org
Fri Nov 25 14:00:24 UTC 2011


commit c6090105918b49a74a16d0350e4bdced45eab565
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Nov 25 15:00:17 2011 +0100

    add the de_CH variant for Swiss people and people with ß allergy

 .gitignore     |    1 +
 mythes-de.spec |   16 +++++++++++++---
 sources        |    1 +
 3 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0ae41b7..6d2071e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 thes_de_DE_v2.zip
 /Deutscher-Thesaurus.oxt
+/Schweizer-Thesaurus.oxt
diff --git a/mythes-de.spec b/mythes-de.spec
index cdecc36..0ba7c23 100644
--- a/mythes-de.spec
+++ b/mythes-de.spec
@@ -2,8 +2,9 @@ Name: mythes-de
 Summary: German thesaurus
 %define upstreamid 20111124
 Version: 0.%{upstreamid}
-Release: 1%{?dist}
-Source: http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt
+Release: 2%{?dist}
+Source0: http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt
+Source1: http://www.openthesaurus.de/export/Schweizer-Thesaurus.oxt
 Group: Applications/Text
 URL: http://www.openthesaurus.de
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -17,6 +18,10 @@ German thesaurus.
 
 %prep
 %setup -q -c
+rm -rf mythes-ch-%{upstreamid}
+mkdir mythes-ch-%{upstreamid}
+cd mythes-ch-%{upstreamid}
+unzip -q %{SOURCE1}
 
 %build
 for i in README.txt; do
@@ -34,9 +39,11 @@ done
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
 cp -p th_de_DE_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
+cp -p mythes-ch-%{upstreamid}/th_de_DE_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_de_CH_v2.idx
+cp -p mythes-ch-%{upstreamid}/th_de_DE_v2.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_de_CH_v2.dat
 
 pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
-de_DE_aliases="de_AT de_BE de_CH de_LI de_LU"
+de_DE_aliases="de_AT de_BE de_LI de_LU"
 for lang in $de_DE_aliases; do
         ln -s th_de_DE_v2.idx "th_"$lang"_v2.idx"
         ln -s th_de_DE_v2.dat "th_"$lang"_v2.dat"
@@ -52,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/mythes/*
 
 %changelog
+* Fri Nov 25 2011 Michael Stahl <mstahl at redhat.com> - 0.20111124-2
+- add the de_CH variant for Swiss people and people with ß allergy
+
 * Fri Nov 25 2011 Michael Stahl <mstahl at redhat.com> - 0.20111124-1
 - upgrade to latest version
 
diff --git a/sources b/sources
index b710a71..5e1b396 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 2080bfc94be5a447d22fe18398146d9c  Deutscher-Thesaurus.oxt
+9bcf22d15ae146fe0f8f7150ec096e89  Schweizer-Thesaurus.oxt


More information about the scm-commits mailing list