!2 package init

Merge pull request !2 from jeff200902/master
This commit is contained in:
openeuler-ci-bot 2020-07-16 16:59:25 +08:00 committed by Gitee
commit fd326c7df8
2 changed files with 41 additions and 0 deletions

41
hunspell-tet.spec Normal file
View File

@ -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 <gaojianxing@huawei.com> - 0.20050108-20
- Package init

BIN
tet_ID.zip Normal file

Binary file not shown.