From 61f2720137811af944188978730b08ea512d2e49 Mon Sep 17 00:00:00 2001 From: pnemade Date: Mon, 8 Sep 2008 09:54:40 +0000 Subject: [PATCH] - update to latest release. --- .cvsignore | 1 + hunspell-bn.spec | 35 ++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/.cvsignore b/.cvsignore index 278277a..054fc28 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ bn-demo.tar.gz +hunspell-bn-BD-0.02.tar.bz2 diff --git a/hunspell-bn.spec b/hunspell-bn.spec index 3c7f117..75114a7 100644 --- a/hunspell-bn.spec +++ b/hunspell-bn.spec @@ -1,10 +1,13 @@ +%define upstreamid 20080201 +%define upstreamver 0.02 + Name: hunspell-bn Summary: Bengali hunspell dictionaries -Version: 20050726 -Release: 3%{?dist} -Source: http://hunspell.sourceforge.net/bn-demo.tar.gz +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://hunspell.sourceforge.net +URL: http://ankur.org.bd/wiki/Documentation#OpenOffice.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: GPLv2+ BuildArch: noarch @@ -15,24 +18,23 @@ Requires: hunspell Bengali hunspell dictionaries. %prep -%setup -q -c -n bn-demo -iconv -f ISO-8859-1 -t UTF-8 bn/Copyright > bn/Copyright.utf8 -mv bn/Copyright.utf8 bn/Copyright +%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 -mv bn/bn.dic bn/bn_IN.dic -mv bn/bn.aff bn/bn_IN.aff -cp -p bn/*.dic bn/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ -bn_IN_aliases="bn_BD" -for lang in $bn_IN_aliases; do - ln -s bn_IN.aff $lang.aff - ln -s bn_IN.dic $lang.dic +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 @@ -41,10 +43,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc bn/README bn/COPYING bn/Copyright +%doc README COPYING Copyright %{_datadir}/myspell/* %changelog +* Mon Sep 08 2008 Parag - 20080201-1 +- update to latest release. + * Tue Sep 02 2008 Caolán McNamara - 20050726-3 - add bn_BD alias diff --git a/sources b/sources index f124bbd..f8336c5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1b0780225cae4128843cf8bb48ae78c8 bn-demo.tar.gz +87e98f516e85501245b8cf2efc6dee24 hunspell-bn-BD-0.02.tar.bz2