diff --git a/aspell-wa-0.4.17.tar.bz2 b/aspell-wa-0.4.17.tar.bz2 new file mode 100644 index 0000000..0af7900 Binary files /dev/null and b/aspell-wa-0.4.17.tar.bz2 differ diff --git a/hunspell-wa-0.4.15-buildfix.patch b/hunspell-wa-0.4.15-buildfix.patch new file mode 100644 index 0000000..4238535 --- /dev/null +++ b/hunspell-wa-0.4.15-buildfix.patch @@ -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 diff --git a/hunspell-wa.spec b/hunspell-wa.spec new file mode 100644 index 0000000..1283db1 --- /dev/null +++ b/hunspell-wa.spec @@ -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 - 0.4.17-11 +- Package init