openoffice-thesaurus-en.spec, openoffice-thesaurus-de.spec

Piotr Wawrzyniak wopozka w gazeta.pl
Nie, 7 Lis 2004, 21:01:50 CET


Przesyłam spece z tezaurusami dla języka niemieckiego i angielskiego, do 
openoffice. Jako version przyjąłem datę wydania tegoż. Jeśli tak być nie może 
to chętnie poprawię.
Być może niektórym przydadzą się takie rzeczy.
-------------- następna część ---------
# $Revision:$, $Date:$
Summary:	Free German thesaurus
Summary(de):	Deutscher Thesaurus
Summary(pl):	Wolnodostępny słownik wyrazów bliskoznacznych języka niemieckiego
Name:		openoffice-thesaurus-de
Version:	20040702
Release:	1
License:	GPL
Group:		X11/Applications
Source0:	http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/thes_de_DE.zip
# Source0-md5:	bb8de5610dd6f16d69193c7e689b081a
URL:		http://www.openthesaurus.de/
BuildRequires:	unzip
Requires:	openoffice >= 1.0.2
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define oolib		%{_libdir}/openoffice
%define dictlst		%{oolib}/share/dict/ooo/dictionary.lst

%description
OpenThesaurus is an Open Source thesaurus for the German language.

%description -l de

OpenThesaurus ist ein Open-Source-Thesaurus für die deutsche Sprache

%description -l pl
Słownik synonimów to wolnodostępny słownik wyrazów bliskoznacznych
języka niemieckiego.

%prep
%setup -q -n OOo-Thesaurus-de -c OOo-Thesaurus-de

%build
echo "THES de DE th_de_DE" > dictionary.lst.thes.de

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{oolib}/share/dict/ooo
install th_de_DE.* $RPM_BUILD_ROOT%{oolib}/share/dict/ooo
install dictionary.lst.thes.de $RPM_BUILD_ROOT%{oolib}/share/dict/ooo

%clean
rm -rf $RPM_BUILD_ROOT

%post
umask 022
cat %{dictlst}.* 2>/dev/null | LC_ALL=C sort -u > %{dictlst}

%postun
umask 022
cat %{dictlst}.* 2>/dev/null | LC_ALL=C sort -u > %{dictlst}

%files
%defattr(644,root,root,755)
%{oolib}/share/dict/ooo/*

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$
-------------- następna część ---------
# $Revision:$, $Date:$
Summary:	The English thesaurus
Summary(pl):	Angielski słownik synonimów
Name:		openoffice-thesaurus-en
Version:	20040429
Release:	1
License:	GPL
Group:		X11/Applications
Source0:	http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/thes_en_US.zip
# Source0-md5:	43c72a3bbc49759f2bd8c0870b097efe	
URL:		http://lingucomponent.openoffice.org/thes_dic.html
BuildRequires:	unzip
Requires:	openoffice >= 1.0.2
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define oolib		%{_libdir}/openoffice
%define dictlst		%{oolib}/share/dict/ooo/dictionary.lst

%description
The English thesaurus for OpenOffice.

%description -l pl
Angielski słownik wyrazów bliskoznacznych dla OpenOffice.

%prep
%setup -q -n OOo-Thesaurus-en -c OOo-Thesaurus-en

%build
echo "THES en GB th_en_US" > dictionary.lst.thes.en
echo "THES en US th_en_US" >> dictionary.lst.thes.en
echo "THES en AU th_en_US" >> dictionary.lst.thes.en
echo "THES en CA th_en_US" >> dictionary.lst.thes.en
echo "THES en NZ th_en_US" >> dictionary.lst.thes.en

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{oolib}/share/dict/ooo
install th_en_US.* $RPM_BUILD_ROOT%{oolib}/share/dict/ooo
install dictionary.lst.thes.en $RPM_BUILD_ROOT%{oolib}/share/dict/ooo

%clean
rm -rf $RPM_BUILD_ROOT

%post
umask 022
cat %{dictlst}.* 2>/dev/null | LC_ALL=C sort -u > %{dictlst}

%postun
umask 022
cat %{dictlst}.* 2>/dev/null | LC_ALL=C sort -u > %{dictlst}

%files
%defattr(644,root,root,755)
%{oolib}/share/dict/ooo/*

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


Więcej informacji o liście dyskusyjnej pld-devel-pl