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 <huanghaitao2@huawei.com> - 2.40-1
- Package init
