enchant-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. %bcond_with voikko
  2. %bcond_with hunspell
  3. Summary: An Enchanting Spell Checking Library
  4. Summary(ja): スペルチェックライブラリ
  5. Name: enchant
  6. Version: 1.4.2
  7. Release: 2%{?_dist_release}
  8. Group: System Environment/Libraries
  9. License: LGPLv2+
  10. Source: http://www.abisource.com/downloads/enchant/%{version}/enchant-%{version}.tar.gz
  11. URL: http://www.abisource.com/
  12. BuildRequires: glib2-devel >= 2.6.0
  13. BuildRequires: aspell-devel
  14. %if %{with hunspell}
  15. BuildRequires: hunspell-devel
  16. %endif
  17. %if %{with voikko}
  18. BuildRequires: libvoikko-devel
  19. %endif
  20. BuildRequires: automake, libtool
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. %description
  23. A library that wraps other spell checking backends.
  24. %package hunspell
  25. Summary: Integration with hunspell for libenchant
  26. Summary(ja): Integration with hunspell for libenchant
  27. Group: System Environment/Libraries
  28. Requires: enchant = %{version}-%{release}
  29. %description hunspell
  30. Libraries necessary to integrate applications using libenchant with hunspell.
  31. %package voikko
  32. Summary: Integration with voikko for libenchant
  33. Summary(ja): Integration with voikko for libenchant
  34. Group: System Environment/Libraries
  35. Requires: enchant = %{version}-%{release}
  36. %description voikko
  37. Libraries necessary to integrate applications using libenchant with voikko.
  38. %package devel
  39. Summary: Support files necessary to compile applications with libenchant.
  40. Summary(ja): Support files necessary to compile applications with libenchant.
  41. Group: Development/Libraries
  42. Requires: enchant = %{version}-%{release}
  43. Requires: glib2-devel
  44. %description devel
  45. Libraries, headers, and support files necessary to compile applications using libenchant.
  46. %prep
  47. %setup -q
  48. %build
  49. %configure \
  50. --disable-ispell \
  51. --disable-hspell \
  52. %if %{with hunspell}
  53. --with-myspell \
  54. %else
  55. --disable-myspell \
  56. %endif
  57. %if !%{with voikko}
  58. --disable-voikko \
  59. %endif
  60. --disable-zemberek \
  61. --disable-static
  62. make %{?_smp_mflags}
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. make DESTDIR=$RPM_BUILD_ROOT install
  66. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  67. rm -f $RPM_BUILD_ROOT/%{_libdir}/enchant/*.la
  68. %files
  69. %defattr(-,root,root)
  70. %doc AUTHORS COPYING.LIB README
  71. %{_bindir}/*
  72. %{_libdir}/lib*.so.*
  73. %dir %{_libdir}/enchant
  74. %{_libdir}/enchant/lib*aspell.so*
  75. %{_mandir}/man1/enchant.1.gz
  76. %{_datadir}/enchant
  77. %if %{with hunspell}
  78. %files hunspell
  79. %{_libdir}/enchant/lib*myspell.so*
  80. %endif
  81. %if %{with voikko}
  82. %files voikko
  83. %{_libdir}/enchant/lib*_voikko.so*
  84. %endif
  85. %files devel
  86. %defattr(-,root,root)
  87. %{_libdir}/*.so
  88. %{_libdir}/pkgconfig/enchant.pc
  89. %{_includedir}/enchant
  90. %post -p /sbin/ldconfig
  91. %postun -p /sbin/ldconfig
  92. %clean
  93. rm -r $RPM_BUILD_ROOT
  94. %changelog
  95. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.2-2
  96. - build with rpm-4.8.1-1 for pkg-config file
  97. * Fri Sep 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1
  98. - initial build for Vine Linux
  99. * Sat Jul 26 2008 Michael Schwendt <mschwendt@fedoraproject.org> 1:1.4.2-4
  100. - Rebuild for ABI-incompatible hunspell-1.2.4.2-2.fc10
  101. * Thu Jul 10 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-3
  102. - Fix 426712: don't build static libs (patch from Michael Schwendt)
  103. * Wed May 21 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-2
  104. - Rebuild
  105. * Wed May 21 2008 Marc Maurer <uwog@abisource.com> 1:1.4.2-1
  106. - New upstream release
  107. - Add voikko support in an enchant-voikko package
  108. - Bump glib-devel BR to 2.6.0
  109. * Fri Feb 08 2008 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-4.fc9
  110. - minor cockup
  111. * Sat Jan 26 2008 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-3.fc9
  112. - Resolves: rhbz#426402 use system hunspell not internal one and
  113. split out aspell backend.
  114. - See: rhbz#430354 hspell backend disabled until pic issue fixed
  115. * Wed Dec 19 2007 Caolan McNamara <caolanm@redhat.com> 1:1.3.0-2.fc9
  116. - tell enchant where the myspell dictionaries are
  117. * Thu Oct 12 2006 Marc Maurer <uwog@abisource.com> 1:1.3.0-1.fc6
  118. - Update to 1.3.0
  119. * Mon Sep 11 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-3.fc6
  120. - Rebuild for FC6
  121. * Mon Apr 10 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-2.fc6
  122. - Rebuild
  123. * Mon Apr 10 2006 Marc Maurer <uwog@abisource.com> 1:1.2.5-1.fc6
  124. - Package the data dir as well (bug 188516)
  125. - New upstream version
  126. - Add hspell requirement/support
  127. * Tue Feb 14 2006 Marc Maurer <uwog@abisource.com> 1:1.2.2-2.fc5
  128. - Rebuild for Fedora Extras 5
  129. * Sun Feb 05 2006 Marc Maurer <uwog@abisource.com> 1:1.2.2-1.fc5
  130. - Update to 1.2.2
  131. * Mon Jan 30 2006 Marc Maurer <uwog@abisource.com> 1:1.2.1-1.fc5
  132. - Update to 1.2.1
  133. - Drop glib Require
  134. * Sat Oct 22 2005 Marc Maurer <uwog@abisource.com> 1:1.2.0-1.fc5
  135. - Update to 1.2.0
  136. * Wed Oct 5 2005 Marc Maurer <uwog@abisource.com> 1:1.1.6-4.fc5
  137. - Add dist flag to the release number
  138. * Mon Apr 4 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1:1.1.6-3
  139. - make in %%build
  140. - disable bad buildroot rpaths in libs, don't use %%makeinstall
  141. - require %%{epoch} of main package in -devel package (Fridrich Strba)
  142. * Thu Mar 31 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1:1.1.6-2
  143. - add dep glib2-devel for pkgconfig in -devel package
  144. - include %%{_libdir}/enchant dir in main package
  145. - make -devel package require exact VR of main package
  146. - use -p /sbin/ldconfig in scriptlets
  147. * Mon Mar 28 2005 Marc Maurer <uwog@abisource.com> 1:1.1.6-1
  148. - update to 1.1.6
  149. - drop the manpage patch (RH#145010#)
  150. - fix version numbers in the spec changelog
  151. * Wed Mar 2 2005 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-3
  152. - rebuild with gcc4
  153. * Fri Jan 14 2005 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-2
  154. - RH#145010# misformatted manpage
  155. * Mon Dec 20 2004 Caolan McNamara <caolanm@redhat.com> 1:1.1.5-1
  156. - initial fedora import
  157. * Sun Aug 24 2003 Rui Miguel Seabra <rms@1407.org>
  158. - update spec to current stat of affairs
  159. - building from source rpm is now aware of --with and --without flags:
  160. - --without aspell --without ispell --without myspell --with uspell
  161. * Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org>
  162. - take advantage of environment rpm macros
  163. * Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com>
  164. - Initial version