7 Star 0 Fork 3

src-openEuler/hunspell-bg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hunspell-bg.spec 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2020-07-04 10:58 . package init
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/hunspell-bg.git
[email protected]:src-openeuler/hunspell-bg.git
src-openeuler
hunspell-bg
hunspell-bg
master

搜索帮助