887e5e
Name: hyphen-fo
887e5e
Summary: Faroese hyphenation rules
887e5e
%define upstreamid 20040420
887e5e
Version: 0.%{upstreamid}
887e5e
Release: 6%{?dist}
887e5e
Source: http://fo.speling.org/filer/hyph_fo_FO-20040420a.zip
887e5e
Group: Applications/Text
887e5e
URL: http://fo.speling.org/
887e5e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
887e5e
License: GPL+
887e5e
BuildArch: noarch
887e5e
Requires: hyphen
887e5e
887e5e
%description
887e5e
Faroese hyphenation rules.
887e5e
887e5e
%prep
887e5e
%setup -q -c
887e5e
887e5e
%build
887e5e
for i in README_hyph_fo_FO.txt; do
887e5e
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
887e5e
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
887e5e
    touch -r $i $i.new
887e5e
    mv -f $i.new $i
887e5e
  fi
887e5e
  tr -d '\r' < $i > $i.new
887e5e
  touch -r $i $i.new
887e5e
  mv -f $i.new $i
887e5e
done
887e5e
887e5e
%install
887e5e
rm -rf $RPM_BUILD_ROOT
887e5e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
887e5e
cp -p hyph_fo_FO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
887e5e
887e5e
%clean
887e5e
rm -rf $RPM_BUILD_ROOT
887e5e
887e5e
%files
887e5e
%defattr(-,root,root,-)
887e5e
%doc README_hyph_fo_FO.txt
887e5e
%{_datadir}/hyphen/*
887e5e
887e5e
%changelog
887e5e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20040420-6
887e5e
- Mass rebuild 2013-12-27
887e5e
887e5e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-5
887e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
887e5e
887e5e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-4
887e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
887e5e
887e5e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-3
887e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
887e5e
887e5e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040420-2
887e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
887e5e
887e5e
* Mon Aug 10 2009 Caolan McNamara <caolanm@redhat.com> - 0.20040420-1
887e5e
- initial version