- update to latest release.

This commit is contained in:
pnemade 2008-09-08 09:54:40 +00:00
parent 1179286271
commit 61f2720137
3 changed files with 22 additions and 16 deletions

View File

@ -1 +1,2 @@
bn-demo.tar.gz bn-demo.tar.gz
hunspell-bn-BD-0.02.tar.bz2

View File

@ -1,10 +1,13 @@
%define upstreamid 20080201
%define upstreamver 0.02
Name: hunspell-bn Name: hunspell-bn
Summary: Bengali hunspell dictionaries Summary: Bengali hunspell dictionaries
Version: 20050726 Version: %{upstreamid}
Release: 3%{?dist} Release: 1%{?dist}
Source: http://hunspell.sourceforge.net/bn-demo.tar.gz Source: http://www.ankur.org.bd/downloads/spell_check/hunspell/%{name}-BD-%{upstreamver}.tar.bz2
Group: Applications/Text Group: Applications/Text
URL: http://hunspell.sourceforge.net URL: http://ankur.org.bd/wiki/Documentation#OpenOffice.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
@ -15,24 +18,23 @@ Requires: hunspell
Bengali hunspell dictionaries. Bengali hunspell dictionaries.
%prep %prep
%setup -q -c -n bn-demo %setup -q -n %{name}-BD-%{upstreamver}
iconv -f ISO-8859-1 -t UTF-8 bn/Copyright > bn/Copyright.utf8 chmod -x *
mv bn/Copyright.utf8 bn/Copyright iconv -f ISO-8859-1 -t UTF-8 Copyright > Copyright.utf8
mv Copyright.utf8 Copyright
%build %build
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
mv bn/bn.dic bn/bn_IN.dic cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
mv bn/bn.aff bn/bn_IN.aff
cp -p bn/*.dic bn/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
bn_IN_aliases="bn_BD" bn_BD_aliases="bn_IN"
for lang in $bn_IN_aliases; do for lang in $bn_BD_aliases; do
ln -s bn_IN.aff $lang.aff ln -s bn_BD.aff $lang.aff
ln -s bn_IN.dic $lang.dic ln -s bn_BD.dic $lang.dic
done done
popd popd
@ -41,10 +43,13 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc bn/README bn/COPYING bn/Copyright %doc README COPYING Copyright
%{_datadir}/myspell/* %{_datadir}/myspell/*
%changelog %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 * Tue Sep 02 2008 Caolán McNamara <caolanm@redhat.com> - 20050726-3
- add bn_BD alias - add bn_BD alias

View File

@ -1 +1 @@
1b0780225cae4128843cf8bb48ae78c8 bn-demo.tar.gz 87e98f516e85501245b8cf2efc6dee24 hunspell-bn-BD-0.02.tar.bz2