aspell-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. %define _noVersionedDependencies 1
  2. Summary: A spelling checker.
  3. Summary(ja): スペルチェッカ
  4. Name: aspell
  5. Version: 0.60.8
  6. Release: 2%{?_dist_release}
  7. Group: office
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPL
  11. URL: http://aspell.net/
  12. Source0: https://ftp.gnu.org/gnu/aspell/aspell-%{version}.tar.gz
  13. Source10: %{name}-install.sh
  14. Source11: %{name}-remove.sh
  15. Source12: %{name}-init.el
  16. Source100: aspell.conf
  17. Patch1005: aspell-0.60.7-fileconflict.patch
  18. Patch1007: aspell-0.60.7-pspell_conf.patch
  19. Patch1009: aspell-0.60.7-mp.patch
  20. Patch10000: CVE-2019-25051.patch
  21. BuildRequires: gcc-c++ gettext ncurses-devel pkgconfig
  22. BuildRequires: chrpath
  23. Requires(post): %{_syssbindir}/install-info
  24. Requires(preun): %{_syssbindir}/install-info
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. Provides: pspell
  27. Obsoletes: ispell, pspell
  28. %description
  29. GNU Aspell is a spell checker designed to eventually replace Ispell. It can
  30. either be used as a library or as an independent spell checker. Its main
  31. feature is that it does a much better job of coming up with possible
  32. suggestions than just about any other spell checker out there for the
  33. English language, including Ispell and Microsoft Word. It also has many
  34. other technical enhancements over Ispell such as using shared memory for
  35. dictionaries and intelligently handling personal dictionaries when more
  36. than one Aspell process is open at once.
  37. %package devel
  38. Summary: Static libraries and header files for Aspell development.
  39. Group: programming
  40. Requires: aspell = %{version}-%{release}
  41. Obsoletes: pspell-devel
  42. %description devel
  43. Aspell is a spelling checker. The aspell-devel package includes the
  44. static libraries and header files needed for Aspell development.
  45. %package el
  46. Summary: Emacs lisp for aspell
  47. Group: accesories
  48. Requires: aspell = %{version}-%{release}
  49. Requires: emacsen-common
  50. %description el
  51. Aspell is a spelling checker. The aspell-el package includes the
  52. elisp for using aspell within emacsen.
  53. %debug_package
  54. %prep
  55. %autosetup -p1
  56. iconv -f iso-8859-2 -t utf-8 < manual/aspell.info > manual/aspell.info.aux
  57. mv manual/aspell.info.aux manual/aspell.info
  58. %build
  59. %configure --disable-rpath
  60. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  61. make %{?_smp_mflags}
  62. cp scripts/aspell-import examples/aspell-import
  63. chmod 644 examples/aspell-import
  64. cp manual/aspell-import.1 examples/aspell-import.1
  65. %install
  66. rm -rf %{buildroot}
  67. %makeinstall
  68. mv %{buildroot}%{_libdir}/aspell-*/ispell %{buildroot}%{_bindir}
  69. mv %{buildroot}%{_libdir}/aspell-*/spell %{buildroot}%{_bindir}
  70. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//nroff-filter.so
  71. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//sgml-filter.so
  72. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//context-filter.so
  73. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//email-filter.so
  74. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//tex-filter.so
  75. chrpath --delete %{buildroot}%{_libdir}/aspell-0.60//texinfo-filter.so
  76. chrpath --delete %{buildroot}%{_bindir}/aspell
  77. chrpath --delete %{buildroot}%{_libdir}/libpspell.so.*
  78. rm -f %{buildroot}%{_libdir}/libaspell.la
  79. rm -f %{buildroot}%{_libdir}/libpspell.la
  80. rm -f %{buildroot}%{_libdir}/aspell-0.60/*-filter.la
  81. rm -f %{buildroot}%{_bindir}/aspell-import
  82. rm -f %{buildroot}%{_mandir}/man1/aspell-import.1*
  83. # Add by H.Irokawa(2004.02.23)
  84. mkdir -p %{buildroot}%{_sysconfdir}
  85. install -m 644 %{SOURCE100} %{buildroot}%{_sysconfdir}/aspell.conf
  86. mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/aspell
  87. mkdir -p %{buildroot}%{_prefix}/lib/emacsen-common/packages/install
  88. mkdir -p %{buildroot}%{_prefix}/lib/emacsen-common/packages/remove
  89. install -m 644 %{SOURCE12} %{buildroot}/usr/share/emacs/site-lisp/%{name}
  90. # install script( bytecompile el and install elc , remove )
  91. %_installemacsenscript %{name} %{SOURCE10}
  92. %_removeemacsenscript %{name} %{SOURCE11}
  93. rm -f $RPM_BUILD_ROOT%{_docdir}/aspell/manual.aux
  94. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  95. %find_lang %{name}
  96. %post
  97. # info
  98. if [ "$1" = 0 ] ; then
  99. %{_syssbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir
  100. fi
  101. %post devel
  102. # info
  103. if [ "$1" = 0 ] ; then
  104. %{_syssbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir
  105. fi
  106. %post el
  107. if [ "$1" = 2 ]; then
  108. %_emacsenPackageRemove %{name}
  109. fi
  110. %_addemacsenlist %{name}
  111. %_emacsenPackageInstall %{name}
  112. %preun
  113. if [ $1 = 0 ]; then
  114. %{_syssbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir
  115. fi
  116. %preun devel
  117. if [ $1 = 0 ]; then
  118. %{_syssbindir}/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir
  119. fi
  120. %preun el
  121. if [ "$1" = 0 ]; then
  122. %_emacsenPackageRemove %{name}
  123. %_removeemacsenlist %{name}
  124. fi
  125. %clean
  126. rm -rf %{buildroot}
  127. %files -f %{name}.lang
  128. %defattr(-,root,root)
  129. %config(noreplace) %{_sysconfdir}/aspell.conf
  130. %license COPYING
  131. %doc README TODO examples/aspell-import examples/aspell-import.1
  132. %dir %{_libdir}/aspell-0.60
  133. %{_bindir}/a*
  134. %{_bindir}/ispell
  135. %{_bindir}/pr*
  136. %{_bindir}/run-with-aspell
  137. %{_bindir}/spell
  138. %{_bindir}/word-list-compress
  139. %{_libdir}/lib*.so.*
  140. %{_libdir}/aspell-0.60/*
  141. %{_infodir}/aspell.*
  142. %{_mandir}/man1/aspell.1.*
  143. %{_mandir}/man1/run-with-aspell.1*
  144. %{_mandir}/man1/word-list-compress.1*
  145. %{_mandir}/man1/prezip-bin.1.*
  146. %files devel
  147. %defattr(-,root,root)
  148. %{_bindir}/pspell-config
  149. %{_includedir}/aspell.h
  150. %{_includedir}/pspell
  151. %{_infodir}/aspell-dev.info*
  152. %{_libdir}/lib*spell.so
  153. %{_libdir}/pkgconfig/aspell.pc
  154. %{_mandir}/man1/pspell-config.1*
  155. %files el
  156. %{_datadir}/emacs/site-lisp/%{name}/
  157. %{_prefix}/lib/emacsen-common/packages/install/%{name}
  158. %{_prefix}/lib/emacsen-common/packages/remove/%{name}
  159. %changelog
  160. * Thu Jul 29 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.60.8-2
  161. - imported Patch10000 from upstream to fix CVE-2019-25051.
  162. * Mon Mar 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.60.8-1
  163. - new upstream release.
  164. - dropped Patch1003 and 1008.
  165. - updated Patch1005, 1007 and 1009.
  166. - dropped ldconfig scriptlets.
  167. * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.60.6.1-2
  168. - rebuilt with new toolchain.
  169. * Tue Mar 06 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.60.6.1-1
  170. - updated to 0.60.6.1
  171. - import Patch1009 from Fedora
  172. * Tue May 3 2011 IWAI, Masaharu <iwai@alib.jp> 0.60.6-2
  173. - update aspell.conf (Source100)
  174. * Sat Apr 16 2011 IWAI, Masaharu <iwai@alib.jp> 0.60.6-1
  175. - new upstream release
  176. - sync Fedora 0.60.6-14
  177. - split English dictionary package: create aspell-en package
  178. - drop unnecessary patches
  179. - prefix patch (Patch0)
  180. - fix compress patch (Patch1)
  181. - add some patches (Patch1003, 1005, 1007, 1008)
  182. - create aspell.pc file
  183. - update files
  184. - add post, preun scripts for info file
  185. - add Requires(post,preun) for installing info file
  186. - noreplace aspell.conf
  187. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.50.5-1vl5
  188. - applied new versioning policy, spec in utf-8
  189. * Sun May 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.50.5-0vl3
  190. - rebuilt with new toolchain
  191. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.50.5-0vl2
  192. - changed aspell-el Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  193. * Sun Jul 23 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.50.5-0vl1
  194. - upgrade to new upstream
  195. - drop aspell-0.50.3-gcc33.patch
  196. - update prefix.patch
  197. * Sat Oct 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50.3-0vl8
  198. - merged with errata package
  199. * Wed Oct 6 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 0.50.3-0vl5.1
  200. - added aspell-compress-bug.patch (CAN-2004-0548).
  201. * Fri Oct 15 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.50.3-0vl7
  202. - fixed typo (s/%postun el/%preun el/)
  203. * Fri Oct 15 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.50.3-0vl6
  204. - split elisp-related files into the aspell-el subpackage
  205. * Thu Mar 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50.3-0vl5
  206. - add PreReq: emacsen-common
  207. * Mon Feb 23 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.50.3-0vl4
  208. - add /etc/aspell.conf
  209. - modded aspell-init.el(Japanese blended English spell check)
  210. * Wed Feb 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50.3-0vl3
  211. - add %{_bindir}/{ispell,spell} for compatibility script
  212. - enable site-start.d stuff
  213. * Mon Nov 17 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.50.3-0vl2
  214. - fixed spec file character code to EUC-JP
  215. * Wed Jun 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50.3-0vl1
  216. - build for Vine Linux
  217. - merge aspell-en
  218. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  219. - rebuilt
  220. * Fri May 30 2003 Joe Orton <jorton@redhat.com> 7:0.50.3-10
  221. - rebuild again to fix libpspell deps
  222. * Fri May 30 2003 Joe Orton <jorton@redhat.com> 7:0.50.3-9
  223. - remove ExcludeArch
  224. * Thu May 22 2003 Jeremy Katz <katzj@redhat.com> 7:0.50.3-8
  225. - fix build with gcc 3.3
  226. * Thu May 22 2003 Adrian Havill <havill@redhat.com> 0.50.3-7
  227. - require aspell-en for upgrades
  228. * Sun May 11 2003 Jeremy Katz <katzj@redhat.com> 6:0.50.3-6
  229. - -devel should obsolete pspell-devel
  230. * Tue May 6 2003 Joe Orton <jorton@redhat.com> 0.50.3-5
  231. - include libpspell.so in devel package
  232. * Thu May 1 2003 Adrian Havill <havill@redhat.com> 0.50.3-4
  233. - removed .la files
  234. * Wed Apr 16 2003 Adrian Havill <havill@redhat.com> 0.50.3-3
  235. - Changed the header for provides, obsoletes, epoch
  236. - fixed config prefix in dirs.h
  237. * Wed Apr 16 2003 Adrian Havill <havill@redhat.com> 0.50.3-1
  238. - upgrade to 0.50.3
  239. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  240. - rebuilt
  241. * Fri Nov 8 2002 Tim Powers <timp@redhat.com>
  242. - fix broken pspell epoch dep
  243. - create $RPM_BUILD_ROOT/usr/bin by hand
  244. - remove /usr/doc
  245. - fix hardcoding of /usr/lib so that we can build on x86_64
  246. * Tue Aug 13 2002 Nalin Dahyabhai <nalin@redhat.com> 0.33.7.1-16
  247. - require pspell and pspell-devel using the proper epoch
  248. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  249. - rebuilt with gcc-3.2 (we hope)
  250. * Mon Jul 22 2002 Tim Powers <timp@redhat.com> 0.33.7.1-14
  251. - rebuild using gcc-3.2-0.1
  252. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 0.33.7.1-13
  253. - automated rebuild
  254. * Thu Jun 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-12
  255. - Rebuild to make it work again... #66708
  256. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  257. - automated rebuild
  258. * Mon May 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-10
  259. - Rebuild
  260. * Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-9
  261. - Disable evil patch
  262. * Mon Jan 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-8
  263. - Build on more archs (doh)
  264. * Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-7
  265. - Make it compile with new compiler (evil workaround)
  266. * Wed Jan 16 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-5
  267. - Rebuild
  268. - Unexclude alpha
  269. * Fri Dec 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-3
  270. - Rebuild
  271. - Don't build on alpha
  272. * Mon Oct 29 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.33.7.1-2
  273. - "make it work with gcc 3.1" ;)
  274. * Tue Sep 18 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7.1-1
  275. - 0.33.7.1, which is a "make it work with gcc 3" release
  276. * Wed Sep 12 2001 Tim Powers <timp@redhat.com>
  277. - rebuild with new gcc and binutils
  278. * Thu Aug 9 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.33.7-1
  279. - 0.33.7 bugfix release. Requested by the author, it fixes
  280. coredumps in sug-mode and when not using typo-analyses.
  281. It also contains code cleanups so it compiles with -ansi
  282. - should fix coredump on IA64 (#49746)
  283. * Wed Jul 11 2001 Trond Eivind Glomsrød <teg@redhat.com>
  284. - Add the .la files in the main package - used for dynamic loading
  285. * Sun Jun 3 2001 Trond Eivind Glomsrød <teg@redhat.com>
  286. - 0.33.6.3, which includes the fix made yesterday
  287. * Sat Jun 2 2001 Trond Eivind Glomsrød <teg@redhat.com>
  288. - Make it search for directories in the correct location
  289. * Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
  290. - No more workarounds at the specfile level
  291. * Tue May 29 2001 Trond Eivind Glomsrød <teg@redhat.com>
  292. - Use custom ltmain.sh to work around buggy bundled libtool
  293. * Sun May 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
  294. - 0.33.6
  295. - use standard %%configure macro - it works now.
  296. * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.33.5-2
  297. - Rebuild with new libltdl
  298. * Mon Apr 23 2001 Trond Eivind Glomsrød <teg@redhat.com>
  299. - 0.33.5
  300. * Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
  301. - use new emacs init scheme for Emacs and XEmacs
  302. * Wed Nov 22 2000 Trond Eivind Glomsrød <teg@redhat.com>
  303. - .32.6
  304. * Sat Aug 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
  305. - .32.5 bugfix release (also contains improved documentation),
  306. obsolete old patch
  307. - the compatibility scripts are now part of the package itself
  308. - clean up build procedure
  309. - remove manual.aux file from docs (#16424)
  310. * Sun Aug 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
  311. - .32.1 bugfix release, obsolete old patch
  312. - rename to 0.32.1
  313. - add patch from author to change his email address
  314. - add spell and ispell compatibility scripts
  315. * Fri Aug 04 2000 Trond Eivind Glomsrød <teg@redhat.com>
  316. - rebuild
  317. * Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
  318. - remember to obsolete ispell
  319. - build the Canadian and British dictionaries here now,
  320. as part of the main package. Same package names and
  321. descriptions.
  322. * Mon Jul 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
  323. - .32
  324. - remove old patches, add a patch since namespace isn't
  325. polluted as much anymore (as opposed to older toolchain)
  326. * Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
  327. - rebuild
  328. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  329. - automatic rebuild
  330. * Tue Jul 4 2000 Jakub Jelinek <jakub@redhat.com>
  331. - Rebuild with new C++
  332. * Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
  333. - use RPM_OPT_FLAGS, not just -O0
  334. - dont include .la-files
  335. * Fri Jun 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
  336. - excludearch ia64
  337. * Fri Jun 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
  338. - patch to work around compiler bug(?) wrt. inline functions
  339. - use CFLAGS and CXXFLAGS
  340. - set them to -O0 to work around YACB
  341. - copy libtool files for IA64 support
  342. * Sun Jun 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
  343. - update to .31.1. My patch was upstreamed and is no longer needed.
  344. - new patch added so DESTDIR works properly
  345. * Fri Jun 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
  346. - (this entry includes some old ones...)
  347. - update to .31
  348. - added patch to make it compile with a pickier compiler
  349. - include /usr/share/pspell
  350. * Mon May 1 2000 Tim Powers <timp@redhat.com>
  351. - updated to .30.1
  352. - used build fixes from Ryan Weaver's 0.30.1-1 package on sourceforge
  353. - updated URL, download/ftp location
  354. - removed redundant define's at top of spec file
  355. * Thu Jul 8 1999 Tim Powers <timp@redhat.com>
  356. - built for Powertools 6.1
  357. - removed %serial definitions from spec file to make versioning
  358. consistant with the other packages we ship.
  359. - changed build root path
  360. - general spec file cleanups
  361. * Tue Mar 2 1999 Ryan Weaver <ryanw@infohwy.com>
  362. [aspell-.27.2-2]
  363. - Changes from .27.1 to .27.2 (Mar 1, 1999)
  364. - Fixed a major bug that caused aspell to dump core when used
  365. without any arguments
  366. - Fixed another major bug that caused aspell to do nothing when used
  367. in interactive mode.
  368. - Added an option to exit in Aspell's interactive mode.
  369. - Removed some old documentation files from the distribution.
  370. - Minor changes on to the section on using Aspell with egcs.
  371. - Minor changes to remove -Wall warnings.