54 lines
1.3 KiB
RPMSpec
54 lines
1.3 KiB
RPMSpec
Name: hyphen-fo
|
|
Summary: Faroese hyphenation rules
|
|
%define upstreamid 20040420
|
|
Version: 0.%{upstreamid}
|
|
Release: 3%{?dist}
|
|
Source: http://fo.speling.org/filer/hyph_fo_FO-20040420a.zip
|
|
Group: Applications/Text
|
|
URL: http://fo.speling.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
License: GPL+
|
|
BuildArch: noarch
|
|
Requires: hyphen
|
|
|
|
%description
|
|
Faroese hyphenation rules.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%build
|
|
for i in README_hyph_fo_FO.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
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|
cp -p hyph_fo_FO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README_hyph_fo_FO.txt
|
|
%{_datadir}/hyphen/*
|
|
|
|
%changelog
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Aug 10 2009 Caolan McNamara <caolanm@redhat.com> - 0.20040420-1
|
|
- initial version
|