package init
This commit is contained in:
parent
cec92ae266
commit
8ad31d5760
40
hunspell-ku.spec
Normal file
40
hunspell-ku.spec
Normal file
@ -0,0 +1,40 @@
|
||||
Name: hunspell-ku
|
||||
Summary: Kurdish hunspell dictionaries for hunspell used in OpenOffice
|
||||
Version: 0.21
|
||||
Release: 20
|
||||
Source0: http://downloads.sourceforge.net/myspellkurdish/ku_TR-021.zip
|
||||
URL: https://sourceforge.net/projects/myspellkurdish/
|
||||
License: GPLv3 or LGPLv3 or MPLv1.1
|
||||
BuildArch: noarch
|
||||
Requires: hunspell
|
||||
Supplements: (hunspell and langpacks-ku)
|
||||
|
||||
%description
|
||||
Kurdish hunspell dictionaries for hunspell used in OpenOffice.
|
||||
|
||||
%prep
|
||||
%autosetup -n ku_TR -p1 -S git
|
||||
|
||||
%build
|
||||
if ! iconv -f utf-8 -t utf-8 -o /dev/null README_ku_TR.txt > /dev/null 2>&1; then
|
||||
iconv -f ISO-8859-1 -t UTF-8 README_ku_TR.txt > README_ku_TR.txt.new
|
||||
touch -r README_ku_TR.txt README_ku_TR.txt.new;mv -f README_ku_TR.txt.new README_ku_TR.txt
|
||||
fi
|
||||
tr -d '\r' < README_ku_TR.txt > README_ku_TR.txt.new;touch -r README_ku_TR.txt README_ku_TR.txt.new
|
||||
mv -f README_ku_TR.txt.new README_ku_TR.txt
|
||||
|
||||
%install
|
||||
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
install -p ku_TR.* $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
ln -s ku_TR.aff ku_SY.aff
|
||||
ln -s ku_TR.dic ku_SY.dic
|
||||
cd -
|
||||
|
||||
%files
|
||||
%doc README_ku_TR.txt gpl-3.0.txt lgpl-3.0.txt MPL-1.1.txt
|
||||
%{_datadir}/myspell/*
|
||||
|
||||
%changelog
|
||||
* Sat Apr 18 2020 Jeffery.Gao <gaojianxing@huawei.com> - 0.21-20
|
||||
- Package init
|
||||
BIN
ku_TR-021.zip
Normal file
BIN
ku_TR-021.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user