Package init
This commit is contained in:
parent
3c0e033cd1
commit
960c130d2e
BIN
hyph_sv_se.oxt
Normal file
BIN
hyph_sv_se.oxt
Normal file
Binary file not shown.
41
hyphen-sv.spec
Normal file
41
hyphen-sv.spec
Normal 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
4
hyphen-sv.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
Loading…
x
Reference in New Issue
Block a user