rebuilt [release 3.0-2mamba;Sun Apr 10 2011]

This commit is contained in:
Ercole 'ercolinux' Carpanetto 2024-01-06 07:29:15 +01:00
parent c7523602a2
commit d412704812
2 changed files with 61 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# mythes-en # mythes-en
English thesaurus.

59
mythes-en.spec Normal file
View File

@ -0,0 +1,59 @@
Name: mythes-en
Version: 3.0
Release: 2mamba
Summary: English thesaurus
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
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 <ercole69@gmail.com> 3.0-2mamba
- rebuilt
* Sat Jan 22 2011 gil <puntogil@libero.it> 3.0-1mamba
- package created by autospec