package init

This commit is contained in:
lingsheng 2020-06-19 17:44:39 +08:00
parent 1e1e473293
commit 7f74a2dd4f
2 changed files with 68 additions and 0 deletions

BIN
lv_LV-1.0.0.oxt Normal file

Binary file not shown.

68
openoffice-lv.spec Normal file
View File

@ -0,0 +1,68 @@
Name: openoffice-lv
Summary: dictionaries for Latvian linguistic
Version: 1.0.0
Release: 9
Source: http://dict.dv.lv/download/lv_LV-%{version}.oxt
URL: http://dict.dv.lv/
License: LGPLv2+
BuildArch: noarch
%description
dictionaries for Latvian linguistic.
%package -n hunspell-lv
Summary: dictionaries for Latvian hunspell
Requires: hunspell
%description -n hunspell-lv
dictionaries for Latvian hunspell.
%package -n hyphen-lv
Summary: rules for Latvian hyphenation
Requires: hyphen
%description -n hyphen-lv
rules for Latvian hyphenation.
%package -n mythes-lv
Summary: Latvian thesaurus
Requires: mythes
%description -n mythes-lv
Latvian thesaurus.
%prep
%autosetup -c -p1
%build
for i in README_lv_LV.txt README_hyph_lv_LV.txt; do
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-4 -t UTF-8 $i > $i.new
touch -r $i $i.new ;mv -f $i.new $i
fi
tr -d '\r' < $i > $i.new; touch -r $i $i.new; mv -f $i.new $i
done
chmod -x *.dic
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p lv_LV.dic lv_LV.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
install -d $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
install -d $RPM_BUILD_ROOT/%{_datadir}/mythes
cp -p th_lv_LV_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
%files -n hunspell-lv
%doc README_lv_LV.txt
%license license.txt
%{_datadir}/myspell/*
%files -n hyphen-lv
%doc README_hyph_lv_LV.txt
%license license.txt
%{_datadir}/hyphen/*
%files -n mythes-lv
%doc package-description.txt
%license license.txt
%{_datadir}/mythes/*
%changelog
* Thu Apr 23 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.0.0-9
- package init