package init

This commit is contained in:
root 2020-07-06 10:51:42 +08:00
parent f14631b5b9
commit 30eb4f08fb
3 changed files with 63 additions and 0 deletions

BIN
aspell-wa-0.4.17.tar.bz2 Normal file

Binary file not shown.

View File

@ -0,0 +1,20 @@
--- aspell-wa-0.4.15.orig/Makefile 2008-09-20 16:46:39.000000000 +0100
+++ aspell-wa-0.4.15/Makefile 2008-09-20 17:00:02.000000000 +0100
@@ -27,7 +27,7 @@
buildhash dj.lst walon.aff dj.hash
walon_lst:
- if [ ! -r walon.lst -o -n "`find mots* -type f -newer walon.lst`" ] ; \
+ if [ ! -r walon.lst -o -n "`find mots* -type f -newer walon.lst > /dev/null 2>&1`" ] ; \
then \
grep -v '^#' mots*/* ${EXTRA} |cut -d: -f2- |cut -d' ' -f1|\
tr ' ' '\n'|(LC_ALL=C sort -u) | grep -v '^$$' > walon.lst ; \
@@ -119,7 +119,7 @@
aspell --local-data-dir=. --lang=wa@ni create master ./wa@ni.rws < wa.lst
myspell: walon_lst
- wc -l walon.lst > wa.dic
+ cat walon.lst | wc -l > wa.dic
cat walon.lst >> wa.dic
# myspell is unable to handle comments and tabs :-(
grep -v '^#' wa_affix.dat | sed 's/ / /g' > wa.aff

43
hunspell-wa.spec Normal file
View File

@ -0,0 +1,43 @@
Name: hunspell-wa
Summary: The hunspell dictionaries for Walloon
Version: 0.4.17
Release: 11
Source0: http://chanae.walon.org/walon/aspell-wa-%{version}.tar.bz2
URL: http://chanae.walon.org/walon/aspell.php
License: LGPLv2+
BuildArch: noarch
Patch0: hunspell-wa-0.4.15-buildfix.patch
Requires: hunspell
Supplements: (hunspell and langpacks-wa)
%description
The hunspell dictionaries for Walloon.
%prep
%autosetup -n aspell-wa-%{version} -p1
%build
make myspell
for i in TODO README; do
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
touch -r $i $i.new && mv -f $i.new $i
fi
tr -d '\r' < $i > $i.new
touch -r $i $i.new && mv -f $i.new $i
done
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p wa.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/wa_BE.dic
cp -p wa.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/wa_BE.aff
%files
%doc README LGPL ChangeLog TODO
%{_datadir}/myspell/*
%changelog
* Thu Apr 16 2020 wangyue<wangyue92@huawei.com> - 0.4.17-11
- Package init