diff --git a/hyph_sv_se.oxt b/hyph_sv_se.oxt new file mode 100644 index 0000000..a7a4dee Binary files /dev/null and b/hyph_sv_se.oxt differ diff --git a/hyphen-sv.spec b/hyphen-sv.spec new file mode 100644 index 0000000..3f459b1 --- /dev/null +++ b/hyphen-sv.spec @@ -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 - 1.00.1-20 +- Package init diff --git a/hyphen-sv.yaml b/hyphen-sv.yaml new file mode 100644 index 0000000..ab5c2ca --- /dev/null +++ b/hyphen-sv.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA