summaryrefslogtreecommitdiff
path: root/mythes-en.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 11:00:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 11:00:08 +0000
commit3586d1a0f452c760f305c0f266a121e57968819a (patch)
treee9d43824d4655657014abe47bb59d25dbd08188a /mythes-en.spec
parent1ac22990fa1f4d7e8e4b68d17def68e1a86c88fc (diff)
automatic import of mythes-enopeneuler23.03
Diffstat (limited to 'mythes-en.spec')
-rw-r--r--mythes-en.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/mythes-en.spec b/mythes-en.spec
new file mode 100644
index 0000000..43e51c3
--- /dev/null
+++ b/mythes-en.spec
@@ -0,0 +1,47 @@
+Name: mythes-en
+Summary: English thesaurus
+Version: 3.0
+Release: 1
+Source: http://www.danielnaber.de/wn2ooo/wn2ooo20050723.tgz
+URL: http://www.danielnaber.de/wn2ooo/
+BuildRequires: python3-devel perl-interpreter wordnet = %{version}
+License: BSD and Artistic clarified
+BuildArch: noarch
+Requires: mythes
+Supplements: (mythes and langpacks-en)
+
+Patch0: mythes-en.python3.patch
+
+%description
+English thesaurus.
+
+%prep
+%setup -q -c %{name}-%{version}
+%patch0 -p1 -b .python3
+
+%build
+export WNHOME=/usr/share/wordnet-%{version}
+python3 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
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
+cp -p th_en_US_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
+
+pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
+en_US_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_MW en_NA en_NG en_NZ en_PH en_SG en_TT en_ZA en_ZM en_ZW"
+for lang in $en_US_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
+
+
+%files
+%doc wn2ooo/LICENSE_th_gen_idx.txt wn2ooo/README.txt
+%{_datadir}/mythes/*
+
+%changelog
+* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 3.0-1
+- Package init