代码拉取完成,页面将自动刷新
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 <[email protected]> - 4.3-16
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。