From d8b5ec97ccc4cfaf8f34e306c2c62de656338feb Mon Sep 17 00:00:00 2001 From: paragn Date: Fri, 17 Jul 2009 04:21:41 +0000 Subject: [PATCH] - Use aspell source instead to pull source as BR:aspell-te - Resolves:rh#511262 buildrequires aspell-te --- .cvsignore | 1 + hunspell-te.spec | 43 +++++++++++++++++++++++++++---------------- sources | 1 + 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/.cvsignore b/.cvsignore index e69de29..e71a06c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +aspell6-te-0.01-2.tar.bz2 diff --git a/hunspell-te.spec b/hunspell-te.spec index 4bdc24e..9982712 100644 --- a/hunspell-te.spec +++ b/hunspell-te.spec @@ -1,45 +1,56 @@ +%define lang te +%define langrelease 2 +%define langversion 0.01 + Name: hunspell-te Summary: Telugu hunspell dictionaries %define upstreamid 20050929 Version: 0.%{upstreamid} -Release: 2%{?dist} -Group: Applications/Text -URL: http://aspell.net/ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -License: GPLv2 -BuildArch: noarch -BuildRequires: aspell-te, hunspell-devel - -Requires: hunspell +Release: 3%{?dist} +Group: Applications/Text +License: GPLv2+ +URL: http://aspell.net/ +Source0: ftp://ftp.gnu.org/gnu/aspell/dict/%{lang}/aspell6-%{lang}-%{langversion}-%{langrelease}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: aspell >= 12:0.60 +BuildRequires: hunspell-devel +Requires: hunspell %description Telugu hunspell dictionaries. %prep -%setup -T -q -c -n hunspell-te -cp %{_docdir}/aspell-te*/* . +%setup -q -n aspell6-%{lang}-%{langversion}-%{langrelease} +prezip-bin -d < te.cwl > te.txt %build export LANG=te_IN.utf8 -aspell --master=te dump master > telugu.words -wordlist2hunspell telugu.words te_IN +wordlist2hunspell te.txt te_IN %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell -%clean -rm -rf $RPM_BUILD_ROOT -%files +%clean +rm -rf %{buildroot} + +%files %defattr(-,root,root,-) %doc COPYING Copyright %{_datadir}/myspell/* %changelog +* Fri Jul 17 2009 Parag - 0.20050929-3 +- Use aspell source instead to pull source as BR:aspell-te +- Resolves:rh#511262 buildrequires aspell-te + * Tue Feb 24 2009 Fedora Release Engineering - 0.20050929-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Sep 12 2008 Caolan McNamara - 0.20050929-1 - initial version + + diff --git a/sources b/sources index e69de29..f94f996 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +645f7f7204520552cddbe1c9ae64df2a aspell6-te-0.01-2.tar.bz2