93f2d6
Name: mythes-en
93f2d6
Summary: English thesaurus
93f2d6
Version: 3.0
93f2d6
Release: 33%{?dist}
93f2d6
Source: http://www.danielnaber.de/wn2ooo/wn2ooo20050723.tgz
93f2d6
URL: http://www.danielnaber.de/wn2ooo/
93f2d6
BuildRequires: python3-devel
93f2d6
BuildRequires: perl-interpreter
93f2d6
BuildRequires: wordnet = %{version}
93f2d6
# License BSD is for the th_gen_idx.pl file
93f2d6
# License Artistic Clarified is for python files
93f2d6
License: BSD and Artistic clarified
93f2d6
BuildArch: noarch
93f2d6
Requires: mythes
93f2d6
Supplements: (mythes and langpacks-en)
93f2d6
93f2d6
Patch0: mythes-en.python3.patch
93f2d6
93f2d6
%description
93f2d6
English thesaurus.
93f2d6
93f2d6
%prep
93f2d6
%setup -q -c %{name}-%{version}
93f2d6
%patch0 -p1 -b .python3
93f2d6
93f2d6
%build
93f2d6
export WNHOME=/usr/share/wordnet-%{version}
93f2d6
python3 wn2ooo/wn2ooo.py > th_en_US_v2.dat
93f2d6
cat th_en_US_v2.dat | perl wn2ooo/th_gen_idx.pl > th_en_US_v2.idx
93f2d6
93f2d6
93f2d6
%install
93f2d6
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
93f2d6
cp -p th_en_US_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
93f2d6
93f2d6
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
93f2d6
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"
93f2d6
for lang in $en_US_aliases; do
93f2d6
        ln -s th_en_US_v2.idx "th_"$lang"_v2.idx"
93f2d6
        ln -s th_en_US_v2.dat "th_"$lang"_v2.dat"
93f2d6
done
93f2d6
popd
93f2d6
93f2d6
93f2d6
%files
93f2d6
%doc wn2ooo/LICENSE_th_gen_idx.txt wn2ooo/README.txt
93f2d6
%{_datadir}/mythes/*
93f2d6
93f2d6
%changelog
93f2d6
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.0-33
93f2d6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
93f2d6
  Related: rhbz#1991688
93f2d6
93f2d6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.0-32
93f2d6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
93f2d6
93f2d6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-31
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
93f2d6
93f2d6
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-30
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
93f2d6
93f2d6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-29
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
93f2d6
93f2d6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-28
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
93f2d6
93f2d6
* Fri Apr 05 2019 Stephan Bergmann <sbergman@redhat.com> - 3.0-27
93f2d6
- Use /usr/share instead of _datadir macro for build dependencies
93f2d6
93f2d6
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-26
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
93f2d6
93f2d6
* Mon Sep 17 2018 Parag Nemade <pnemade AT redhat DOT com> - 3.0-24
93f2d6
- Fix the License tag
93f2d6
93f2d6
* Mon Jul 30 2018 Caolán McNamara <caolanm@redhat.com> - 3.0-24
93f2d6
- Related: rhbz#1604911 convert python2 to python3, verified
93f2d6
  that output th_en_US_v2.dat and th_en_US_v2.idx are identical
93f2d6
  before and after
93f2d6
93f2d6
* Fri Jul 20 2018 Caolán McNamara <caolanm@redhat.com> - 3.0-23
93f2d6
- Resolves: rhbz#1604911 FTBFS
93f2d6
93f2d6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-22
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
93f2d6
93f2d6
* Mon Mar 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.0-21
93f2d6
- Update Python 2 dependency declarations to new packaging standards
93f2d6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
93f2d6
93f2d6
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-20
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
93f2d6
93f2d6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-19
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
93f2d6
93f2d6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-18
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93f2d6
93f2d6
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 3.0-17
93f2d6
- Add Supplements: tag for langpacks naming guidelines
93f2d6
- Clean the specfile to follow current packaging guidelines
93f2d6
93f2d6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-16
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
93f2d6
93f2d6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-15
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93f2d6
93f2d6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-14
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93f2d6
93f2d6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-13
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
93f2d6
93f2d6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-12
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
93f2d6
93f2d6
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-11
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
93f2d6
93f2d6
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 3.0-10
93f2d6
- add some aliases
93f2d6
93f2d6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-9
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
93f2d6
93f2d6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-8
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
93f2d6
93f2d6
* Wed Apr 07 2010 Caolán McNamara <caolanm@redhat.com> - 3.0-7
93f2d6
- clarify licence of tools
93f2d6
93f2d6
* Sat Apr 03 2010 Caolán McNamara <caolanm@redhat.com> - 3.0-6
93f2d6
- mythes now owns /usr/share/mythes
93f2d6
93f2d6
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-5
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
93f2d6
93f2d6
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 3.0-4
93f2d6
- extend coverage
93f2d6
93f2d6
* Wed Jun 10 2009 Caolán McNamara <caolanm@redhat.com> - 3.0-3
93f2d6
- rebuild against wordnet package
93f2d6
93f2d6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-2
93f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
93f2d6
93f2d6
* Wed Nov 28 2007 Caolán McNamara <caolanm@redhat.com> - 3.0-1
93f2d6
- initial version