From d4127048124dc29fbf5e2d4232dd43ed4648dd82 Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Sat, 6 Jan 2024 07:29:15 +0100 Subject: [PATCH] rebuilt [release 3.0-2mamba;Sun Apr 10 2011] --- README.md | 2 ++ mythes-en.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 mythes-en.spec diff --git a/README.md b/README.md index 5426b90..87d5bd7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mythes-en +English thesaurus. + diff --git a/mythes-en.spec b/mythes-en.spec new file mode 100644 index 0000000..13b3bff --- /dev/null +++ b/mythes-en.spec @@ -0,0 +1,59 @@ +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