hyphen-fo/hyphen-fo.spec

44 lines
1.3 KiB
RPMSpec

Name: hyphen-fo
Version: 0.20040420
Release: 16
Summary: Faroese dictionary for spell checking
License: GPL+
URL: http://fo.speling.org/
Source: http://fo.speling.org/filer/hyph_fo_FO-20040420a.zip
Requires: hyphen
BuildRequires: git
Supplements: (hyphen and langpacks-fo)
BuildArch: noarch
%description
Faroese dictionary for spell checking.
%prep
%autosetup -c -p1 -S git
%build
if ! iconv -f utf-8 -t utf-8 -o /dev/null README_hyph_fo_FO.txt > /dev/null 2>&1; then
iconv -f ISO-8859-1 -t UTF-8 README_hyph_fo_FO.txt > README_hyph_fo_FO.txt.new
touch -r README_hyph_fo_FO.txt README_hyph_fo_FO.txt.new
mv -f README_hyph_fo_FO.txt.new README_hyph_fo_FO.txt
fi
tr -d '\r' < README_hyph_fo_FO.txt > README_hyph_fo_FO.txt.new
touch -r README_hyph_fo_FO.txt README_hyph_fo_FO.txt.new
mv -f README_hyph_fo_FO.txt.new README_hyph_fo_FO.txt
%install
install -Dp hyph_fo_FO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_fo_FO.dic
%files
%doc README_hyph_fo_FO.txt
%{_datadir}/hyphen/*
%changelog
* Wed Jun 02 2021 wulei <wulei80@huawei.com> - 0.20010420-16
- fixes failed: git no such file or directory
* Wed May 13 2020 leiju <leiju4@huawei.com> - 0.20040420-15
- package init