commit
fa643e56ca
39
hunspell-fo.spec
Normal file
39
hunspell-fo.spec
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Name: hunspell-fo
|
||||||
|
Summary: Faroese dictionaries for hunspell
|
||||||
|
Version: 0.4.2
|
||||||
|
Release: 10
|
||||||
|
Source: http://fo.speling.org/filer/myspell-fo-%{version}.tar.bz2
|
||||||
|
URL: http://fo.speling.org/
|
||||||
|
License: GPLv2+
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: hunspell
|
||||||
|
Supplements: (hunspell and langpacks-fo)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Faroese dictionaries for hunspell.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n myspell-fo-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
for i in Copyright contributors README; 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
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
|
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Copyright COPYING README contributors
|
||||||
|
%{_datadir}/myspell/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Apr 14 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 0.4.2-10
|
||||||
|
- package init
|
||||||
BIN
myspell-fo-0.4.2.tar.bz2
Normal file
BIN
myspell-fo-0.4.2.tar.bz2
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user