43 lines
949 B
RPMSpec
43 lines
949 B
RPMSpec
|
Name: hunspell-mt
|
||
|
Summary: Maltese hunspell dictionaries
|
||
|
%define upstreamid 20020708
|
||
|
Version: 0.%{upstreamid}
|
||
|
Release: 1%{?dist}
|
||
|
Group: Applications/Text
|
||
|
Source: http://linux.org.mt/downloads/spellcheck-mt-0.3.tar.gz
|
||
|
URL: http://linux.org.mt/projects/spellcheck
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
License: LGPLv2+
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: hunspell-devel
|
||
|
|
||
|
Requires: hunspell
|
||
|
|
||
|
%description
|
||
|
Maltese hunspell dictionaries.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -c
|
||
|
|
||
|
%build
|
||
|
export LANG=mt_MT.utf8
|
||
|
iconv -f ISO-8859-3 -t UTF-8 words.iso8859-3 > maltese.words
|
||
|
wordlist2hunspell maltese.words mt_MT
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||
|
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc readme.txt
|
||
|
%{_datadir}/myspell/*
|
||
|
|
||
|
%changelog
|
||
|
* Mon Oct 13 2008 Caolan McNamara <caolanm@redhat.com> - 0.20020708-1
|
||
|
- initial version
|