hunspell-ti/hunspell-ti.spec

51 lines
1.2 KiB
RPMSpec

Name: hunspell-ti
Summary: Tigrigna hunspell dictionaries
%define upstreamid 20090704
Version: 0.%{upstreamid}
Release: 2%{?dist}
Source: http://www.cs.ru.nl/~biniam/geez/dict/ti_ER.zip
Group: Applications/Text
URL: http://www.cs.ru.nl/~biniam/geez/index.php
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPL+
BuildArch: noarch
Requires: hunspell
%description
Tigrigna hunspell dictionaries.
%prep
%setup -q -n ti_ER
%build
tr -d '\r' < README.txt > README.txt.new
touch -r README.txt README.txt.new
mv -f README.txt.new README.txt
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p ti_ER.* $RPM_BUILD_ROOT/%{_datadir}/myspell/
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
ti_ER_aliases="ti_ET"
for lang in $ti_ER_aliases; do
ln -s ti_ER.aff $lang.aff
ln -s ti_ER.dic $lang.dic
done
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.txt
%{_datadir}/myspell/*
%changelog
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090704-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon Jul 06 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090704-1
- initial version