Hello community,

here is the log from the commit of package libreoffice-hyphen for openSUSE:11.3
checked in at Thu Mar 31 01:33:31 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 11.3/libreoffice-hyphen/libreoffice-hyphen.changes  2011-03-18 
22:34:15.000000000 +0100
@@ -0,0 +1,61 @@
+-------------------------------------------------------------------
+Fri Mar 18 22:12:32 CET 2011 - [email protected]
+
+- maintenance update (bnc#667421, MaintenanceTracker-38738)
+
+-------------------------------------------------------------------
+Thu Feb  3 13:03:35 CET 2011 - [email protected]
+
+- renamed from OpenOffice_org-hypen to libreoffice-hyphen
+- added provides locale(libreoffice:<lang>) to make it installed
+  with libreoffice (bnc#668145)
+- installed files into /usr/share/hyphen to be compatible with other
+  Linux distributions; added compat symlinks into the older location
+  /usr/share/ooo/hyphen
+- bumped version to make sure that it is considered as a replacement
+  of the older package
+
+-------------------------------------------------------------------
+Fri Apr  9 19:30:28 CEST 2010 - [email protected]
+
+- updated: bg_BG, cs_CZ, de_CH, de_DE, et_EE, fr_FR, ga_IE, id_ID, is_IS, 
it_IT,
+    lv_LV, pl_PL, pt_BR, pt_PT, ro_RO, ru_RU, sk_SK, sl_SI
+- added: af_ZA, bn_BD, be_BY, ca_ES, de_AT, es_VE, gu_IN, hi_IN, ku_TR, ml_IN,
+    mr_IN
+- added dos2unix to BuildRequires; fixed documentation
+- added fdupes to BuildRequires; called to link duplicities
+
+-------------------------------------------------------------------
+Fri Apr  9 15:38:02 CEST 2010 - [email protected]
+
+- more automatized packaging:
+    * added unzip to BuildRequires
+    * added support to repack dictionaries from different type of sources,
+      including OOo extensions
+    * added heuristics to install the documentation
+    * generated spec file using a script
+    * list all licenses for the main package
+
+-------------------------------------------------------------------
+Thu Nov 13 14:53:39 CET 2008 - [email protected]
+
+- drop obsolete trigger and postun scripts
+  ooinstdict does not exist any more 
+
+-------------------------------------------------------------------
+Mon Sep 29 18:29:53 CEST 2008 - [email protected]
+
+- updated: French, Norwegian Bokmaal, Norwegian Nynorsk
+
+-------------------------------------------------------------------
+Mon Apr 14 10:41:37 CEST 2008 - [email protected]
+
+- updated bg_BG, hu_HU, it_IT
+
+-------------------------------------------------------------------
+Thu Jul 19 16:29:08 CEST 2007 - [email protected]
+
+- split from the OpenOffice_org package
+- source package version 20070719
+- updated: German, Swiss, Hungarian, Polish
+- added: Slovenian

calling whatdependson for 11.3-i586


New:
----
  Dizionari.IT_20081129.oxt
  Vero_pt_BR_V207AOC.oxt
  dict-af.oxt
  dict-be-classic.oxt
  dict-cs-2.0.oxt
  dict-de_AT-frami_2010-03-07.oxt
  dict-de_CH-frami_2010-03-07.oxt
  dict-de_DE-frami_2010-03-07.oxt
  dict-es_VE.oxt
  dict-et.oxt
  dict-ro.1.1.oxt
  dict-sk.oxt
  dict_lv_LV-0.8.2.oxt
  dict_ru_RU-0.3.4.oxt
  dictionaries-bg.oxt
  focloiri-gaeilge-4.4.oxt
  hyph-ca.oxt
  hyph_bn_1.2.oxt
  hyph_da_DK.tar.bz2
  hyph_el_GR.tar.bz2
  hyph_en_CA.tar.bz2
  hyph_en_GB.tar.bz2
  hyph_en_US.tar.bz2
  hyph_es_ES.tar.bz2
  hyph_fi_FI.tar.bz2
  hyph_fr_BE.tar.bz2
  hyph_gu_1.1.oxt
  hyph_hi_1.2.oxt
  hyph_hr_HR.tar.bz2
  hyph_hu_HU.tar.bz2
  hyph_is-1.0.oxt
  hyph_lt_LT.tar.bz2
  hyph_ml_1.3.oxt
  hyph_mr_1.2.oxt
  hyph_nb_NO.tar.bz2
  hyph_nl_NL.tar.bz2
  hyph_nn_NO.tar.bz2
  hyph_sv_SE.tar.bz2
  hyph_uk_UA.tar.bz2
  id.oxt
  kitandin.oxt
  libreoffice-hyphen-gen-spec
  libreoffice-hyphen.changes
  libreoffice-hyphen.data
  libreoffice-hyphen.spec
  libreoffice-hyphen.spec.in
  oo3x-pt-PT.oxt
  ooo-dictionnaire-fr-reforme1990-v3.5.oxt
  pack-sl.oxt
  pl-dict.oxt

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libreoffice-hyphen.spec ++++++
#
# spec file for package libreoffice-hyphen
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libreoffice-hyphen
###################################################################
## DO NOT EDIT THIS SPEC FILE
## Generated by:
## perl libreoffice-hyphen-gen-spec libreoffice-hyphen.spec.in 
libreoffice-hyphen.data
###################################################################
BuildRequires:  dos2unix recode unzip
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        Freeware, GPLv2, GPLv2+, GPLv3, GPLv3+, LGPLv2.1, LGPLv2.1+, 
LGPLv3, LGPLv3+, LPPL
Group:          Productivity/Office/Dictionary
Version:        20110203.1
Release:        0.<RELEASE2>
AutoReqProv:    on
Summary:        Hyphen Dictionaries for LibreOffice
Provides:       locale(libreoffice:af) locale(OpenOffice_org:af)
Provides:       locale(libreoffice:be_UA) locale(OpenOffice_org:be_UA)
Provides:       locale(libreoffice:bg) locale(OpenOffice_org:bg)
Provides:       locale(libreoffice:bn_BD) locale(OpenOffice_org:bn_BD)
Provides:       locale(libreoffice:ca) locale(OpenOffice_org:ca)
Provides:       locale(libreoffice:cs) locale(OpenOffice_org:cs)
Provides:       locale(libreoffice:da) locale(OpenOffice_org:da)
Provides:       locale(libreoffice:de_AT) locale(OpenOffice_org:de_AT)
Provides:       locale(libreoffice:de_CH) locale(OpenOffice_org:de_CH)
Provides:       locale(libreoffice:de_DE) locale(OpenOffice_org:de_DE)
Provides:       locale(libreoffice:el) locale(OpenOffice_org:el)
Provides:       locale(libreoffice:en_US) locale(OpenOffice_org:en_US)
Provides:       locale(libreoffice:en_GB) locale(OpenOffice_org:en_GB)
Provides:       locale(libreoffice:en_CA) locale(OpenOffice_org:en_CA)
Provides:       locale(libreoffice:es) locale(OpenOffice_org:es)
Provides:       locale(libreoffice:es) locale(OpenOffice_org:es)
Provides:       locale(libreoffice:et) locale(OpenOffice_org:et)
Provides:       locale(libreoffice:fi) locale(OpenOffice_org:fi)
Provides:       locale(libreoffice:fr_BE) locale(OpenOffice_org:fr_BE)
Provides:       locale(libreoffice:fr_FR) locale(OpenOffice_org:fr_FR)
Provides:       locale(libreoffice:ga) locale(OpenOffice_org:ga)
Provides:       locale(libreoffice:gu) locale(OpenOffice_org:gu)
Provides:       locale(libreoffice:hi) locale(OpenOffice_org:hi)
Provides:       locale(libreoffice:hr) locale(OpenOffice_org:hr)
Provides:       locale(libreoffice:hu) locale(OpenOffice_org:hu)
Provides:       locale(libreoffice:id) locale(OpenOffice_org:id)
Provides:       locale(libreoffice:is) locale(OpenOffice_org:is)
Provides:       locale(libreoffice:it) locale(OpenOffice_org:it)
Provides:       locale(libreoffice:ku) locale(OpenOffice_org:ku)
Provides:       locale(libreoffice:lt) locale(OpenOffice_org:lt)
Provides:       locale(libreoffice:lv) locale(OpenOffice_org:lv)
Provides:       locale(libreoffice:ml_IN) locale(OpenOffice_org:ml_IN)
Provides:       locale(libreoffice:mr) locale(OpenOffice_org:mr)
Provides:       locale(libreoffice:nb) locale(OpenOffice_org:nb)
Provides:       locale(libreoffice:nl) locale(OpenOffice_org:nl)
Provides:       locale(libreoffice:nn) locale(OpenOffice_org:nn)
Provides:       locale(libreoffice:pl) locale(OpenOffice_org:pl)
Provides:       locale(libreoffice:pt_PT) locale(OpenOffice_org:pt_PT)
Provides:       locale(libreoffice:pt_BR) locale(OpenOffice_org:pt_BR)
Provides:       locale(libreoffice:ro) locale(OpenOffice_org:ro)
Provides:       locale(libreoffice:ru) locale(OpenOffice_org:ru)
Provides:       locale(libreoffice:sk) locale(OpenOffice_org:sk)
Provides:       locale(libreoffice:sl) locale(OpenOffice_org:sl)
Provides:       locale(libreoffice:sv) locale(OpenOffice_org:sv)
Provides:       locale(libreoffice:uk) locale(OpenOffice_org:uk)
#compat stuff
Provides:       OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/hyph_en_US.dic
Provides:       OpenOffice_org-hyphen = %version
Obsoletes:      OpenOffice_org-hyphen <= %version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Source0:        libreoffice-hyphen-gen-spec
Source1:        libreoffice-hyphen.spec.in
Source2:        libreoffice-hyphen.data
Source1000:     dict-af.oxt
Source1001:     dict-be-classic.oxt
Source1002:     dictionaries-bg.oxt
Source1003:     hyph_bn_1.2.oxt
Source1004:     hyph-ca.oxt
Source1005:     dict-cs-2.0.oxt
Source1006:     hyph_da_DK.tar.bz2
Source1007:     dict-de_AT-frami_2010-03-07.oxt
Source1008:     dict-de_CH-frami_2010-03-07.oxt
Source1009:     dict-de_DE-frami_2010-03-07.oxt
Source1010:     hyph_el_GR.tar.bz2
Source1011:     hyph_en_US.tar.bz2
Source1012:     hyph_en_GB.tar.bz2
Source1013:     hyph_en_CA.tar.bz2
Source1014:     dict-es_VE.oxt
Source1015:     hyph_es_ES.tar.bz2
Source1016:     dict-et.oxt
Source1017:     hyph_fi_FI.tar.bz2
Source1018:     hyph_fr_BE.tar.bz2
Source1019:     ooo-dictionnaire-fr-reforme1990-v3.5.oxt
Source1020:     focloiri-gaeilge-4.4.oxt
Source1021:     hyph_gu_1.1.oxt
Source1022:     hyph_hi_1.2.oxt
Source1023:     hyph_hr_HR.tar.bz2
Source1024:     hyph_hu_HU.tar.bz2
Source1025:     id.oxt
Source1026:     hyph_is-1.0.oxt
Source1027:     Dizionari.IT_20081129.oxt
Source1028:     kitandin.oxt
Source1029:     hyph_lt_LT.tar.bz2
Source1030:     dict_lv_LV-0.8.2.oxt
Source1031:     hyph_ml_1.3.oxt
Source1032:     hyph_mr_1.2.oxt
Source1033:     hyph_nb_NO.tar.bz2
Source1034:     hyph_nl_NL.tar.bz2
Source1035:     hyph_nn_NO.tar.bz2
Source1036:     pl-dict.oxt
Source1037:     oo3x-pt-PT.oxt
Source1038:     Vero_pt_BR_V207AOC.oxt
Source1039:     dict-ro.1.1.oxt
Source1040:     dict_ru_RU-0.3.4.oxt
Source1041:     dict-sk.oxt
Source1042:     pack-sl.oxt
Source1043:     hyph_sv_SE.tar.bz2
Source1044:     hyph_uk_UA.tar.bz2

%description
These dictionaries help you to hyphenate texts and words in the
LibreOffice office suite.



%prep
%setup -T -c
# unpack sources
for archive in \
    %{S:1000} \
    %{S:1001} \
    %{S:1002} \
    %{S:1003} \
    %{S:1004} \
    %{S:1005} \
    %{S:1006} \
    %{S:1007} \
    %{S:1008} \
    %{S:1009} \
    %{S:1010} \
    %{S:1011} \
    %{S:1012} \
    %{S:1013} \
    %{S:1014} \
    %{S:1015} \
    %{S:1016} \
    %{S:1017} \
    %{S:1018} \
    %{S:1019} \
    %{S:1020} \
    %{S:1021} \
    %{S:1022} \
    %{S:1023} \
    %{S:1024} \
    %{S:1025} \
    %{S:1026} \
    %{S:1027} \
    %{S:1028} \
    %{S:1029} \
    %{S:1030} \
    %{S:1031} \
    %{S:1032} \
    %{S:1033} \
    %{S:1034} \
    %{S:1035} \
    %{S:1036} \
    %{S:1037} \
    %{S:1038} \
    %{S:1039} \
    %{S:1040} \
    %{S:1041} \
    %{S:1042} \
    %{S:1043} \
    %{S:1044} \
    ; do
        archive_name=`basename $archive | sed -e "s|.zip$||" -e "s|.oxt$||" -e 
"s|.tar.gz$||" -e "s|.tar.bz2$||"`
        mkdir $archive_name || exit 1;
        case $archive in
            *.zip|*.oxt)
                cd $archive_name; unzip $archive || exit 1; cd -
                ;;
            *.tar.gz)
                tar -xzf $archive -C $archive_name || exit 1;
                ;;
            *.tar.bz2)
                tar -xjf $archive -C $archive_name || exit 1;
                ;;
            *)
                echo "Error: Do not know how to uncompress $archive"
                exit 1;
                ;;
        esac
done
#
# fix file names
cp hyph_bn_1.2/hyph_bn_IN.dic hyph_bn_1.2/hyph_bn_BD.dic
mv hyph-ca/hyph_ca_ANY.dic hyph-ca/hyph_ca_ES.dic
mv ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/hyph_fr.dic 
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/hyph_fr_FR.dic
mv id/hyph_id.dic id/hyph_id_ID.dic
mv hyph_is-1.0/hyph_is.dic hyph_is-1.0/hyph_is_IS.dic
mv kitandin/hyph_ku.dic kitandin/hyph_ku_TR.dic
#
#
# fix permissions
find . -type f -exec chmod 644 {} \;

%build

%install
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/hyphen
install -m 755 -d $RPM_BUILD_ROOT%{_docdir}/%{name}
# compat stuff
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/ooo/hyphen
# init file list
filelist=files.list
echo "%%defattr(-,root,root)" >$filelist
echo "%%dir %{_docdir}/libreoffice-hyphen" >>$filelist
echo "%%dir %{_datadir}/hyphen" >>$filelist
# compat stuff
echo "%%dir %{_datadir}/ooo" >>$filelist
echo "%%dir %{_datadir}/ooo/hyphen" >>$filelist
# process all directories
for lang_dir in * ; do
    test -d $lang_dir || continue
    # install dictionaries
    dic=
    # support locales with 2 and 3 letters in the language code: hyph_ll_CC.dic 
and hyph_lll_CC.dic
    for dic in `find $lang_dir -regextype posix-extended -regex 
".*/hyph_[[:lower:]][[:lower:]][[:lower:]]?_[[:upper:]][[:upper:]].dic" | sort` 
; do
        fname=$(basename $dic)
        if test -f $RPM_BUILD_ROOT%{_datadir}/hyphen/$fname ; then
            echo "Error: file already installed: $f"
            echo "       Probably is provided by two source tarballs"
            exit 1;
        fi
        install -m 644 $dic $RPM_BUILD_ROOT%{_datadir}/hyphen/
        echo %{_datadir}/hyphen/$fname >>$filelist
        # compat stuff
        ln -sf ../../hyphen/$fname $RPM_BUILD_ROOT%{_datadir}/ooo/hyphen/
        echo %{_datadir}/ooo/hyphen/$fname >>$filelist
    done

    # detect locale, lang and country
    if test -n "$dic" ; then
    # replace the underscore with a dot to be able to separate the language and 
the coutry code with the command "cut"
        dic_pname=`basename $dic | sed "s|_|.|g"`
        lang=`echo $dic_pname | cut -d "." -f2`
        country=`echo $dic_pname | cut -d "." -f3`
    else
        echo "Error: No dictionary found in $lang_dir"
        exit 1;
    fi
    locale="${lang}_${country}"

    # detect README encoding
    case "$locale" in 
        "ku_TR") coding="ISO-8859-9" ;;
        *) coding=`LC_CTYPE="$locale" locale -k LC_CTYPE | grep charmap | sed 
"s|charmap=\"\(.*\)\"\$|\1|"` ;;
    esac

    # install documentation
    docdir=%{_docdir}/libreoffice-hyphen/hyph_$locale
    mkdir -p $RPM_BUILD_ROOT$docdir
    echo "%%doc $docdir" >>$filelist
    for doc in `find $lang_dir -type f -printf "%%P\n" | \
                grep -v -e ".aff$" -e ".dic$" -e ".dat$" -e ".idx$" \
                        -e ".orig$" -e ".old$" -e "~$" \
                        -e ".sh$" -e "makefile" -e "META-INF"` ; do
        if ! test -f $lang_dir/$doc ; then
            echo "Error: is not a file: $lang_dir/$doc"
            exit 1;
        fi
        recode utf8..utf16 <$lang_dir/$doc >/dev/null 2>&1 || recode 
$coding..utf8 $lang_dir/$doc
        dos2unix $lang_dir/$doc
        dname=$(dirname $doc)
        install -m 755 -d $RPM_BUILD_ROOT$docdir/$dname
        install -m 644 $lang_dir/$doc $RPM_BUILD_ROOT$docdir/$dname
    done
done
# link duplicated files
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f files.list

%changelog
++++++ libreoffice-hyphen-gen-spec ++++++
++++ 630 lines (skipped)

++++++ libreoffice-hyphen.data ++++++
# file format:
#
# comments are separated by #
#
# supported tags

# Language:     language name, e.g Catalan, German, Norwegian Bokmaal
# pack_suffix:  package name is normaly defined by the language name (lowercase,
#               underscore instread of space); you might define a non-standard 
one
#               using this tag, e.g norsk-bokmaal for Norwegian Bokmaal
# Locale:       locale supported by the dictionary, e.g ca_ES
# Prov_lang:    most dictionaries provides the language defined by the locale;
#               you might force the full locale using this tag; just mention
#               the full locale here again, e.g. de_DE vs de_AT
# Version:      package version, e.g. 2.1.5
# Source:               source file name, e.g. catalan.oxt
# License:      comma separated list of dictionary licenses, e.g. GPLv2, 
LGPLv2.1
# Types:        comma separated list of included dictionary types; possible 
values are:
#               myspell, hunspell, hyphen, thesaurus
# URL:          url where the dictionary sources was taken from, e.g.
#               http://extensions.services.openoffice.org/project/dict-catalan
# Encoding:     documentation files in non-UTF-8 enconding should be recoded; 
the original
#               encoding is guessed from the locale; you might define another 
encoding
#               here, e.g. ISO-8859-1 
# dependency:   extra dependency, e,g. Conflicts:      myspell-german-old
# Prep:         extra hacks for the %prep section

# the whole dictionary might be disabled on some distribution: use %if 
<condition> and %endif
# around all tags related to the dictionary

# the Version, Source, License tags might be conditional: use %if <condition>, 
%else, and %endif
# to define the default and distro-specific values

Locale:         af_ZA 
Language:       African
URL:            http://extensions.services.openoffice.org/project/dict_af
Version:        20080701
Types:          hunspell, hyphen
License:        LGPLv2.1+
Source:         dict-af.oxt

Locale:         bg_BG
Language:       Bulgarian
URL:            
http://extensions.services.openoffice.org/project/dictionaries-bg
Version:        4.1.5
Types:          myspell, hyphen, thesaurus
License:        GPLv2
Source:         dictionaries-bg.oxt

Locale:         be_BY
Language:       Belarusian
Prov_lang:      be_UA
Version:        1.1
Types:          myspell, hyphen
License:        LGPLv3
URL:            
http://extensions.services.openoffice.org/project/dict-be-classic
Source:         dict-be-classic.oxt

Locale:         bn_BD 
Language:       Bengali
Prov_lang:      bn_BD
Version:        1.2
Types:          hyphen
License:        GPLv3+, LGPLv3+
#, hunspell available: http://extensions.services.openoffice.org/project/dict-bn
URL:            http://extensions.services.openoffice.org/project/hyph_bn_IN
# both locales are supported by OOo
Prep:           cp hyph_bn_1.2/hyph_bn_IN.dic hyph_bn_1.2/hyph_bn_BD.dic
Source:         hyph_bn_1.2.oxt

Locale:         ca_ES
Language:       Catalan
Version:        0.9.3
Types:          hyphen
License:        GPLv3
# hunspell available: 
http://extensions.services.openoffice.org/project/dict-catalan
# thesaurus available: 
http://extensions.services.openoffice.org/project/thesaurus-ca
URL:            http://extensions.services.openoffice.org/project/ca_hyph
# FIXME: do we want symlinks to other countries
Prep:           mv hyph-ca/hyph_ca_ANY.dic hyph-ca/hyph_ca_ES.dic 
Source:         hyph-ca.oxt

Locale:         cs_CZ
Language:       Czech
Version:        20031228
Types:          hunspell, hyphen, thesaurus
License:        GPLv2
URL:            http://extensions.services.openoffice.org/project/dict-cs
Source:         dict-cs-2.0.oxt

Locale:         da_DK
Language:       Danish
License:        LGPLv2.1
# alternative URL: http://extensions.services.openoffice.org/project/dict-da
# dict-da-current.oxt does not mention the license for the hypen dictionary
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_da_DK.tar.bz2

Locale:         de_AT
Language:       Austrian
Prov_lang:      de_AT
Version:        20100307
Types:          hunspell, hyphen, thesaurus
License:        LGPLv2.1
URL:            
http://extensions.services.openoffice.org/project/dict-de_AT_frami
Source:         dict-de_AT-frami_2010-03-07.oxt

Locale:         de_CH
Language:       Swiss
Prov_lang:      de_CH
Version:        20100307
Types:          hunspell, hyphen, thesaurus 
License:        LGPLv2.1
URL:            
http://extensions.services.openoffice.org/project/dict-de_CH_frami
Source:         dict-de_CH-frami_2010-03-07.oxt

Locale:         de_DE
Language:       German
Prov_lang:      de_DE
Version:        20100307
Types:          hunspell, hyphen, thesaurus
License:        LGPLv2.1
URL:            
http://extensions.services.openoffice.org/project/dict-de_DE_frami
Source:         dict-de_DE-frami_2010-03-07.oxt

Locale:         el_GR
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_el_GR.tar.bz2

# FIXME: the license of the hyphen dictionary is unclear
# Locale:               en_AU
# Language:     Australian
# Prov_lang:    en_AU
# Version:      20081215
# Types:                myspell, hyphen, thesaurus
# License:      GPLv2+
# URL:          
http://extensions.services.openoffice.org/project/AustralianDictionary
# Source:               dict-en-au-2008-12-15.oxt

Locale:         en_CA
Prov_lang:      en_CA
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_en_CA.tar.bz2

Locale:         en_GB
Prov_lang:      en_GB
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_en_GB.tar.bz2

# FIXME: the license of the hyphen dictionary is unclear
# Locale:               en_NZ
# Language:     New Zealand
# Prov_lang:      en_NZ
# URL:          
http://extensions.services.openoffice.org/project/dict-en-nz-2008-12-03
# Version:      20081204 # 0.90.0
# Types:                myspell, hyphen, thesaurus
# License:      GPLv2, LGPLv2.1
# Source:               dict-en-nz-2008-12-03.oxt

Locale:         en_US
Prov_lang:      en_US
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_en_US.tar.bz2

# FIXME: the license of the hyphen dictionary is unclear
# Locale:               es_AR
# Language:     Argentine Spanish
# pack_suffix:  spanish-argentine
# Prov_lang:      es_AR
# URL:          
http://extensions.services.openoffice.org/project/diccionario_es_AR
# Version:      0.1
# Types:                myspell, hyphen, thesaurus 
# License:      GPLv3, LGPLv2.1, MPLv1.1
# Source:               Diccionarios-Argentina_1.oxt

Locale:         es_ES
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_es_ES.tar.bz2

Locale:         es_VE
Language:       Venezuelan Spanish
Version:        1.0.1
Types:          hunspell, hyphen, thesaurus 
License:        LGPLv3+
URL:            http://extensions.services.openoffice.org/project/dict-es_VE
Source:         dict-es_VE.oxt

Locale:         et_EE
Language:       Estonian
Version:        1.0
Types:          myspell, hyphen 
License:        LGPLv2.1
URL:            http://extensions.services.openoffice.org/project/dict_et
Source:         dict-et.oxt

Locale:         fi_FI
License:        Freeware
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_fi_FI.tar.bz2

Locale:         fr_BE
Prov_lang:      fr_BE
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_fr_BE.tar.bz2

Locale:         fr_FR
Language:       French
Prov_lang:      fr_FR
Version:        20100125 # 3.5
Types:          myspell, hyphen, thesaurus
# under investigation, it looks it belongs to several countries
License:        LGPLv2.1+
URL:            
http://extensions.services.openoffice.org/project/french-dictionary-classic-reform1990
Prep:           mv 
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/hyph_fr.dic 
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/hyph_fr_FR.dic 
Source:         ooo-dictionnaire-fr-reforme1990-v3.5.oxt

Locale:         ga_IE
Language:       Irish
Version:        20080805 # 4.4
Types:          hunspell, hyphen, thesaurus
License:        GPLv2
URL:            
http://extensions.services.openoffice.org/project/focloiri-gaeilge
Source:         focloiri-gaeilge-4.4.oxt

Locale:         gu_IN
Language:       Gujarati
Version:        1.1
Types:          hyphen
License:        GPLv3+, LGPLv3+
# hunspell available: http://extensions.services.openoffice.org/project/dict-gu
URL:            http://extensions.services.openoffice.org/project/hyph_gu_IN
Source:         hyph_gu_1.1.oxt

Locale:         hi_IN
Language:       Hindi
Version:        1.2
License:        GPLv3+, LGPLv3+
# hunspell available: http://extensions.services.openoffice.org/project/dict-hi
URL:            http://extensions.services.openoffice.org/project/hyph_hi_IN
Source:         hyph_hi_1.2.oxt

Locale:         hr_HR
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_hr_HR.tar.bz2

Locale:         hu_HU
License:        GPLv2
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_hu_HU.tar.bz2

Locale:         id_ID
Language:       Indonese
Version:        20090505
Types:          myspell, hyphen
License:        GPLv2
URL:            
http://extensions.services.openoffice.org/project/Indonesian_dictionary
Prep:           mv id/hyph_id.dic id/hyph_id_ID.dic
Source:         id.oxt

Locale:         is_IS
Language:       Icelandic
Version:        1.0
Types:          hyphen
License:        GPLv2+, LGPLv2.1+
# dict available: http://extensions.services.openoffice.org/project/dict-is
URL:            http://extensions.services.openoffice.org/project/hyph_is
Prep:           mv hyph_is-1.0/hyph_is.dic hyph_is-1.0/hyph_is_IS.dic 
Source:         hyph_is-1.0.oxt

Locale:         it_IT
Language:       Italian
Version:        20071126
Types:          hunspell, hyphen, thesaurus
License:        LGPLv2.1
URL:            http://extensions.services.openoffice.org/project/Dict_it_IT
Source:         Dizionari.IT_20081129.oxt

Locale:         ku_TR
Language:       Kurdish
# accroding to the included .dic file
Encoding:       ISO-8859-9 
Version:        1.71.2
Types:          myspell
License:        GPLv2+, LGPLv2.1+
# hunspell available: 
http://extensions.services.openoffice.org/project/rastnivis
URL:            http://extensions.services.openoffice.org/project/kitandin
# FIXME: discuss with the author
Prep:           mv kitandin/hyph_ku.dic kitandin/hyph_ku_TR.dic
Source:         kitandin.oxt

Locale:         lt_LT
License:        LPPL
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_lt_LT.tar.bz2

Locale:         lv_LV
Language:       Latvian
Version:        20090916 # 0.8.2
Types:          hunspell, hyphen, thesaurus
License:        GPLv2+
URL:            http://extensions.services.openoffice.org/project/dict_lv_LV
Source:         dict_lv_LV-0.8.2.oxt

Locale:         ml_IN
Language:       Malayalam
Prov_lang:      ml_IN
Version:        1.3
Types:          hunspell
License:        GPLv3+, LGPLv3+
# dict available: http://extensions.services.openoffice.org/project/dict_ml_IN
URL:            http://extensions.services.openoffice.org/project/hyph_ml_IN
Source:         hyph_ml_1.3.oxt

Locale:         mr_IN
Language:       Marathi
Version:        1.2
Types:          hunspell
License:        GPLv3+, LGPLv3+
# hunspell available: http://extensions.services.openoffice.org/project/dict-mr
URL:            http://extensions.services.openoffice.org/project/hyph_mr_IN
Source:         hyph_mr_1.2.oxt

Locale:         nb_NO
License:        GPLv2
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_nb_NO.tar.bz2

Locale:         nl_NL
Language:       Dutch
License:        GPLv2
Types:          hyphen
# alternative URL: http://extensions.services.openoffice.org/project/dict-nl
# nl-dict.oxt does not define the license for the bundled hyphen dictionary
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_nl_NL.tar.bz2

Locale:         nn_NO
License:        GPLv2
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_nn_NO.tar.bz2

Locale:         pl_PL
Language:       Polish
Version:        3.0a
Types:          myspell, hyphen, thesaurus
License:        LGPLv2.1
URL:            http://extensions.services.openoffice.org/project/pl-dict
Source:         pl-dict.oxt

Locale:         pt_BR
Language:       Brazilian
Prov_lang:      pt_BR
Version:        20100111 # 2.0.7
Types:          myspell, hyphen
License:        LGPLv2.1
URL:            http://extensions.services.openoffice.org/project/Vero
Source:         Vero_pt_BR_V207AOC.oxt

Locale:         pt_PT
Language:       Portuguese
Prov_lang:      pt_PT
Version:        20091015 # 9.10.13.0
Types:          hunspell, hyphen, thesaurus
License:        GPLv2
URL:            http://extensions.services.openoffice.org/project/ptPTdict
Source:         oo3x-pt-PT.oxt

Locale:         ro_RO
Language:       Romanian
Version:        20091130 # 1.1
Types:          hunspell, hyphen, thesaurus
License:        GPLv2
URL:            
http://extensions.services.openoffice.org/project/dictionaries-ro-contemporary
Source:         dict-ro.1.1.oxt

Locale:         ru_RU
Language:       Russian
# TODO no source URL
Version:        20081013 # 0.3.4
Types:          myspell, hyphen, thesaurus
License:        LGPLv3
# there is a newer version out there with copyrigh, try to catch the owner to 
release is
URL:            
http://extensions.services.openoffice.org/project/dict_ru_RU_hyph 
Source:         dict_ru_RU-0.3.4.oxt

Locale:         sk_SK
Language:       Slovak
URL:            http://extensions.services.openoffice.org/project/dict-sk
Version:        20100208
Types:          hunspell, hyphen, thesaurus
License:        GPLv2
Source:         dict-sk.oxt

Locale:         sl_SI
Language:       Slovene
Version:        20091130 # 1.0
Types:          myspell, hyphen
License:        LGPLv2.1, GPLv2
URL:            http://extensions.services.openoffice.org/project/pack-sl
Source:         pack-sl.oxt

Locale:         sv_SE
License:        LGPLv2.1
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_sv_SE.tar.bz2

Locale:         uk_UA
License:        GPLv2+
URL:            http://wiki.services.openoffice.org/wiki/Dictionaries
Source:         hyph_uk_UA.tar.bz2
++++++ libreoffice-hyphen.spec.in ++++++
#
# spec file for package libreoffice-hyphen (Version 20080929)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libreoffice-hyphen
@DO_NOT_EDIT_COMMENT@
BuildRequires:  dos2unix recode unzip
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        @ALL_LICENSES@
Group:          Productivity/Office/Dictionary
Version:        20110203.1
Release:        2
AutoReqProv:    on
Summary:        Hyphen Dictionaries for LibreOffice
@PROVIDES@#compat stuff
Provides:       OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/hyph_en_US.dic
Provides:       OpenOffice_org-hyphen = %version
Obsoletes:      OpenOffice_org-hyphen <= %version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Source0:        libreoffice-hyphen-gen-spec
Source1:        libreoffice-hyphen.spec.in
Source2:        libreoffice-hyphen.data
@SOURCES@
%description
These dictionaries help you to hyphenate texts and words in the
LibreOffice office suite.



%prep
%setup -T -c
# unpack sources
for archive in \
@SOURCES_UNPACK@    ; do
        archive_name=`basename $archive | sed -e "s|.zip$||" -e "s|.oxt$||" -e 
"s|.tar.gz$||" -e "s|.tar.bz2$||"`
        mkdir $archive_name || exit 1;
        case $archive in
            *.zip|*.oxt)
                cd $archive_name; unzip $archive || exit 1; cd -
                ;;
            *.tar.gz)
                tar -xzf $archive -C $archive_name || exit 1;
                ;;
            *.tar.bz2)
                tar -xjf $archive -C $archive_name || exit 1;
                ;;
            *)
                echo "Error: Do not know how to uncompress $archive"
                exit 1;
                ;;
        esac
done
#
# fix file names
@PREP_HACKS@#
#
# fix permissions
find . -type f -exec chmod 644 {} \;

%build

%install
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/hyphen
install -m 755 -d $RPM_BUILD_ROOT%{_docdir}/%{name}
# compat stuff
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/ooo/hyphen
# init file list
filelist=files.list
echo "%%defattr(-,root,root)" >$filelist
echo "%%dir %{_docdir}/libreoffice-hyphen" >>$filelist
echo "%%dir %{_datadir}/hyphen" >>$filelist
# compat stuff
echo "%%dir %{_datadir}/ooo" >>$filelist
echo "%%dir %{_datadir}/ooo/hyphen" >>$filelist
# process all directories
for lang_dir in * ; do
    test -d $lang_dir || continue
    # install dictionaries
    dic=
    # support locales with 2 and 3 letters in the language code: hyph_ll_CC.dic 
and hyph_lll_CC.dic
    for dic in `find $lang_dir -regextype posix-extended -regex 
".*/hyph_[[:lower:]][[:lower:]][[:lower:]]?_[[:upper:]][[:upper:]].dic" | sort` 
; do
        fname=$(basename $dic)
        if test -f $RPM_BUILD_ROOT%{_datadir}/hyphen/$fname ; then
            echo "Error: file already installed: $f"
            echo "       Probably is provided by two source tarballs"
            exit 1;
        fi
        install -m 644 $dic $RPM_BUILD_ROOT%{_datadir}/hyphen/
        echo %{_datadir}/hyphen/$fname >>$filelist
        # compat stuff
        ln -sf ../../hyphen/$fname $RPM_BUILD_ROOT%{_datadir}/ooo/hyphen/
        echo %{_datadir}/ooo/hyphen/$fname >>$filelist
    done

    # detect locale, lang and country
    if test -n "$dic" ; then
    # replace the underscore with a dot to be able to separate the language and 
the coutry code with the command "cut"
        dic_pname=`basename $dic | sed "s|_|.|g"`
        lang=`echo $dic_pname | cut -d "." -f2`
        country=`echo $dic_pname | cut -d "." -f3`
    else
        echo "Error: No dictionary found in $lang_dir"
        exit 1;
    fi
    locale="${lang}_${country}"

    # detect README encoding
    case "$locale" in 
@ENCODING@      *) coding=`LC_CTYPE="$locale" locale -k LC_CTYPE | grep charmap 
| sed "s|charmap=\"\(.*\)\"\$|\1|"` ;;
    esac

    # install documentation
    docdir=%{_docdir}/libreoffice-hyphen/hyph_$locale
    mkdir -p $RPM_BUILD_ROOT$docdir
    echo "%%doc $docdir" >>$filelist
    for doc in `find $lang_dir -type f -printf "%%P\n" | \
                grep -v -e ".aff$" -e ".dic$" -e ".dat$" -e ".idx$" \
                        -e ".orig$" -e ".old$" -e "~$" \
                        -e ".sh$" -e "makefile" -e "META-INF"` ; do
        if ! test -f $lang_dir/$doc ; then
            echo "Error: is not a file: $lang_dir/$doc"
            exit 1;
        fi
        recode utf8..utf16 <$lang_dir/$doc >/dev/null 2>&1 || recode 
$coding..utf8 $lang_dir/$doc
        dos2unix $lang_dir/$doc
        dname=$(dirname $doc)
        install -m 755 -d $RPM_BUILD_ROOT$docdir/$dname
        install -m 644 $lang_dir/$doc $RPM_BUILD_ROOT$docdir/$dname
    done
done
# link duplicated files
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f files.list

%changelog

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to