initial version
This commit is contained in:
parent
6f36959d58
commit
52e0919bad
22
hyphen.spec
22
hyphen.spec
@ -20,6 +20,14 @@ Group: Development/Libraries
|
|||||||
%description devel
|
%description devel
|
||||||
Includes and definitions for developing with hyphen
|
Includes and definitions for developing with hyphen
|
||||||
|
|
||||||
|
%package en
|
||||||
|
Requires: hyphen
|
||||||
|
Summary: English hyphenation rules
|
||||||
|
Group: Applications/Text
|
||||||
|
|
||||||
|
%description en
|
||||||
|
English hyphenation rules.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -32,6 +40,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -43,7 +59,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
|
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%{_datadir}/hyphen/
|
%dir %{_datadir}/hyphen
|
||||||
|
|
||||||
|
%files en
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_datadir}/hyphen/hyph_en*.dic
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user