From 52e0919bad9e494dc96059ce54a0c4a61da354f0 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Fri, 23 Nov 2007 17:32:56 +0000 Subject: [PATCH] initial version --- hyphen.spec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hyphen.spec b/hyphen.spec index 9badb27..7b310a6 100644 --- a/hyphen.spec +++ b/hyphen.spec @@ -20,6 +20,14 @@ Group: Development/Libraries %description devel Includes and definitions for developing with hyphen +%package en +Requires: hyphen +Summary: English hyphenation rules +Group: Applications/Text + +%description en +English hyphenation rules. + %prep %setup -q @@ -32,6 +40,14 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la +pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/ +en_US_aliases="en_AU en_BS en_BZ en_CA en_GH en_GB en_IE en_IN en_JM en_NA en_NZ en_PH en_TT en_ZA en_ZW" +for lang in $en_US_aliases; do + ln -s hyph_en_US.dic hyph_$lang.dic +done +popd + + %clean rm -rf $RPM_BUILD_ROOT @@ -43,7 +59,11 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO %{_libdir}/*.so.* -%{_datadir}/hyphen/ +%dir %{_datadir}/hyphen + +%files en +%defattr(-,root,root,-) +%{_datadir}/hyphen/hyph_en*.dic %files devel %defattr(-,root,root,-)