Hello community,
here is the log from the commit of package libreoffice-thesaurus for
openSUSE:11.3
checked in at Thu Mar 31 01:58:49 CEST 2011.
--------
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++
/mounts/work_src_done/11.3/libreoffice-thesaurus/libreoffice-thesaurus.changes
2011-03-18 22:35:05.000000000 +0100
@@ -0,0 +1,79 @@
+-------------------------------------------------------------------
+Fri Mar 18 22:12:32 CET 2011 - [email protected]
+
+- maintenance update (bnc#667421, MaintenanceTracker-38738)
+
+-------------------------------------------------------------------
+Wed Feb 2 21:19:05 CET 2011 - [email protected]
+
+- renamed from OpenOffice_org-thesaurus to libreoffice-thesaurus
+- added provides locale(libreoffice:<lang>) to make it installed
+ with libreoffice (bnc#668145)
+- installed files into /usr/share/mythes to be compatible with other
+ Linux distributions; added compat symlinks into the older location
+ /usr/share/ooo/thesaurus
+- bumped version to make sure that it is considered as a replacement
+ of the older package
+
+-------------------------------------------------------------------
+Fri Apr 9 20:28:50 CEST 2010 - [email protected]
+
+- added dos2unix to BuildRequires; called on documentation files
+
+-------------------------------------------------------------------
+Thu Apr 8 18:31:27 CEST 2010 - [email protected]
+
+- updated: German, French, Irish, Polish, Portuguese, Romanian, Russian,
+ Slovak, Swedish, Swiss
+- added: Austrian, Australian, Argentine Spanish, Catalan, Danish, Italian,
+ Venezuelan Spanish
+
+-------------------------------------------------------------------
+Thu Apr 8 14:03:03 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 source package
+
+-------------------------------------------------------------------
+Tue Feb 9 17:34:07 CET 2010 - [email protected]
+
+- fixed the license tag of the British dictionary
+
+-------------------------------------------------------------------
+Tue Feb 9 17:27:12 CET 2010 - [email protected]
+
+- renamed OpenOffice_org-en to OpenOffice_org-en-US to make the content clear
+ and avoid confusion with the new OpenOffice_org-en-GB
+
+-------------------------------------------------------------------
+Mon Feb 06 16:57:05 CEST 2010 - [email protected]
+
+- added: British (bnc#576443)
+
+-------------------------------------------------------------------
+Mon Sep 29 17:56:01 CEST 2008 - [email protected]
+
+- 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 10:45:58 CEST 2008 - [email protected]
+
+- 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 15:58:26 CEST 2007 - [email protected]
+
+- split from the OpenOffice_org package
+- source package version 20070719
+- updated: German, Polish
+- added: Nepali
calling whatdependson for 11.3-i586
New:
----
DanskeSynonymer.oxt
Diccionarios-Argentina_1.oxt
Dizionari.IT_20081129.oxt
SwedishThesaurus.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-en-au-2008-12-15.oxt
dict-es_VE.oxt
dict-ro.1.1.oxt
dict-sk.oxt
dict_ru_RU-0.3.4.oxt
focloiri-gaeilge-4.4.oxt
libreoffice-thesaurus-gen-spec
libreoffice-thesaurus.changes
libreoffice-thesaurus.data
libreoffice-thesaurus.spec
libreoffice-thesaurus.spec.in
oo3x-pt-PT.oxt
ooo-dictionnaire-fr-reforme1990-v3.5.oxt
pl-dict.oxt
th_el.tar.bz2
thes_bg_BG_v2.tar.bz2
thes_cs_CZ_v2.tar.bz2
thes_en_GB_v2.tar.bz2
thes_en_US_v2.tar.bz2
thes_es_ES_v2.tar.bz2
thes_hu_HU_v2.tar.bz2
thes_nb_NO_v2.tar.bz2
thes_ne_NP_v2.tar.bz2
thes_sl_SI_v2.tar.bz2
thesaurus-ca.oxt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libreoffice-thesaurus.spec ++++++
++++ 809 lines (skipped)
++++++ libreoffice-thesaurus-gen-spec ++++++
++++ 621 lines (skipped)
++++++ libreoffice-thesaurus.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: bg_BG
Language: Bulgarian
License: GPLv2+
Version: 20071210.1
Types: thesaurus
# alternative url:
http://extensions.services.openoffice.org/project/dictionaries-bg
# dictionaries-bg.oxt, version 4.1.5 includes older thesaurus files => no update
Url: http://sourceforge.net/projects/bgoffice
# Extra source for Bulgarian dictionary because of missing license in
# the version in the version available on the OOo site
Source: thes_bg_BG_v2.tar.bz2
Locale: ca_ES
Language: Catalan
URL: http://extensions.services.openoffice.org/project/thesaurus-ca
Version: 1.5.0.1
Types: hunspell
License: GPLv2, LGPLv2.1
# TODO mail to the owner to solve this
Prep: mv thesaurus-ca/dictionaries/README_th_ca_ES_v3.txt
thesaurus-ca/dictionaries/README_th_ca_ES_v2.txt
Prep: mv thesaurus-ca/dictionaries/th_ca_ES_v3.dat
thesaurus-ca/dictionaries/th_ca_ES_v2.dat
Prep: mv thesaurus-ca/dictionaries/th_ca_ES_v3.idx
thesaurus-ca/dictionaries/th_ca_ES_v2.idx
#, hunspell available:
http://extensions.services.openoffice.org/project/dict-catalan
#, thesaurus available:
http://extensions.services.openoffice.org/project/thesaurus-ca
Source: thesaurus-ca.oxt
Locale: cs_CZ
Language: Czech
License: BSD3c
Version: 20070913.1
Types: thesaurus
# alternative url: http://extensions.services.openoffice.org/project/dict-cs
# the thesaurus dictionary included in dict-cs-2.0.oxt is not freely
redistributable
# without asking author => FIXME: asked the author
Source: thes_cs_CZ_v2.tar.bz2
Locale: da_DK
Language: Danish
URL:
http://extensions.services.openoffice.org/project/danske_synonymer
Version: 20100126.1
Types: thesaurus
License: GPLv2, LGPLv2.1, MPLv1.1
# hunspell, hyphen available:
http://extensions.services.openoffice.org/project/dict-da
Source: DanskeSynonymer.oxt
Locale: de_AT
Language: Austrian
pack_suffix: de-AT
Prov_lang: de_AT
URL:
http://extensions.services.openoffice.org/project/dict-de_AT_frami
Version: 20100307.1
Types: hunspell, hyphen, thesaurus
License: LGPLv2.1+
Source: dict-de_AT-frami_2010-03-07.oxt
Locale: de_CH
Language: German-Swiss
pack_suffix: de-CH
Prov_lang: de_CH
URL:
http://extensions.services.openoffice.org/project/dict-de_CH_frami
Version: 20100307.1
Types: hunspell, hyphen, thesaurus
License: LGPLv2.1+
Source: dict-de_CH-frami_2010-03-07.oxt
Locale: de_DE
Language: German
URL:
http://extensions.services.openoffice.org/project/dict-de_DE_frami
License: LGPLv2.1+
Version: 20100307.1
Types: hunspell, hyphen, thesaurus
Source: dict-de_DE-frami_2010-03-07.oxt
Locale: el_GR
Language: Greek
License: GPLv2+
Version: 20061203.1
Types: thesaurus
Source: th_el.tar.bz2
Locale: en_AU
Language: Australian
Pack_suffix: en-AU
Prov_lang: en_AU
License: BSD4c
Version: 20081215.1
Types: myspell, hyphen, thesaurus
URL:
http://extensions.services.openoffice.org/project/AustralianDictionary
Source: dict-en-au-2008-12-15.oxt
Locale: en_US
Language: American
Pack_suffix: en-US
Prov_lang: en_US
License: BSD4c
Version: 20060111.1
Types: thesaurus
Dependency: Provides: OpenOffice_org-thesaurus-en = 20060111
Dependency: Obsoletes: OpenOffice_org-thesaurus-en <= 20060111
Source: thes_en_US_v2.tar.bz2
Locale: en_GB
Language: British
Pack_suffix: en-GB
Prov_lang: en_GB
License: BSD4c
Types: thesaurus
Version: 20051128.1
Prep: mv thes_en_GB_v2/th_en_GB_final.dat
thes_en_GB_v2/th_en_GB_v2.dat
Prep: mv thes_en_GB_v2/th_en_GB_final.idx
thes_en_GB_v2/th_en_GB_v2.idx
# http://sourceforge.net/projects/brit-thesaurus/
Source: thes_en_GB_v2.tar.bz2
Locale: es_AR
Language: Argentine Spanish
pack_suffix: es-AR
Prov_lang: es_AR
URL:
http://extensions.services.openoffice.org/project/diccionario_es_AR
Version: 0.1.1
Types: myspell, hyphen, thesaurus
License: LGPLv2.1
Source: Diccionarios-Argentina_1.oxt
Locale: es_ES
Language: Spanish
License: LGPLv2.1+
Types: thesaurus
Version: 20050720.1
Source: thes_es_ES_v2.tar.bz2
Locale: es_VE
Language: Venezuelan Spanish
pack_suffix: es-VE
Prov_lang: es_VE
URL: http://extensions.services.openoffice.org/project/dict-es_VE
Version: 1.0.1.1
Types: hunspell, hyphen, thesaurus
License: GPLv3+
Source: dict-es_VE.oxt
Locale: fr_FR
Language: French
URL:
http://extensions.services.openoffice.org/project/french-dictionary-classic-reform1990
License: LGPLv2.1+
Version: 20100125.1 # 3.5
Types: myspell, hyphen, thesaurus
# under investigation, it looks it belongs to several countries
Prep: mv
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/thes_fr.dat
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/th_fr_FR_v2.dat
Prep: mv
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/thes_fr.idx
ooo-dictionnaire-fr-reforme1990-v3.5/dictionaries/th_fr_FR_v2.idx
Source: ooo-dictionnaire-fr-reforme1990-v3.5.oxt
Locale: ga_IE
Language: Irish
License: GFDLv1.2+
Types: thesaurus
Version: 20071002.1
Types: hunspell, hyphen, thesaurus
URL:
http://extensions.services.openoffice.org/project/focloiri-gaeilge
Source: focloiri-gaeilge-4.4.oxt
Locale: hu_HU
Language: Hungarian
License: LGPLv2.1+
Types: thesaurus
Version: 20080319.1
# from hu_HU-1.3-pack.zip
Source: thes_hu_HU_v2.tar.bz2
Locale: it_IT
Language: Italian
URL: http://extensions.services.openoffice.org/project/Dict_it_IT
Version: 20081129.1
Types: hunspell, hyphen, thesaurus
License: AGPLv3+
Source: Dizionari.IT_20081129.oxt
# FIXME: the thesaurus dictionary is almost empty
#Locale: lv_LV
#Language: Latvian
#URL: http://extensions.services.openoffice.org/project/dict_lv_LV
#Version: 20090916.1 # 0.8.2
#Types: hunspell, hyphen, thesaurus
#License: LGPLv2.1
#Source: dict_lv_LV-0.8.2.oxt
Locale: nb_NO
Language: Norwegian Bokmaal
License: GPLv2+
Types: thesaurus
Version: 20080310.1
# from no_NO-pack2-2.0.10.zip
Source: thes_nb_NO_v2.tar.bz2
Locale: ne_NP
Language: Nepali
License: LGPLv2.1+
Types: thesaurus
Version: 1.1.1
Source: thes_ne_NP_v2.tar.bz2
Locale: pl_PL
Language: Polish
URL: http://extensions.services.openoffice.org/project/pl-dict
License: LGPLv2.1
Types: myspell, hyphen, thesaurus
Version: 20081206.1
Source: pl-dict.oxt
Locale: pt_PT
Language: Portuguese
License: GPLv2+
Types: hunspell, hyphen, thesaurus
Version: 20091015.1
URL: http://extensions.services.openoffice.org/project/ptPTdict
Source: oo3x-pt-PT.oxt
Locale: ro_RO
Language: Romanian
License: GPLv2+
Types: hunspell, hyphen, thesaurus
Version: 20091130.1
URL:
http://extensions.services.openoffice.org/project/dictionaries-ro-contemporary
Source: dict-ro.1.1.oxt
Locale: ru_RU
Language: Russian
License: LGPLv3
Types: myspell, hyphen, thesaurus
Version: 20081013.1
# TODO no source URL
Source: dict_ru_RU-0.3.4.oxt
Locale: sk_SK
Language: Slovak
License: BSD3c
Types: hunspell, hyphen, thesaurus
Version: 20100208.1
URL: http://extensions.services.openoffice.org/project/dict-sk
Source: dict-sk.oxt
Locale: sl_SI
Language: Slovenian
License: LGPLv2.1+
Types: thesaurus
Version: 20080601.1
Source: thes_sl_SI_v2.tar.bz2
Locale: sv_SE
Language: Swedish
License: BSD3c
Types: thesaurus
Version: 20090624.1
# hunspell available:
http://extensions.services.openoffice.org/project/dict-sv
URL: http://extensions.services.openoffice.org/project/SweThes
Source: SwedishThesaurus.oxt
++++++ libreoffice-thesaurus.spec.in ++++++
#
# spec file for package libreoffice-thesaurus (Version 20070719)
#
# 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-thesaurus
@DO_NOT_EDIT_COMMENT@
BuildRequires: dos2unix recode unzip
License: @ALL_LICENSES@
Group: Productivity/Office/Dictionary
AutoReqProv: on
Version: 20110202
Release: 4
Summary: A Source Package for LibreOffice Thesaurus Dictionaries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Url: http://wiki.services.openoffice.org/wiki/Dictionaries
Source0: libreoffice-thesaurus-gen-spec
Source1: libreoffice-thesaurus.spec.in
Source2: libreoffice-thesaurus.data
@SOURCES@
%description
This source package is used to build LibreOffice thesaurus
dictionaries.
@METADATA@
%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@#
# rename thes_ to th_ and add _v2 suffix
for suffix in idx dat ; do
for file in `find . -name "th*_*.$suffix" -type f` ; do
dir=$(dirname $file)
fname=$(basename $file)
fname_new=`echo $fname | sed -e "s|^thes_|th_|" -e
"s|\.$suffix$|_v2.$suffix|" -e "s|_v2_v2|_v2|"`
test "$fname" = "$fname_new" || mv -v "$dir/$fname" "$dir/$fname_new"
done
done
#
# fix permissions
find . -type f -exec chmod 644 {} \;
%build
%install
rm -f filelist.template
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/mythes
# compat dir
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/ooo/thesaurus
for lang_dir in * ; do
test -d $lang_dir || continue
# temporary file list
filelist=`mktemp /tmp/lo-thes-XXXXXX`
echo "%%defattr(-,root,root)" >$filelist
echo "%%dir %{_datadir}/mythes" >>$filelist
# compat dir
echo "%%dir %{_datadir}/ooo" >>$filelist
echo "%%dir %{_datadir}/ooo/thesaurus" >>$filelist
# install dictionaries
dic=
# support locales with 2 and 3 letters in the language code:
th_ll_CC_v2.idx and th_lll_CC_v2.idx
for idx in `find $lang_dir -regextype posix-extended -regex
".*/th_[[:lower:]][[:lower:]][[:lower:]]?_[[:upper:]][[:upper:]]_v2.idx" |
sort` ; do
dat=`echo $idx | sed -e "s|.idx$|.dat|"`
if ! test -f $dat ; then
echo "Warning: Found $idx but not $dat"
echo "Skipping $idx"
continue;
fi
# both .idx and .dat files exists => install them
for f in $idx $dat ; do
fname=$(basename $f)
if test -f $RPM_BUILD_ROOT%{_datadir}/mythes/$fname ; then
echo "Error: file already installed: $f"
echo " Probably is provided by two source tarballs"
exit 1;
fi
install -m 644 $f $RPM_BUILD_ROOT%{_datadir}/mythes/
echo %{_datadir}/mythes/$fname >>$filelist
# compat stuff
ln -sf ../../mythes/$fname $RPM_BUILD_ROOT%{_datadir}/ooo/thesaurus/
echo %{_datadir}/ooo/thesaurus/$fname >>$filelist
done
done
# detect locale, lang and country
if test -n $idx ; 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 $idx | 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 long language name
case "$locale" in
@LANG_NAME@ *) lang_name="$lang" ;;
esac
# 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-thesaurus-$lang_name
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
# rename the file list according to the detacted lang and country
mv $filelist $locale.list
# generate tempalte for the %files section
echo "%%files -f $locale.list $lang_name" >>filelist.template
echo "" >>filelist.template
done
%clean
rm -rf $RPM_BUILD_ROOT
@FILES@
%changelog
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]