41 lines
1.0 KiB
RPMSpec
41 lines
1.0 KiB
RPMSpec
Name: hyphen-sk
|
|
Summary: Rules for slovak hyphenation
|
|
Version: 0.20031227
|
|
Release: 21
|
|
Source: http://ftp5.gwdg.de/pub/openoffice/contrib/dictionaries/hyph_sk_SK.zip
|
|
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
|
|
License: GPL+
|
|
BuildArch: noarch
|
|
Requires: hyphen
|
|
Supplements: (hyphen and langpacks-sk)
|
|
|
|
%description
|
|
Rules for slovak hyphenation.
|
|
|
|
%prep
|
|
%autosetup -c
|
|
|
|
%build
|
|
chmod -x *
|
|
for i in README_hyph_sk_SK.txt; do
|
|
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
|
|
iconv -f ISO-8859-1 -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
|
|
|
|
%install
|
|
install -d $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|
cp -p *.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|
|
|
%files
|
|
%doc README_hyph_sk_SK.txt
|
|
%{_datadir}/hyphen/*
|
|
|
|
%changelog
|
|
* Mon May 6 2024 caodongxia <caodongxia@h-partners.com> - 0.20031227-21
|
|
- Correcting the changelog
|
|
|
|
* Wed Apr 15 2020 wutao <wutao61@huawei.com> - 0.20031227-20
|
|
- Package init
|