From 9ee430d65c12748cf24dc16eac8401de63ed5bcc Mon Sep 17 00:00:00 2001 From: anish Date: Sat, 17 May 2014 19:13:39 +0530 Subject: [PATCH] Upstream has new sources, new build for it --- .gitignore | 1 + hunspell-bn.spec | 36 ++++++++++-------------------------- sources | 2 +- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index c6d0f61..b50ed8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ hunspell-bn-0.04.tar.bz2 /hunspell-bn-0.06.tar.bz2 +/bn_in.1.0.0.tar.gz diff --git a/hunspell-bn.spec b/hunspell-bn.spec index 96db6ce..4c7384f 100644 --- a/hunspell-bn.spec +++ b/hunspell-bn.spec @@ -1,13 +1,11 @@ -%define upstreamver 0.06 - Name: hunspell-bn Summary: Bengali hunspell dictionaries -Version: %{upstreamver} -Release: 4%{?dist} +Version: 1.0.0 +Release: 1%{?dist} Epoch: 1 Group: Applications/Text -Source: http://sourceforge.net/projects/bengalinux/files/bengali-spellcheck/%{name}-%{version}.tar.bz2 -URL: http://ankur.org.bd/wiki +Source: http://anishpatil.fedorapeople.org/bn_in.%{version}.tar.gz +URL: https://gitorious.org/hunspell_dictionaries License: GPLv2+ BuildArch: noarch @@ -17,39 +15,25 @@ Requires: hunspell Bengali hunspell dictionaries. %prep -%setup -q -n %{name}-%{upstreamver} -chmod -x bn.aff bn.dic COPYING Copyright README -chmod -x doc/README -mv bn.aff bn_BD.aff -mv bn.dic bn_BD.dic +%setup -q -c -n bn_IN -# Convert to utf-8 -for file in Copyright doc/README; do - iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ - touch -r $file $file.new && \ - mv $file.new $file -done %build %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +cp -p bn_IN/*.dic bn_IN/*.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 %files -%doc doc/README COPYING Copyright +%doc bn_IN/README bn_IN/COPYING bn_IN/Copyright %{_datadir}/myspell/* %changelog +* Sat May 17 2014 Anish Patil - 1:1.0.0-1 +- Upstream has changed and built with new tarball + * Sat Aug 03 2013 Fedora Release Engineering - 1:0.06-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 57078be..e2b41e0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -df887e6359833389953187d888315772 hunspell-bn-0.06.tar.bz2 +6c2d223ea285bd564a9e156af847b9da bn_in.1.0.0.tar.gz