aspell-vl.spec 15 KB

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