Name: mythes-pt Summary: Portuguese thesaurus %define upstreamid 20060817 Version: 0.%{upstreamid}.1 Release: %mkrel 11 Source: http://openthesaurus.caixamagica.pt/download/thes_pt_PT_v2.zip Group: Text tools URL: http://openthesaurus.caixamagica.pt/ BuildRequires: unzip License: GPLv2+ BuildArch: noarch Requires: mythes Requires: locales-pt %description Portuguese thesaurus. %prep %setup -q -c %build for i in README_th_pt_PT_v2.txt; do if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then iconv -f ISO-8859-2 -t UTF-8 $i > $i.new touch -r $i $i.new mv -f $i.new $i fi tr -d '\r' < $i > $i.new touch -r $i $i.new mv -f $i.new $i done %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p th_pt_PT_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/ pt_PT_aliases="pt_BR" for lang in $it_IT_aliases; do ln -s th_pt_PR_v2.dat "th_"$lang"_v2.dat" ln -s th_pt_PR_v2.idx "th_"$lang"_v2.idx" done %files %doc README_th_pt_PT_v2.txt %{_datadir}/mythes/* %changelog * Wed Oct 15 2014 umeabot <umeabot> 0.20060817.1-11.mga5 + Revision: 741697 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.20060817.1-10.mga5 + Revision: 682752 - Mageia 5 Mass Rebuild * Sat Oct 19 2013 umeabot <umeabot> 0.20060817.1-9.mga4 + Revision: 522910 - Mageia 4 Mass Rebuild * Fri Mar 29 2013 tv <tv> 0.20060817.1-8.mga3 + Revision: 406115 - requires locales-mythes-pt (mga#9540) * Sat Jan 12 2013 umeabot <umeabot> 0.20060817.1-7.mga3 + Revision: 360634 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Mar 12 2011 dmorgan <dmorgan> 0.20060817.1-6.mga1 + Revision: 68474 - imported package mythes-pt * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Apr 04 2010 Caolan McNamara <caolanm@redhat.com> - 0.20060817-5 - mythes now owns /usr/share/mythes * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060817-3 - tidy spec * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 02 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060817-1 - initial version