From 3e54ddcee49bf56b4827f4f4b63ed6977236b5d2 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Mon, 26 Nov 2007 19:04:09 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + sources | 1 + zaf.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 zaf.spec diff --git a/.cvsignore b/.cvsignore index e69de29..86ae2a4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +zaf-0-0.1.20071123svn.tar.bz2 diff --git a/sources b/sources index e69de29..eb274ad 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a48563663dcaf5d924a28bf323b3d511 zaf-0-0.1.20071123svn.tar.bz2 diff --git a/zaf.spec b/zaf.spec new file mode 100644 index 0000000..f380554 --- /dev/null +++ b/zaf.spec @@ -0,0 +1,65 @@ +Name: zaf +Summary: South Africa hyphenation rules +%define upstreamid 20071123 +Version: 0 +Release: 0.1.%{upstreamid}svn%{?dist} +Source: zaf-0-0.1.%{upstreamid}svn.tar.bz2 +Group: Applications/Text +URL: http://zaf.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LGPLv2+ +BuildArch: noarch + +%description +South Africa hyphenation rules. + +%package -n hyphen-af +Summary: Afrikaans hyphenation rules +Group: Applications/Text +Requires: hyphen + +%description -n hyphen-af +Afrikaans hyphenation rules. + +%package -n hyphen-zu +Summary: Zulu hyphenation rules +Group: Applications/Text +Requires: hyphen + +%description -n hyphen-zu +Zulu hyphenation rules. + +%prep +%setup -q -n zaf + +%build + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p ./af/hyph/hyph_af_ZA.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p ./zu/hyph/hyph_zu_ZA.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/ +af_ZA_aliases="af_NA" +for lang in $af_ZA_aliases; do + ln -s hyph_af_ZA.dic hyph_$lang.dic +done +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -n hyphen-af +%defattr(-,root,root,-) +%doc af/CREDITS af/COPYING af/README +%{_datadir}/hyphen/hyph_af* + +%files -n hyphen-zu +%defattr(-,root,root,-) +%doc zu/CREDITS zu/COPYING zu/README +%{_datadir}/hyphen/hyph_zu* + +%changelog +* Fri Nov 23 2007 Caolan McNamara - 0-0.1.20071123svn +- initial version