- update to latest release.
This commit is contained in:
parent
1179286271
commit
61f2720137
@ -1 +1,2 @@
|
||||
bn-demo.tar.gz
|
||||
hunspell-bn-BD-0.02.tar.bz2
|
||||
|
@ -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 <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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user