hunspell-bg/hunspell-bg.spec
2020-07-04 10:58:50 +08:00

47 lines
1.3 KiB
RPMSpec

Name: hunspell-bg
Version: 4.3
Release: 16
Summary: Provides Bulgarian hunspell dictionaries and affices
License: GPLv2+ or LGPLv2+ or MPLv1.1
URL: http://bgoffice.sourceforge.net/
Source: http://downloads.sourceforge.net/bgoffice/OOo-spell-bg-%{version}.zip
BuildArch: noarch
Requires: hunspell
BuildRequires: dos2unix
Supplements: (hunspell and langpacks-bg)
%description
This package provides Bulgarian hunspell dictionaries and affices
%prep
%autosetup -n OOo-spell-bg-%{version} -p1
for i in GPL-2.0.txt MPL-1.1.txt ChangeLog Copyright LGPL-2.1.txt; do
dos2unix $i
done
iconv -f ISO-8859-2 -t UTF-8 README.bulgarian > README.bulgarian.bak
iconv -f WINDOWS-1251 -t UTF-8 bg_BG.dic > bg_BG.dic.bak
iconv -f WINDOWS-1251 -t UTF-8 bg_BG.aff > bg_BG.aff.bak
for i in README.bulgarian bg_BG.dic bg_BG.aff;do
dos2unix $i.bak
mv -f $i.bak $i
done
sed -i 's\SET microsoft-cp1251\SET UTF-8\g' bg_BG.aff
%build
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
install -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
%files
%doc ChangeLog Copyright README.bulgarian
%license GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt
%{_datadir}/myspell/*
%changelog
* Thu Apr 16 2020 sunguoshuai <sunguoshuai@huawei.com> - 4.3-16
- Package init