diff --git a/hunspell-tet.spec b/hunspell-tet.spec new file mode 100644 index 0000000..191607d --- /dev/null +++ b/hunspell-tet.spec @@ -0,0 +1,41 @@ +Name: hunspell-tet +Version: 0.20050108 +Release: 20 +Summary: Tetum hunspell dictionaries for hunspell used in OpenOffice +License: GPLv2+ +URL: https://sourceforge.net/projects/openofficeorg.mirror/files/contrib/dictionaries/ +Source: http://www.mirrorservice.org/sites/download.openoffice.org/contrib/dictionaries/tet_ID.zip +Requires: hunspell +BuildArch: noarch +Buildrequires: dos2unix +Supplements: (hunspell and langpacks-tet) + +%description +Tetum hunspell dictionaries for hunspell used in OpenOffice. + +%prep +%autosetup -c -n hunspell-tet-%{version} -p1 -S git + +%build +if ! iconv -f utf-8 -t utf-8 -o /dev/null README_tet_ID.txt > /dev/null 2>&1; then + iconv -f ISO-8859-1 -t UTF-8 README_tet_ID.txt > README_tet_ID.txt.new + touch -r README_tet_ID.txt README_tet_ID.txt.new + mv -f README_tet_ID.txt.new README_tet_ID.txt +fi +dos2unix README_tet_ID.txt + +%install +install -d $RPM_BUILD_ROOT/%{_datadir}/myspell +install -p tet_ID.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ +cd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +ln -s tet_ID.aff tet_TL.aff +ln -s tet_ID.dic tet_TL.dic +cd - + +%files +%doc README_tet_ID.txt +%{_datadir}/myspell/* + +%changelog +* Thu Apr 30 2020 Jeffery.Gao - 0.20050108-20 +- Package init diff --git a/tet_ID.zip b/tet_ID.zip new file mode 100644 index 0000000..cf73fde Binary files /dev/null and b/tet_ID.zip differ