669030
Name: mythes-de
669030
Summary: German thesaurus
669030
%define upstreamid 20130206
669030
Version: 0.%{upstreamid}
669030
Release: 2%{?dist}
669030
Source0: http://www.openthesaurus.de/export/Deutscher-Thesaurus.oxt
669030
Source1: http://www.openthesaurus.de/export/Schweizer-Thesaurus.oxt
669030
Group: Applications/Text
669030
URL: http://www.openthesaurus.de
669030
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
669030
BuildRequires: python, perl
669030
License: LGPLv2+
669030
BuildArch: noarch
669030
Requires: mythes
669030
669030
%description
669030
German thesaurus.
669030
669030
%prep
669030
%setup -q -c
669030
rm -rf mythes-ch-%{upstreamid}
669030
mkdir mythes-ch-%{upstreamid}
669030
cd mythes-ch-%{upstreamid}
669030
unzip -q %{SOURCE1}
669030
669030
%build
669030
for i in README.txt; do
669030
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
669030
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
669030
    touch -r $i $i.new
669030
    mv -f $i.new $i
669030
  fi
669030
  tr -d '\r' < $i > $i.new
669030
  touch -r $i $i.new
669030
  mv -f $i.new $i
669030
done
669030
669030
%install
669030
rm -rf $RPM_BUILD_ROOT
669030
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
669030
cp -p th_de_DE_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
669030
cp -p mythes-ch-%{upstreamid}/th_de_DE_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_de_CH_v2.idx
669030
cp -p mythes-ch-%{upstreamid}/th_de_DE_v2.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_de_CH_v2.dat
669030
669030
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
669030
de_DE_aliases="de_AT de_BE de_LI de_LU"
669030
for lang in $de_DE_aliases; do
669030
        ln -s th_de_DE_v2.idx "th_"$lang"_v2.idx"
669030
        ln -s th_de_DE_v2.dat "th_"$lang"_v2.dat"
669030
done
669030
popd
669030
669030
%clean
669030
rm -rf $RPM_BUILD_ROOT
669030
669030
%files
669030
%defattr(-,root,root,-)
669030
%doc README.txt
669030
%{_datadir}/mythes/*
669030
669030
%changelog
669030
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20130206-2
669030
- Mass rebuild 2013-12-27
669030
669030
* Wed Feb 06 2013 Caolán McNamara <caolanm@redhat.com> - 0.20130206-1
669030
- Resolves: rhbz#905994 upgrade to latest version
669030
669030
* Wed Sep 12 2012 Caolán McNamara <caolanm@redhat.com> - 0.20120911-1
669030
- upgrade to latest version
669030
669030
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20120612-2
669030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
669030
669030
* Thu Jun 13 2012 Caolán McNamara <caolanm@redhat.com> - 0.20120612-1
669030
- upgrade to latest version
669030
669030
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20111124-3
669030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
669030
669030
* Fri Nov 25 2011 Michael Stahl <mstahl@redhat.com> - 0.20111124-2
669030
- add the de_CH variant for Swiss people and people with ß allergy
669030
669030
* Fri Nov 25 2011 Michael Stahl <mstahl@redhat.com> - 0.20111124-1
669030
- upgrade to latest version
669030
669030
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090708-5
669030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
669030
669030
* Sat Apr 03 2010 Caolan McNamara <caolanm@redhat.com> - 0.20090708-4
669030
- mythes now owns /usr/share/mythes
669030
669030
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090708-3
669030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
669030
669030
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090708-2
669030
- tidy spec
669030
669030
* Wed Jul 08 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090708-1
669030
- latest version
669030
669030
* Mon Jun 08 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090608-1
669030
- latest version
669030
669030
* Thu Apr 02 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090402-1
669030
- latest version
669030
669030
* Mon Mar 02 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090302-1
669030
- latest version
669030
669030
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090202-2
669030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
669030
669030
* Mon Feb 02 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090202-1
669030
- latest version
669030
669030
* Tue Dec 23 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081223-1
669030
- latest version
669030
669030
* Sun Nov 23 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081123-1
669030
- latest version
669030
669030
* Thu Oct 16 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081016-1
669030
- latest version
669030
669030
* Mon Sep 01 2008 Caolan McNamara <caolanm@redhat.com> - 0.20080901-1
669030
- latest version
669030
669030
* Thu Jul 31 2008 Caolan McNamara <caolanm@redhat.com> - 0.20080731-1
669030
- latest version