enchant2-vl.spec 6.5 KB

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