enchant2-vl.spec 6.4 KB

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