bfa5d1
Name: hyphen-de
bfa5d1
Summary: German hyphenation rules
bfa5d1
%define upstreamid 20060120
bfa5d1
Version: 0.%{upstreamid}
547c67
Release: 11%{?dist}
bfa5d1
Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_de_DE.zip
bfa5d1
Group: Applications/Text
bfa5d1
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
bfa5d1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bfa5d1
License: LGPLv2+
bfa5d1
BuildArch: noarch
bfa5d1
Requires: hyphen
bfa5d1
bfa5d1
%description
bfa5d1
German hyphenation rules.
bfa5d1
bfa5d1
%prep
bfa5d1
%setup -q -c -n hyphen-de
bfa5d1
bfa5d1
%build
bfa5d1
for i in README_hyph_de_DE.txt; do
bfa5d1
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
bfa5d1
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
bfa5d1
    touch -r $i $i.new
bfa5d1
    mv -f $i.new $i
bfa5d1
  fi
bfa5d1
  tr -d '\r' < $i > $i.new
bfa5d1
  touch -r $i $i.new
bfa5d1
  mv -f $i.new $i
bfa5d1
done
bfa5d1
bfa5d1
%install
bfa5d1
rm -rf $RPM_BUILD_ROOT
bfa5d1
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
bfa5d1
cp -p hyph_de_DE.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
bfa5d1
bfa5d1
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
bfa5d1
de_DE_aliases="de_AT de_BE de_CH de_LI de_LU"
bfa5d1
for lang in $de_DE_aliases; do
bfa5d1
        ln -s hyph_de_DE.dic hyph_$lang.dic
bfa5d1
done
bfa5d1
popd
bfa5d1
bfa5d1
%clean
bfa5d1
rm -rf $RPM_BUILD_ROOT
bfa5d1
bfa5d1
%files
bfa5d1
%defattr(-,root,root,-)
bfa5d1
%doc README_hyph_de_DE.txt
bfa5d1
%{_datadir}/hyphen/*
bfa5d1
bfa5d1
%changelog
547c67
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20060120-11
547c67
- Mass rebuild 2013-12-27
547c67
bfa5d1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-10
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bfa5d1
bfa5d1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-9
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bfa5d1
bfa5d1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-8
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bfa5d1
bfa5d1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-7
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bfa5d1
bfa5d1
* Wed Jul 29 2009 Jesse Keating <jkeating@redhat.com> - 0.20060120-6
bfa5d1
- Bump again due to buildsystem error
bfa5d1
bfa5d1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-5
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bfa5d1
bfa5d1
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060120-4
bfa5d1
- tidy spec
bfa5d1
bfa5d1
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-3
bfa5d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bfa5d1
bfa5d1
* Sun Nov 25 2007 Caolan McNamara <caolanm@redhat.com> - 0.20060120-2
bfa5d1
- fix license
bfa5d1
bfa5d1
* Fri Nov 23 2007 Caolan McNamara <caolanm@redhat.com> - 0.20060120-1
bfa5d1
- initial version