diff --git a/hunspell-fo.spec b/hunspell-fo.spec new file mode 100644 index 0000000..01539a6 --- /dev/null +++ b/hunspell-fo.spec @@ -0,0 +1,39 @@ +Name: hunspell-fo +Summary: Faroese dictionaries for hunspell +Version: 0.4.2 +Release: 10 +Source: http://fo.speling.org/filer/myspell-fo-%{version}.tar.bz2 +URL: http://fo.speling.org/ +License: GPLv2+ +BuildArch: noarch +Requires: hunspell +Supplements: (hunspell and langpacks-fo) + +%description +Faroese dictionaries for hunspell. + +%prep +%autosetup -n myspell-fo-%{version} -p1 + +%build +for i in Copyright contributors 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 *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell + + +%files +%doc Copyright COPYING README contributors +%{_datadir}/myspell/* + +%changelog +* Tue Apr 14 2020 Shuaishuai Song - 0.4.2-10 +- package init diff --git a/myspell-fo-0.4.2.tar.bz2 b/myspell-fo-0.4.2.tar.bz2 new file mode 100644 index 0000000..d871a51 Binary files /dev/null and b/myspell-fo-0.4.2.tar.bz2 differ