49 lines
1.1 KiB
RPMSpec
49 lines
1.1 KiB
RPMSpec
Name: hunspell-sw
|
|
Summary: Swahili hunspell dictionaries
|
|
%define upstreamid 20050819
|
|
Version: 0.%{upstreamid}
|
|
Release: 1%{?dist}
|
|
Group: Applications/Text
|
|
Source: http://www.it46.se/downloads/openoffice/dictionary/dictionary_myspell_sw_TZ_1.1.tar.gz
|
|
URL: http://www.it46.se
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
License: LGPLv2+
|
|
BuildArch: noarch
|
|
BuildRequires: hunspell-devel
|
|
|
|
Requires: hunspell
|
|
|
|
%description
|
|
Swahili hunspell dictionaries.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%build
|
|
iconv -f ISO-8859-1 -t UTF-8 README_sw_TZ.txt > README_sw_TZ.txt.new
|
|
mv -f README_sw_TZ.txt.new README_sw_TZ.txt
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
|
sw_TZ_aliases="sw_KE"
|
|
for lang in $sw_TZ_aliases; do
|
|
ln -s sw_TZ.aff $lang.aff
|
|
ln -s sw_TZ.dic $lang.dic
|
|
done
|
|
popd
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README_sw_TZ.txt
|
|
%{_datadir}/myspell/*
|
|
|
|
%changelog
|
|
* Sun Nov 02 2008 Caolan McNamara <caolanm@redhat.com> - 0.20050819-1
|
|
- initial version
|