!1 package init

Merge pull request !1 from wang_yue111/master
This commit is contained in:
openeuler-ci-bot 2020-07-15 23:23:19 +08:00 committed by Gitee
commit a179306c0e
3 changed files with 45 additions and 0 deletions

BIN
hyph_sv_se.oxt Normal file

Binary file not shown.

41
hyphen-sv.spec Normal file
View File

@ -0,0 +1,41 @@
Name: hyphen-sv
Summary: The hyphenation rules for Swedish
Version: 1.00.1
Release: 20
Source: https://downloads.sourceforge.net/project/aoo-extensions/1966/4/hyph_sv_se.oxt
URL: http://extensions.services.openoffice.org/node/1968
License: LGPLv2+ or GPLv2+
BuildArch: noarch
Requires: hyphen
Supplements: (hyphen and langpacks-sv)
%description
The hyphenation rules for Swedish.
%prep
%autosetup -c -n hyphen-sv -p1
%build
chmod -x *
for i in README_sv_SE.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 hyph_sv_SE.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
cd $RPM_BUILD_ROOT/%{_datadir}/hyphen
ln -s hyph_sv_SE.dic hyph_sv_FI.dic
%files
%doc README_sv_SE.txt
%{_datadir}/hyphen/*
%changelog
* Thu Apr 16 2020 wangyue<wangyue92@huawei.com> - 1.00.1-20
- Package init

4
hyphen-sv.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA