commit
fd326c7df8
41
hunspell-tet.spec
Normal file
41
hunspell-tet.spec
Normal 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
BIN
tet_ID.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user