Name: mythes-en Version: 3.0 Release: 2mamba Summary: English thesaurus Group: System/Internationalization Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.danielnaber.de/wn2ooo/ Source: http://www.danielnaber.de/wn2ooo/wn2ooo20050723.tgz License: Artistic, GPL, MIT, Public Domain BuildRequires: perl BuildRequires: python BuildRequires: wordnet Requires: libmythes BuildRoot: %{_tmppath}/%{name}-%{version}-root %description English thesaurus. %prep %setup -q -c -n %{name}-%{version} %build export WNHOME=%{_datadir}/wordnet-%{version} %{__python} wn2ooo/wn2ooo.py > th_en_US_v2.dat cat th_en_US_v2.dat | %{__perl} wn2ooo/th_gen_idx.pl > th_en_US_v2.idx %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_datadir}/mythes cp -p th_en_US_v2.idx %{buildroot}%{_datadir}/mythes cp -p th_en_US_v2.dat %{buildroot}%{_datadir}/mythes pushd %{buildroot}%{_datadir}/mythes/ ALIASES="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_IE en_IN en_JM en_NA en_NG en_NZ en_PH en_SG en_TT en_ZA en_ZW" for lang in $ALIASES ; do ln -s th_en_US_v2.idx "th_"$lang"_v2.idx" ln -s th_en_US_v2.dat "th_"$lang"_v2.dat" done popd %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_datadir}/mythes/* %doc wn2ooo/LICENSE_th_gen_idx.txt wn2ooo/README.txt %changelog * Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 3.0-2mamba - rebuilt * Sat Jan 22 2011 gil 3.0-1mamba - package created by autospec