package init
This commit is contained in:
parent
aace444921
commit
dfb6d091bb
45
hunspell-mg.spec
Normal file
45
hunspell-mg.spec
Normal file
@ -0,0 +1,45 @@
|
||||
Name: hunspell-mg
|
||||
Summary: Hunspell dictionaries for Malagasy
|
||||
Version: 0.20050109
|
||||
Release: 20
|
||||
Source: http://downloads.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/mg_MG.zip
|
||||
URL: https://wiki.openoffice.org/wiki/Dictionaries
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Supplements: (hunspell and langpacks-mg)
|
||||
|
||||
%description
|
||||
Hunspell dictionaries for Malagasy.
|
||||
|
||||
%prep
|
||||
%autosetup -c -n hunspell-mg -p1
|
||||
|
||||
%build
|
||||
if ! iconv -f utf-8 -t utf-8 -o /dev/null README_mg_MG.txt > /dev/null 2>&1; then
|
||||
iconv -f ISO-8859-1 -t UTF-8 README_mg_MG.txt > README_mg_MG.txt.new
|
||||
touch -r README_mg_MG.txt README_mg_MG.txt.new
|
||||
mv -f README_mg_MG.txt.new README_mg_MG.txt
|
||||
fi
|
||||
tr -d '\r' < README_mg_MG.txt > README_mg_MG.txt.new
|
||||
touch -r README_mg_MG.txt README_mg_MG.txt.new
|
||||
mv -f README_mg_MG.txt.new README_mg_MG.txt
|
||||
|
||||
%install
|
||||
install -Dp mg_MG.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/plt.aff
|
||||
install -Dp mg_MG.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/plt.dic
|
||||
|
||||
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
ln -s plt.aff mg.aff
|
||||
ln -s plt.dic mg.dic
|
||||
cd -
|
||||
|
||||
|
||||
%files
|
||||
%doc README_mg_MG.txt
|
||||
%{_datadir}/myspell/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 21 2020 lizhenhua <lizhenhua21@huawei.com> - 0.20050109-20
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user