enchant2-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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.8
  7. Release: 1%{?_dist_release}
  8. Group: System Environment/Libraries
  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 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. %post -p /sbin/ldconfig
  73. %postun -p /sbin/ldconfig
  74. %clean
  75. rm -r $RPM_BUILD_ROOT
  76. %files
  77. %defattr(-,root,root)
  78. %license COPYING.LIB
  79. %doc AUTHORS NEWS README
  80. %{_bindir}/*
  81. %{_libdir}/lib*.so.*
  82. %dir %{_libdir}/enchant-2
  83. %{_libdir}/enchant-2/*aspell.so*
  84. %{_mandir}/man1/*
  85. %dir %{_datadir}/enchant-2
  86. %{_datadir}/enchant-2/*
  87. %if %{with hunspell}
  88. %files hunspell
  89. %{_libdir}/enchant-2/*myspell.so*
  90. %endif
  91. %if %{with voikko}
  92. %files voikko
  93. %{_libdir}/enchant-2/*_voikko.so*
  94. %endif
  95. %files devel
  96. %defattr(-,root,root)
  97. %{_libdir}/*.so
  98. %{_libdir}/pkgconfig/enchant-2.pc
  99. %{_includedir}/enchant-2
  100. %changelog
  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