initial version

This commit is contained in:
Caolan McNamara 2007-11-23 17:32:56 +00:00
parent 6f36959d58
commit 52e0919bad

View File

@ -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,-)