From b4803ccb7a7972bb9af5d0d6961be4e9c4387937 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Mon, 26 Nov 2007 20:25:49 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + hyphen-nl.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 47 insertions(+) create mode 100644 hyphen-nl.spec diff --git a/.cvsignore b/.cvsignore index e69de29..e159d53 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hyph_nl_NL.zip diff --git a/hyphen-nl.spec b/hyphen-nl.spec new file mode 100644 index 0000000..6c7b6bb --- /dev/null +++ b/hyphen-nl.spec @@ -0,0 +1,45 @@ +Name: hyphen-nl +Summary: Dutch hyphenation rules +%define upstreamid 20050617 +Version: 0.%{upstreamid} +Release: 1%{?dist} +Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_nl_NL.zip +Group: Applications/Text +URL: http://wiki.services.openoffice.org/wiki/Dictionaries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: GPLv2 +BuildArch: noarch +Requires: hyphen + +%description +Dutch hyphenation rules. + +%prep +%setup -q -c -n hyphen-nl + +%build +tr -d '\r' < README_hyph_nl_NL.txt > README_hyph_nl_NL.txt.new +mv -f README_hyph_nl_NL.txt.new README_hyph_nl_NL.txt + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p hyph_nl_NL.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/ +nl_NL_aliases="nl_BE" +for lang in $nl_NL_aliases; do + ln -s hyph_nl_NL.dic hyph_$lang.dic +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README_hyph_nl_NL.txt +%{_datadir}/hyphen/* + +%changelog +* Fri Nov 23 2007 Caolan McNamara - 0.20050617-1 +- initial version diff --git a/sources b/sources index e69de29..b5a1ebe 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6f0b18ce830445ae8337df8913155196 hyph_nl_NL.zip