2078a2
Name: mythes-it
2078a2
Summary: Italian thesaurus
2078a2
Version: 2.0.9l
ad0803
Release: 10%{?dist}
2078a2
Source: http://downloads.sourceforge.net/sourceforge/linguistico/thesaurus2_it_02_09_l_2008_11_29.zip
2078a2
Group: Applications/Text
2078a2
URL: http://linguistico.sourceforge.net/pages/thesaurus_italiano.html
2078a2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2078a2
License: AGPLv3
2078a2
BuildArch: noarch
2078a2
Requires: mythes
2078a2
2078a2
%description
2078a2
Italian thesaurus.
2078a2
2078a2
%prep
2078a2
%setup -q -c
2078a2
2078a2
%build
2078a2
for i in th_it_IT_README th_it_IT_ChangeLog th_it_IT_AUTHORS; do
2078a2
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
2078a2
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
2078a2
    touch -r $i $i.new
2078a2
    mv -f $i.new $i
2078a2
  fi
2078a2
  tr -d '\r' < $i > $i.new
2078a2
  touch -r $i $i.new
2078a2
  mv -f $i.new $i
2078a2
done
2078a2
2078a2
2078a2
%install
2078a2
rm -rf $RPM_BUILD_ROOT
2078a2
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
2078a2
cp -p th_it_IT.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.dat
2078a2
cp -p th_it_IT.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.idx
2078a2
2078a2
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
2078a2
it_IT_aliases="it_CH"
2078a2
for lang in $it_IT_aliases; do
2078a2
        ln -s th_it_IT_v2.dat "th_"$lang"_v2.dat"
2078a2
        ln -s th_it_IT_v2.idx "th_"$lang"_v2.idx"
2078a2
done
2078a2
2078a2
%clean
2078a2
rm -rf $RPM_BUILD_ROOT
2078a2
2078a2
%files
2078a2
%defattr(-,root,root,-)
2078a2
%doc th_it_IT_README th_it_IT_ChangeLog th_it_IT_COPYING th_it_IT_INSTALL th_it_IT_copyright_licenza.txt th_it_IT_lettera_in_inglese.txt  th_it_IT_AUTHORS
2078a2
%{_datadir}/mythes/*
2078a2
2078a2
%changelog
ad0803
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.9l-10
ad0803
- Mass rebuild 2013-12-27
ad0803
2078a2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-9
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2078a2
2078a2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-8
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2078a2
2078a2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-7
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2078a2
2078a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-6
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2078a2
2078a2
* Sun Apr 04 2010 Caolan McNamara <caolanm@redhat.com> - 2.0.9l-5
2078a2
- mythes now owns /usr/share/mythes
2078a2
2078a2
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-4
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2078a2
2078a2
* Fri Jul 10 2009 Caolan McNamara <caolanm@redhat.com> - 2.0.9l-3
2078a2
- tidy spec
2078a2
2078a2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9l-2
2078a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2078a2
2078a2
* Fri Jan 16 2009 Caolan McNamara <caolanm@redhat.com> - 2.0.9l-1
2078a2
- initial version