Upstream has new sources, new build for it

This commit is contained in:
anish 2014-05-17 19:13:39 +05:30
parent 4f4ecbba26
commit 9ee430d65c
3 changed files with 12 additions and 27 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
hunspell-bn-0.04.tar.bz2
/hunspell-bn-0.06.tar.bz2
/bn_in.1.0.0.tar.gz

View File

@ -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<apatil@redhat.com> - 1:1.0.0-1
- Upstream has changed and built with new tarball
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.06-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
df887e6359833389953187d888315772 hunspell-bn-0.06.tar.bz2
6c2d223ea285bd564a9e156af847b9da bn_in.1.0.0.tar.gz