File OpenOffice_org-thesaurus.spec of Package OpenOffice_org-thesaurus
#
# spec file for package OpenOffice_org-thesaurus (Version 20070719)
#
# Copyright (c) 2008 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: OpenOffice_org-thesaurus
BuildRequires: recode
License: BSD 3-Clause; BSD 4-Clause; GPL v2 or later; LGPL v2.1 or later
Group: Productivity/Office/Dictionary
AutoReqProv: on
Version: 20070719
Release: 3
Summary: A Source Package for OpenOffice.org Thesaurus Dictionaries
Url: http://wiki.services.openoffice.org/wiki/Dictionaries
# Extra source for Bulgarian dictionary because of missing license in
# the version in the version available on the OOo site
# http://sourceforge.net/projects/bgoffice
Source0: thes_bg_BG_v2.tar.bz2
Source1: thes_cs_CZ_v2.tar.bz2
Source2: thes_de_CH_v2.tar.bz2
Source3: thes_de_DE_v2.tar.bz2
Source4: th_el.tar.bz2
Source5: thes_en_US_v2.tar.bz2
Source6: thes_es_ES_v2.tar.bz2
Source7: thes_fr_FR_v2_2-1.tar.bz2
Source8: thes_ga_IE_v2.tar.bz2
# from hu_HU-1.3-pack.zip
Source9: thes_hu_HU_v2.tar.bz2
# from no_NO-pack2-2.0.10.zip
Source10: thes_nb_NO_v2.tar.bz2
Source11: thes_ne_NP_v2.tar.bz2
Source12: thes_pl_PL_v2.tar.bz2
Source13: thes_pt_PT_v2.tar.bz2
Source14: th_ro_RO.3.3-test3.tar.bz2
Source15: thes_ru_RU_v2.tar.bz2
# http://wiki.services.openoffice.org/wiki/Dictionaries#Slovak_.28Slovakia.29
Source16: OOo-Thesaurus2-sk_SK.tar.bz2
Source17: thes_sl_SI_v2.tar.bz2
Source18: thes_sv_SE_v2.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This source package is used to build OpenOffice.org thesaurus
dictionaries.
%package bg
License: GPL v2 or later
Version: 20071210
Release: 37
Group: Productivity/Office/Dictionary
Summary: Bulgarian Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_bg_BG_v2.dat
Provides: locale(OpenOffice_org:bg)
%description bg
The Bulgarian thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package cs
License: BSD 3-Clause
Version: 20070913
Release: 37
Group: Productivity/Office/Dictionary
Summary: Czech Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_cs_CZ_v2.dat
Provides: locale(OpenOffice_org:cs)
%description cs
The Czech thesaurus dictionary that can be used to look up for synonyms
and related words in the OpenOffice.org office suite.
%package de
License: LGPL v2.1 or later
Version: 20080406
Release: 37
Group: Productivity/Office/Dictionary
Summary: German Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_de_DE_v2.dat
Provides: locale(OpenOffice_org:de)
%description de
The German thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package de-CH
License: LGPL v2.1 or later
Version: 20080406
Release: 37
Group: Productivity/Office/Dictionary
Summary: German-Swiss Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_de_CH_v2.dat
Provides: locale(OpenOffice_org:de_CH)
%description de-CH
The German-Swiss thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package el
License: GPL v2 or later
Version: 20061203
Release: 1
Group: Productivity/Office/Dictionary
Summary: Greek Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_el_GR_v2.dat
Provides: locale(OpenOffice_org:el)
%description el
The Greek thesaurus dictionary that can be used to look up for synonyms
and related words in the OpenOffice.org office suite.
%package en
License: BSD 4-Clause
Version: 20060111
Release: 82
Group: Productivity/Office/Dictionary
Summary: English Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_en_US_v2.dat
Provides: locale(OpenOffice_org:en)
%description en
The English thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package es
License: LGPL v2.1 or later
Version: 20050720
Release: 82
Group: Productivity/Office/Dictionary
Summary: Spanish Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_es_ES_v2.dat
Provides: locale(OpenOffice_org:es)
%description es
The Spanish thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package fr
License: LGPL v2.1 or later
Version: 20060511
Release: 1
Group: Productivity/Office/Dictionary
Summary: French Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_fr_FR_v2.dat
Provides: locale(OpenOffice_org:fr)
%description fr
The French thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package ga
License: GNU Free Documentation License, Version 1.2 (GFDL 1.2)
Version: 20071002
Release: 37
Group: Productivity/Office/Dictionary
Summary: Irish Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_ga_IE_v2.dat
Provides: locale(OpenOffice_org:ga)
%description ga
The Irish thesaurus dictionary that can be used to look up for synonyms
and related words in the OpenOffice.org office suite.
%package hu
License: LGPL v2.1 or later
Version: 20080319
Release: 37
Group: Productivity/Office/Dictionary
Summary: Hungarian Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_hu_HU_v2.dat
Provides: locale(OpenOffice_org:hu)
%description hu
The Hungarian thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package nb
License: GPL v2 or later
Version: 20080310
Release: 37
Group: Productivity/Office/Dictionary
Summary: Norwegian Bokmaal Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_nb_NO_v2.dat
Provides: locale(OpenOffice_org:nb)
%description nb
The Norwegian Bokmaal thesaurus dictionary that can be used to look up
for synonyms and related words in the OpenOffice.org office suite.
%package ne
License: LGPL v2.1 or later
Version: 1.1
Release: 82
Group: Productivity/Office/Dictionary
Summary: Nepali Thesaurus Dictionary for OpenOffice.org
Provides: locale(OpenOffice_org:ne)
%description ne
The Nepali thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package pl
License: LGPL v2.1 or later
Version: 20061223
Release: 82
Group: Productivity/Office/Dictionary
Summary: Polish Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_pl_PL_v2.dat
Provides: locale(OpenOffice_org:pl)
%description pl
The Polish thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package pt
License: GPL v2 or later
Version: 20060817
Release: 82
Group: Productivity/Office/Dictionary
Summary: Portuguese Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_pt_PT_v2.dat
Provides: locale(OpenOffice_org:pt)
%description pt
The Portuguese thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package ro
License: GPL v2 or later
Version: 20080920
Release: 1
Group: Productivity/Office/Dictionary
Summary: German Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_ro_RO_v2.dat
Provides: locale(OpenOffice_org:ro)
%description ro
The German thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package ru
License: LGPL v2.1 or later
Version: 20061016
Release: 37
Group: Productivity/Office/Dictionary
Summary: Russian Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_ru_RU_v2.dat
Provides: locale(OpenOffice_org:ru)
%description ru
The Russian thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package sk
License: BSD 3-Clause
Version: 20080926
Release: 1
Group: Productivity/Office/Dictionary
Summary: Slovak Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_sk_SK_v2.dat
Provides: locale(OpenOffice_org:sk)
%description sk
The Slovak thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package sl
License: LGPL v2.1 or later
Version: 20080601
Release: 1
Group: Productivity/Office/Dictionary
Summary: Slovenian Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_sl_SI_v2.dat
Provides: locale(OpenOffice_org:sl)
%description sl
The Slovenian thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%package sv
License: Public Domain, Freeware
Version: 20080609
Release: 1
Group: Productivity/Office/Dictionary
Summary: Swedish Thesaurus Dictionary for OpenOffice.org
Provides: OpenOffice_org:/usr/lib/ooo-2.0/share/dict/ooo/th_sv_SE_v2.dat
Provides: locale(OpenOffice_org:sv)
%description sv
The Swedish thesaurus dictionary that can be used to look up for
synonyms and related words in the OpenOffice.org office suite.
%prep
%setup -T -c
# unpack sources
for archive in %{S:0} %{S:1} %{S:2} %{S:3} %{S:4} \
%{S:5} %{S:6} %{S:7} %{S:8} %{S:9} \
%{S:10} %{S:11} %{S:12} %{S:13} %{S:14} \
%{S:15} %{S:16} %{S:17} %{S:18} ; do
name="${archive##*/}"
name="${name%.tar.bz2}"
install -m 755 -d $name
tar -xjf "$archive" -C "$name"
done
#
# French dictionary
mv thes_fr_FR_v2_2-1 thes_fr_FR_v2
#
# Greek dictionary
mv th_el thes_el_GR_v2
#
# Romanian dictionary
mv th_ro_RO.3.3-test3 thes_ro_RO_v2
mv thes_ro_RO_v2/README thes_ro_RO_v2/README_th_ro_RO_v2.txt
mv thes_ro_RO_v2/COPYING.GPL thes_ro_RO_v2/COPYING.GPL_th_ro_RO_v2.txt
mv thes_ro_RO_v2/th_ro_RO.dat thes_ro_RO_v2/th_ro_RO_v2.dat
mv thes_ro_RO_v2/th_ro_RO.idx thes_ro_RO_v2/th_ro_RO_v2.idx
rm thes_ro_RO_v2/*classic*
#
# Slovak dictionary
mv OOo-Thesaurus2-sk_SK thes_sk_SK_v2
mv thes_sk_SK_v2/README_th_sk_SK.txt thes_sk_SK_v2/README_th_sk_SK_v2.txt
mv thes_sk_SK_v2/th_sk_SK.dat thes_sk_SK_v2/th_sk_SK_v2.dat
mv thes_sk_SK_v2/th_sk_SK.idx thes_sk_SK_v2/th_sk_SK_v2.idx
#
# Svedish dictionary
mv thes_sv_SE_v2/README_thes_sv_SE.txt thes_sv_SE_v2/README_thes_sv_SE_v2.txt
mv thes_sv_SE_v2/th_sv_SE.dat thes_sv_SE_v2/th_sv_SE_v2.dat
mv thes_sv_SE_v2/th_sv_SE.idx thes_sv_SE_v2/th_sv_SE_v2.idx
#
# fix permissions
find . -type f -exec chmod 644 {} \;
%build
%install
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/ooo/thesaurus
for dir in * ; do
lang=`echo ${dir:5:2}`
country=`echo ${dir:8:2}`
install -m 644 $dir/th_${lang}_${country}_v2.dat \
$RPM_BUILD_ROOT%{_datadir}/ooo/thesaurus/th_${lang}_${country}_v2.dat
install -m 644 $dir/th_${lang}_${country}_v2.idx \
$RPM_BUILD_ROOT%{_datadir}/ooo/thesaurus/th_${lang}_${country}_v2.idx
# fix README encoding
coding=`LC_CTYPE="${lang}_${country}" locale -k LC_CTYPE | grep charmap | sed "s|charmap=\"\(.*\)\"\$|\1|"`
for file in $dir/{*.txt,licence.txt} ; do
test -f $file || continue
recode utf8..utf16 <$file >/dev/null 2>&1 || recode $coding..utf8 $file
done
done
%clean
rm -rf $RPM_BUILD_ROOT
%files bg
%defattr(-, root, root)
%doc thes_bg_BG_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_bg_BG_v2.dat
%{_datadir}/ooo/thesaurus/th_bg_BG_v2.idx
%files cs
%defattr(-, root, root)
%doc thes_cs_CZ_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_cs_CZ_v2.dat
%{_datadir}/ooo/thesaurus/th_cs_CZ_v2.idx
%files de
%defattr(-, root, root)
%doc thes_de_DE_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_de_DE_v2.dat
%{_datadir}/ooo/thesaurus/th_de_DE_v2.idx
%files de-CH
%defattr(-, root, root)
%doc thes_de_CH_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_de_CH_v2.dat
%{_datadir}/ooo/thesaurus/th_de_CH_v2.idx
%files el
%defattr(-, root, root)
%doc thes_el_GR_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_el_GR_v2.dat
%{_datadir}/ooo/thesaurus/th_el_GR_v2.idx
%files en
%defattr(-, root, root)
%doc thes_en_US_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_en_US_v2.dat
%{_datadir}/ooo/thesaurus/th_en_US_v2.idx
%files es
%defattr(-, root, root)
%doc thes_es_ES_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_es_ES_v2.dat
%{_datadir}/ooo/thesaurus/th_es_ES_v2.idx
%files fr
%defattr(-, root, root)
%doc thes_fr_FR_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_fr_FR_v2.dat
%{_datadir}/ooo/thesaurus/th_fr_FR_v2.idx
%files ga
%defattr(-, root, root)
%doc thes_ga_IE_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_ga_IE_v2.dat
%{_datadir}/ooo/thesaurus/th_ga_IE_v2.idx
%files hu
%defattr(-, root, root)
%doc thes_hu_HU_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_hu_HU_v2.dat
%{_datadir}/ooo/thesaurus/th_hu_HU_v2.idx
%files nb
%defattr(-, root, root)
%doc thes_nb_NO_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_nb_NO_v2.dat
%{_datadir}/ooo/thesaurus/th_nb_NO_v2.idx
%files ne
%defattr(-, root, root)
%doc thes_ne_NP_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_ne_NP_v2.dat
%{_datadir}/ooo/thesaurus/th_ne_NP_v2.idx
%files pl
%defattr(-, root, root)
%doc thes_pl_PL_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_pl_PL_v2.dat
%{_datadir}/ooo/thesaurus/th_pl_PL_v2.idx
%files pt
%defattr(-, root, root)
%doc thes_pt_PT_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_pt_PT_v2.dat
%{_datadir}/ooo/thesaurus/th_pt_PT_v2.idx
%files ro
%defattr(-, root, root)
%doc thes_ro_RO_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_ro_RO_v2.dat
%{_datadir}/ooo/thesaurus/th_ro_RO_v2.idx
%files ru
%defattr(-, root, root)
%doc thes_ru_RU_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_ru_RU_v2.dat
%{_datadir}/ooo/thesaurus/th_ru_RU_v2.idx
%files sk
%defattr(-, root, root)
%doc thes_sk_SK_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_sk_SK_v2.dat
%{_datadir}/ooo/thesaurus/th_sk_SK_v2.idx
%files sl
%defattr(-, root, root)
%doc thes_sl_SI_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_sl_SI_v2.dat
%{_datadir}/ooo/thesaurus/th_sl_SI_v2.idx
%files sv
%defattr(-, root, root)
%doc thes_sv_SE_v2/*.txt
%dir %{_datadir}/ooo
%dir %{_datadir}/ooo/thesaurus
%{_datadir}/ooo/thesaurus/th_sv_SE_v2.dat
%{_datadir}/ooo/thesaurus/th_sv_SE_v2.idx
%changelog
* Mon Sep 29 2008 pmladek@suse.cz
- updated: French, Slovak, Romanian, Slovene
- added: Greek, Swedish
- removed obsolete triggerin and postun scripts; OOo-3.0 does not need
it anymore
* Mon Apr 14 2008 lmichnovic@suse.cz
- update: bg_BG, cs_CZ, de_DE, nb_NO, sk_SK
- new packages: de_CH, ga_IE, hu_HU, ro_RO, ru_RU, sl_SI
- not removing $RPM_BUILD_ROOT in %%install
* Thu Jul 19 2007 pmladek@suse.cz
- split from the OpenOffice_org package
- source package version 20070719
- updated: German, Polish
- added: Nepali