hunspell-bn/hunspell-bn.spec
2008-09-08 09:54:40 +00:00

61 lines
1.4 KiB
RPMSpec

%define upstreamid 20080201
%define upstreamver 0.02
Name: hunspell-bn
Summary: Bengali hunspell dictionaries
Version: %{upstreamid}
Release: 1%{?dist}
Source: http://www.ankur.org.bd/downloads/spell_check/hunspell/%{name}-BD-%{upstreamver}.tar.bz2
Group: Applications/Text
URL: http://ankur.org.bd/wiki/Documentation#OpenOffice.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+
BuildArch: noarch
Requires: hunspell
%description
Bengali hunspell dictionaries.
%prep
%setup -q -n %{name}-BD-%{upstreamver}
chmod -x *
iconv -f ISO-8859-1 -t UTF-8 Copyright > Copyright.utf8
mv Copyright.utf8 Copyright
%build
%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/
bn_BD_aliases="bn_IN"
for lang in $bn_BD_aliases; do
ln -s bn_BD.aff $lang.aff
ln -s bn_BD.dic $lang.dic
done
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README COPYING Copyright
%{_datadir}/myspell/*
%changelog
* Mon Sep 08 2008 Parag <pnemade@redhat.com> - 20080201-1
- update to latest release.
* Tue Sep 02 2008 Caolán McNamara <caolanm@redhat.com> - 20050726-3
- add bn_BD alias
* Sun Jan 06 2008 Parag <pnemade@redhat.com> - 20050726-2
- Added Copyright and corrected changelog version.
* Thu Jan 03 2008 Parag <pnemade@redhat.com> - 20050726-1
- Initial Fedora release