hunspell-it/hunspell-it.spec

53 lines
1.4 KiB
RPMSpec

%define pkgver %(echo %version|tr . _)
Name: hunspell-it
Version: 2.4
Release: 2mamba
Summary: Italian hunspell dictionaries
Group: Applications/Text
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://linguistico.sourceforge.net
Source: http://downloads.sourceforge.net/sourceforge/linguistico/italiano_%{pkgver}_2007_09_01.zip
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: hunspell
%description
Italian hunspell dictionaries.
%prep
%setup -q -c -n hunspell-it
%build
chmod -x *
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_datadir}/myspell
cp -p *.dic *.aff %{buildroot}%{_datadir}/myspell
pushd %{buildroot}%{_datadir}/myspell
it_IT_aliases="it_CH"
for lang in $it_IT_aliases; do
ln -s it_IT.aff $lang.aff
ln -s it_IT.dic $lang.dic
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_datadir}/myspell/it_IT.aff
%{_datadir}/myspell/it_IT.dic
%{_datadir}/myspell/it_CH.aff
%{_datadir}/myspell/it_CH.dic
%changelog
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 2.4-2mamba
- automatic rebuild by autodist
* Thu Jul 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-1mamba
- package created by autospec