openoffice-lv/openoffice-lv.spec
wu-leilei 57c8caef5e update package
(cherry picked from commit d11babaa9f5b74574395569f2adf35768ae2e4fd)
2022-10-21 18:22:58 +08:00

72 lines
1.9 KiB
RPMSpec

Name: openoffice-lv
Summary: dictionaries for Latvian linguistic
Version: 1.4.0
Release: 1
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
* Fri May 20 2022 wulei <wulei80@h-partners.com> - 1.4.0-1
- Update package
* Thu Apr 23 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.0.0-9
- package init