diff --git a/hunspell-sv.spec b/hunspell-sv.spec new file mode 100644 index 0000000..7904ddc --- /dev/null +++ b/hunspell-sv.spec @@ -0,0 +1,32 @@ +Name: hunspell-sv +Version: 2.40 +Release: 1 +Summary: Hunspell dictionaries for Swedish +License: LGPLv3 +URL: https://aur.archlinux.org/packages/hunspell-sv/ +Source: https://extensions.libreoffice.org/assets/downloads/z/ooo-swedish-dict-2-40.oxt +BuildArch: noarch +Requires: hunspell +Supplements: (hunspell and langpacks-sv) + +%description +Hunspell dictionaries for Swedish. + +%prep +%autosetup -c -n hunspell-sv -p1 + +%build +sed -i 's/\r$//' LICENSE_sv_SE.txt +sed -i 's/\r$//' LICENSE_en_US.txt + +%install +install -d $RPM_BUILD_ROOT/%{_datadir}/myspell +cp -p dictionaries/*.dic dictionaries/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell + +%files +%doc LICENSE_sv_SE.txt LICENSE_en_US.txt +%{_datadir}/myspell/* + +%changelog +* Mon Apr 20 2020 huanghaitao - 2.40-1 +- Package init diff --git a/ooo-swedish-dict-2-40.oxt b/ooo-swedish-dict-2-40.oxt new file mode 100644 index 0000000..095a7d6 Binary files /dev/null and b/ooo-swedish-dict-2-40.oxt differ