1 Star 0 Fork 11

李振华/hunspell-pt

forked from src-openEuler/hunspell-pt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hunspell-pt.spec 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2020-07-07 14:45 . package init
Name: hunspell-pt
Summary: Hunspell dictionaries for Portuguese
Version: 0.20130125
Release: 12
Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20130125.tar.gz
Source1: http://downloads.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/pt_BR.zip
URL: https://wiki.openoffice.org/wiki/Dictionaries
License: ((LGPLv3 or MPL) and LGPLv2) and (GPLv2 or LGPLv2 or MPLv1.1)
BuildArch: noarch
Requires: hunspell
Supplements: (hunspell and langpacks-pt)
%description
Hunspell dictionaries for Portuguese.
%prep
%autosetup -n hunspell-pt_PT-20130125 -p1
unzip -q -o %{SOURCE1}
for i in README_pt_BR.txt README_pt_PT.txt; do
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
touch -r $i $i.new
mv -f $i.new $i
fi
tr -d '\r' < $i > $i.new
touch -r $i $i.new
mv -f $i.new $i
done
%build
%install
for f in "pt_PT.dic" "pt_PT.aff" "pt_BR.dic" "pt_BR.aff"; do
install -Dp $f $RPM_BUILD_ROOT/%{_datadir}/myspell/$f
done
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
ln -s pt_PT.aff pt_AO.aff
ln -s pt_PT.dic pt_AO.dic
cd -
%files
%doc README_pt_BR.txt README_pt_PT.txt COPYING
%{_datadir}/myspell/*
%changelog
* Thu Apr 23 2020 lizhenhua <lizhenhua21@huawei.com> - 0.20130125-12
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li_zhen_hua/hunspell-pt.git
git@gitee.com:li_zhen_hua/hunspell-pt.git
li_zhen_hua
hunspell-pt
hunspell-pt
master

搜索帮助