e368c3
Name: mythes-nl
e368c3
Summary: Dutch thesaurus
55fd9f
%define upstreamid 20090731
e368c3
Version: 0.%{upstreamid}
55fd9f
Release: 1%{?dist}
55fd9f
Source: http://data.opentaal.org/opentaalbank/thesaurus/download/thes_nl.oxt
e368c3
Group: Applications/Text
55fd9f
URL: http://data.opentaal.org/opentaalbank/thesaurus
e368c3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
55fd9f
License: BSD or CC-BY
e368c3
BuildArch: noarch
e368c3
e368c3
%description
e368c3
Dutch thesaurus.
e368c3
e368c3
%prep
e368c3
%setup -q -c
e368c3
e368c3
%build
55fd9f
for i in README_th_nl.txt; do
323ac8
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
323ac8
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
323ac8
    touch -r $i $i.new
323ac8
    mv -f $i.new $i
323ac8
  fi
323ac8
  tr -d '\r' < $i > $i.new
323ac8
  touch -r $i $i.new
323ac8
  mv -f $i.new $i
323ac8
done
e368c3
e368c3
%install
e368c3
rm -rf $RPM_BUILD_ROOT
e368c3
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
e368c3
cp -p th_nl_v2.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_nl_NL_v2.dat
e368c3
cp -p th_nl_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_nl_NL_v2.idx
e368c3
e368c3
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
557914
nl_NL_aliases="nl_AW nl_BE"
e368c3
for lang in $nl_NL_aliases; do
e368c3
        ln -s th_nl_NL_v2.dat "th_"$lang"_v2.dat"
e368c3
        ln -s th_nl_NL_v2.idx "th_"$lang"_v2.idx"
e368c3
done
e368c3
e368c3
%clean
e368c3
rm -rf $RPM_BUILD_ROOT
e368c3
e368c3
%files
e368c3
%defattr(-,root,root,-)
55fd9f
%doc README_th_nl.txt
e368c3
%dir %{_datadir}/mythes
e368c3
%{_datadir}/mythes/*
e368c3
e368c3
%changelog
55fd9f
* Fri Jan 22 2010 Caolan McNamara <caolanm@redhat.com> - 0.20090731-1
55fd9f
- latest version
55fd9f
caf945
* Tue Jan 05 2010 Caolan McNamara <caolanm@redhat.com> - 0.20090708-4
caf945
- Wrong license
caf945
b64447
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090708-3
b64447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b64447
323ac8
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090708-2
323ac8
- tidy spec
323ac8
797f92
* Wed Jul 08 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090708-1
797f92
- latest version
797f92
557914
* Fri Jun 12 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090608-2
557914
- extend coverage
557914
59e3a8
* Mon Jun 08 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090608-1
59e3a8
- latest version
59e3a8
e368c3
* Wed Mar 25 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090325-1
e368c3
- initial version