76af1d
Name: mythes-pt
76af1d
Summary: Portuguese thesaurus
76af1d
%define upstreamid 20060817
76af1d
Version: 0.%{upstreamid}
53a9c0
Release: 10%{?dist}
76af1d
Source: http://openthesaurus.caixamagica.pt/download/thes_pt_PT_v2.zip
76af1d
Group: Applications/Text
76af1d
URL: http://openthesaurus.caixamagica.pt/
76af1d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
76af1d
BuildRequires: unzip
76af1d
License: GPLv2+
76af1d
BuildArch: noarch
bc9c1b
Requires: mythes
76af1d
76af1d
%description
76af1d
Portuguese thesaurus.
76af1d
76af1d
%prep
76af1d
%setup -q -c
76af1d
76af1d
%build
4f389a
for i in README_th_pt_PT_v2.txt; do
4f389a
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
4f389a
    iconv -f ISO-8859-2 -t UTF-8 $i > $i.new
4f389a
    touch -r $i $i.new
4f389a
    mv -f $i.new $i
4f389a
  fi
4f389a
  tr -d '\r' < $i > $i.new
4f389a
  touch -r $i $i.new
4f389a
  mv -f $i.new $i
4f389a
done
76af1d
76af1d
%install
76af1d
rm -rf $RPM_BUILD_ROOT
76af1d
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
76af1d
cp -p th_pt_PT_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
76af1d
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
0a733c
pt_PT_aliases="pt_AO pt_BR"
76af1d
for lang in $it_IT_aliases; do
76af1d
        ln -s th_pt_PR_v2.dat "th_"$lang"_v2.dat"
76af1d
        ln -s th_pt_PR_v2.idx "th_"$lang"_v2.idx"
76af1d
done
76af1d
76af1d
%clean
76af1d
rm -rf $RPM_BUILD_ROOT
76af1d
76af1d
%files
76af1d
%defattr(-,root,root,-)
76af1d
%doc README_th_pt_PT_v2.txt
76af1d
%{_datadir}/mythes/*
76af1d
76af1d
%changelog
53a9c0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-10
53a9c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
53a9c0
4f16ef
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-9
4f16ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f16ef
0a733c
* Tue Apr 10 2012 Caolรกn McNamara <caolanm@redhat.com> - 0.20060817-8
0a733c
- Angola
0a733c
f3f775
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-7
f3f775
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f3f775
6bb4e4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-6
6bb4e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6bb4e4
bc9c1b
* Sun Apr 04 2010 Caolan McNamara <caolanm@redhat.com> - 0.20060817-5
bc9c1b
- mythes now owns /usr/share/mythes
bc9c1b
56d727
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-4
56d727
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
56d727
4f389a
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060817-3
4f389a
- tidy spec
4f389a
fa9e97
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060817-2
fa9e97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fa9e97
76af1d
* Mon Feb 02 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060817-1
76af1d
- initial version