hyphen-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: hyphen
  2. Summary: A text hyphenation library
  3. Version: 2.4
  4. Release: 1%{?_dist_release}
  5. Source: http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz
  6. Group: System Environment/Libraries
  7. URL: http://hunspell.sf.net
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  9. License: LGPLv2+ or MPLv1.1
  10. BuildRequires: perl, patch
  11. %description
  12. Hyphen is a library for high quality hyphenation and justification.
  13. %package devel
  14. Requires: hyphen = %{version}-%{release}
  15. Summary: Files for developing with hyphen
  16. Group: Development/Libraries
  17. %description devel
  18. Includes and definitions for developing with hyphen
  19. %package en
  20. Requires: hyphen
  21. Summary: English hyphenation rules
  22. Summary(ja): English hyphenation rules
  23. Group: Applications/Text
  24. %description en
  25. English hyphenation rules.
  26. %prep
  27. %setup -q
  28. %build
  29. %configure --disable-static
  30. make %{?_smp_mflags}
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make DESTDIR=$RPM_BUILD_ROOT install
  34. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  35. pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
  36. 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"
  37. for lang in $en_US_aliases; do
  38. ln -s hyph_en_US.dic hyph_$lang.dic
  39. done
  40. popd
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %post -p /sbin/ldconfig
  44. %postun -p /sbin/ldconfig
  45. %files
  46. %defattr(-,root,root,-)
  47. %doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
  48. %{_libdir}/*.so.*
  49. %dir %{_datadir}/hyphen
  50. %files en
  51. %defattr(-,root,root,-)
  52. %{_datadir}/hyphen/hyph_en*.dic
  53. %files devel
  54. %defattr(-,root,root,-)
  55. %{_includedir}/hyphen.h
  56. %{_libdir}/*.so
  57. %{_bindir}/substrings.pl
  58. %changelog
  59. * Fri Jul 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-1
  60. - initial build for Vine Linux
  61. * Fri May 02 2008 Caolan McNamara <caolanm@redhat.com> - 2.4-1
  62. - latest version
  63. * Tue Feb 19 2008 Caolan McNamara <caolanm@redhat.com> - 2.3.1-1
  64. - latest version
  65. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-2
  66. - Autorebuild for GCC 4.3
  67. * Mon Nov 12 2007 Caolan McNamara <caolanm@redhat.com> - 2.3-1
  68. - initial version