texinfo-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. %define extraver a
  2. %define _infodir /usr/share/info
  3. Summary: Tools needed to create Texinfo format documentation files.
  4. Summary(ja): Texinfo ドキュメントを作成する為に使うツール群
  5. Name: texinfo
  6. Version: 4.13a
  7. Release: 2%{?_dist_release}
  8. License: GPLv3+
  9. Group: Applications/Publishing
  10. URL: http://www.gnu.org/software/texinfo/
  11. #Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}%{?extraver:%extraver}.tar.bz2
  12. Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.lzma
  13. Source1: info-dir
  14. Patch0: texinfo-4.12-zlib.patch
  15. Patch1: texinfo-4.13a-data_types.patch
  16. # Patch2: is already upstream
  17. Patch2: texinfo-4.13a-mosdo-crash.patch
  18. Patch3: texinfo-4.13a-powerpc.patch
  19. # Patch4: accepted by upstream, bz579263
  20. Patch4: texinfo-4.13a-help-index-segfault.patch
  21. # Patch5: already upstream, bz641534
  22. Patch5: texinfo-4.13a-texi2dvi-regexp.patch
  23. # Patch6: already upstream, bz651314
  24. Patch6: texinfo-4.13a-makeinfo-sectioning.patch
  25. Requires(post): install-info
  26. Requires(preun): install-info
  27. Prefix: %{_prefix}
  28. Buildroot: %{_tmppath}/%{name}-%{version}-root
  29. BuildRequires: autoconf libtool ncurses-devel zlib-devel help2man
  30. # Redifine this to "dir" in the info directory isn't compressed
  31. %define __spec_install_post /usr/lib/rpm/brp-strip \; /usr/lib/rpm/brp-strip-comment-note \; rm -f
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: daisuke
  35. %description
  36. Texinfo is a documentation system that can produce both online
  37. information and printed output from a single source file. The GNU
  38. Project uses the Texinfo file format for most of its documentation.
  39. Install texinfo if you want a documentation system for producing both
  40. online and print documentation from the same source file and/or if you
  41. are going to write documentation for the GNU Project.
  42. %description -l ja
  43. Texinfo は,単一ソースファイルから,オンラインドキュメントと
  44. 印刷用ファイルを出力することの出来るドキュメントシステムです.
  45. GNU Project では,殆どのドキュメントでこの Texinfo フォーマットを
  46. 採用しています.
  47. 単一ソースファイルからオンラインドキュメントと印刷用ファイルを出力
  48. したい場合,あるいは GNU Project 用にドキュメントを書こうと思っている
  49. 場合は,この texinfo をインストールして下さい.
  50. %package -n info
  51. Summary: A stand-alone TTY-based reader for GNU texinfo documentation.
  52. Summary(ja): TTY ベースのスタンドアロン GNU texinfo ドキュメントリーダ
  53. Group: System Environment/Base
  54. # By making info prereq bash, other packages which have triggers based on
  55. # info don't run those triggers until bash is in place as well. This is an
  56. # ugly method of doing it (triggers which fire on set intersection would
  57. # be better), but it's the best we can do for now. Talk to Erik before
  58. # removing this.
  59. Requires(pre): bash install-info
  60. Requires: install-info
  61. %description -n info
  62. The GNU project uses the texinfo file format for much of its
  63. documentation. The info package provides a standalone TTY-based
  64. browser program for viewing texinfo files.
  65. %description -n info -l ja
  66. GNU Project では殆どのドキュメントに texinfo 形式を採用しています.
  67. この info パッケージには texinfo ファイルを読む TTY ベースの
  68. ブラウザプログラムが収められています.
  69. %package -n install-info
  70. Summary: info file installer
  71. Summary(ja): info ファイルのインストーラー
  72. Group: System Environment/Base
  73. Conflicts: info < 4.0b-3vl2
  74. Requires: gzip, bzip2
  75. %description -n install-info
  76. info file installer.
  77. %description -n install-info -l ja
  78. info ファイルのインストーラーです.
  79. %prep
  80. %setup -q -n %{name}-4.13
  81. %patch0 -p1 -b .zlib
  82. %patch1 -p1 -b .data_types
  83. %patch2 -p1 -b .mosdo-crash
  84. %patch3 -p1 -b .powerpc
  85. %patch4 -p1 -b .help-index-segfault
  86. %patch5 -p1 -b .texi2dvi-regexp
  87. %patch6 -p1 -b .makeinfo-sectioning
  88. %build
  89. %configure --mandir=%{_mandir} --infodir=%{_infodir}
  90. make %{?_smp_mflags}
  91. make -C util LIBS=%{_libdir}/libz.a
  92. %install
  93. rm -rf ${RPM_BUILD_ROOT}
  94. mkdir -p ${RPM_BUILD_ROOT}/{etc,sbin}
  95. %makeinstall
  96. ( cd ${RPM_BUILD_ROOT}
  97. gzip -n -9f .%{_infodir}/*info*
  98. gzip -n -9f .%{_mandir}/*/*
  99. install -m644 ${RPM_SOURCE_DIR}/info-dir ./etc/info-dir
  100. ln -sf /etc/info-dir ${RPM_BUILD_ROOT}%{_infodir}/dir
  101. for i in makeinfo texindex info install-info ; do
  102. strip .%{_bindir}/$i
  103. done
  104. mv -f .%{_bindir}/install-info ./sbin
  105. )
  106. %find_lang %name
  107. %clean
  108. rm -rf ${RPM_BUILD_ROOT}
  109. %post
  110. /sbin/install-info %{_infodir}/texinfo.gz %{_infodir}/dir
  111. %preun
  112. if [ $1 = 0 ]; then
  113. /sbin/install-info --delete %{_infodir}/texinfo.gz %{_infodir}/dir
  114. fi
  115. %post -n info
  116. /sbin/install-info %{_infodir}/info-stnd.info.gz %{_infodir}/dir
  117. %preun -n info
  118. if [ $1 = 0 ]; then
  119. /sbin/install-info --delete %{_infodir}/info-stnd.info.gz %{_infodir}/dir
  120. fi
  121. %files -f %{name}.lang
  122. %defattr(-,root,root)
  123. %doc AUTHORS ChangeLog INSTALL INTRODUCTION NEWS README TODO
  124. %{_bindir}/makeinfo
  125. %{_bindir}/pdftexi2dvi
  126. %{_bindir}/texindex
  127. %{_bindir}/texi2dvi
  128. %{_bindir}/texi2pdf
  129. %{_datadir}/texinfo
  130. %{_infodir}/texinfo*
  131. %{_mandir}/man1/makeinfo.1*
  132. %{_mandir}/man1/pdftexi2dvi.1*
  133. %{_mandir}/man1/texindex.1*
  134. %{_mandir}/man1/texi2dvi.1*
  135. %{_mandir}/man1/texi2pdf.1*
  136. %{_mandir}/man5/texinfo.5*
  137. %files -n info
  138. %defattr(-,root,root)
  139. #%config(missingok) /etc/X11/applnk/Utilities/info.desktop
  140. #%config(noreplace) %verify(not md5 size mtime) /etc/info-dir
  141. #%config(noreplace) %{_infodir}/dir
  142. %doc info/README
  143. %{_bindir}/info
  144. %{_bindir}/infokey
  145. %{_infodir}/info.info*
  146. %{_infodir}/info-stnd.info*
  147. %{_mandir}/man1/info.1*
  148. %{_mandir}/man1/infokey.1*
  149. %{_mandir}/man5/info.5*
  150. %files -n install-info
  151. %defattr(-,root,root)
  152. %config(noreplace) %verify(not md5 size mtime) /etc/info-dir
  153. %config(noreplace) %{_infodir}/dir
  154. %{_syssbindir}/install-info
  155. %{_mandir}/man1/install-info.1*
  156. %changelog
  157. * Sun Jul 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.13a-2
  158. - rebuild with VineSeed environment
  159. * Sun Apr 24 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.13a-1
  160. - update to 4.13a
  161. - add patch2-6 from upstream
  162. - add BR: help2man
  163. * Mon May 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.13-2
  164. - add R: gzip, bzip2 into install-info to fix making vbootstrap env.
  165. - change tag Prereq -> Req(pre)
  166. * Wed Apr 21 2010 Shu KONNO <owa@bg.wakwak.com> 4.13-1
  167. - new upstream release, and rebuilt with new environment
  168. - dropt Patch3: texinfo-4.3-zlib.patch
  169. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 4.8-1vl5
  170. - applied new versioning policy, spec in utf-8
  171. * Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.8-0vl1
  172. - new upstream release (4.8a)
  173. - move /etc/info-dir, %%{_infodir}/dir to install-info package
  174. - add URL
  175. - not apply patch1
  176. * Thu Mar 09 2006 Shu KONNO <owa@bg.wakwak.com> 4.7-0vl2
  177. - rebuilt for x86_64 architecture support
  178. * Thu Jul 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7-0vl1
  179. - new upstream release
  180. * Sat Dec 20 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.2-5vl1
  181. - updated to 4.2 based on 4.2-5
  182. * Mon Sep 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-5
  183. - Fix crash w/ MALLOC_CHECK_ == 2 (#72831)
  184. * Tue Jul 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
  185. - Add infokey (#67728)
  186. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  187. - automated rebuild
  188. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  189. - automated rebuild
  190. * Tue Apr 23 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  191. - 4.2
  192. * Mon Apr 7 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 4.1-1vl4
  193. - rebuild
  194. * Fri Nov 29 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1-1vl3
  195. - /usr/info -> /usr/share/info (defined on the first line of this spec)
  196. (rpm-4.0.4-18vl11 and later will define so, though)
  197. * Sun Mar 17 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1-1vl2
  198. - rewrote changelog at 4.0b-3vl4 (fixed typo)
  199. - rebuild
  200. * Sat Mar 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1-1vl1
  201. - updated texinfo-4.1
  202. - fixed broken changelog ;P
  203. * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 4.0b-3vl4
  204. - updated on zlib (security Fix.)
  205. * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0b-3vl3
  206. - just rebuild with new release number.
  207. * Mon Feb 18 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0b-3vl2
  208. - Oops the spec was in Shift-JIS. Fixed.
  209. * Mon Feb 11 2002 akira yamada <akira@vinelinux.org> 4.0b-3vl2
  210. - %{_syssbindir}/install-info is separated from info package.
  211. - added autoconf, libtool, ncurses-devel, zlib-devel to BuildRequires.
  212. * Mon Jan 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0b-3vl1
  213. - based on 4.0b-3 from Rawhide and built for Vine Linux
  214. - added Japanese summary and description
  215. - fixed rpm macros
  216. * Tue Aug 7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.0b-3
  217. - Don't create the desktop file - we don't install it anyway.
  218. * Sat Jul 21 2001 Tim Powers <timp@redhat.com>
  219. - remove the info viewer from the menus, it's cluttering things
  220. * Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  221. - 4.0b
  222. * Tue Apr 24 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.0a-1
  223. - Update to 4.0a, the patch looks sane
  224. * Fri Feb 23 2001 Trond Eivind Glomsr <teg@redhat.com>
  225. - langify
  226. - don't create desktop file in spec file
  227. * Tue Jan 23 2001 Preston Brown <pbrown@redhat.com>
  228. - danish translation added
  229. * Tue Dec 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  230. - Rebuild to get rid of 0777 dirs
  231. * Wed Nov 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  232. - Fix recognition of .?o extensions in texi2dvi, Bug #20498
  233. * Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
  234. - FHS packaging (64bit systems need to use %%_libdir not /usr/lib).
  235. * Sat Aug 19 2000 Trond Eivind Glomsr <teg@redhat.com>
  236. - really do it - #16120
  237. * Mon Aug 14 2000 Helge Deller <hdeller@redhat.com>
  238. - gzip man-pages, #16120
  239. * Mon Aug 7 2000 Tim Waugh <twaugh@redhat.com>
  240. - List man-pages in %%files.
  241. * Fri Aug 4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  242. - Add Swedish and German translations to desktop file, Bug #15366
  243. * Thu Aug 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  244. - mark /etc/info-dir %%verify(not md5 size mime), Bug #14826
  245. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  246. - automatic rebuild
  247. * Wed Jun 28 2000 Bill Nottingham <notting@redhat.com>
  248. - fix build wackiness with info page compressing
  249. * Fri Jun 16 2000 Bill Nottingham <notting@redhat.com>
  250. - fix info-dir symlink
  251. * Thu May 18 2000 Preston Brown <pbrown@redhat.com>
  252. - use FHS paths for info.
  253. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  254. - rebuild with current ncurses
  255. * Wed Feb 09 2000 Preston Brown <pbrown@redhat.com>
  256. - wmconfig -> desktop
  257. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  258. - fix descriptions
  259. * Wed Jan 26 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  260. - move info-stnd.info* to the info package, /sbin/install-info it
  261. in %post (Bug #6632)
  262. * Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com>
  263. - recompile to eliminate ncurses foul-up.
  264. * Tue Nov 9 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  265. - 4.0
  266. - handle RPM_OPT_FLAGS
  267. * Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
  268. - import version 3.12h into 6.1 tree from HJLu
  269. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  270. - auto rebuild in the new build environment (release 4)
  271. * Wed Mar 17 1999 Erik Troan <ewt@redhat.com>
  272. - hacked to use zlib to get rid of the requirement on gzip
  273. * Wed Mar 17 1999 Matt Wilson <msw@redhat.com>
  274. - install-info prerequires gzip
  275. * Thu Mar 11 1999 Cristian Gafton <gafton@redhat.com>
  276. - version 3.12f
  277. - make /usr/info/dir to be a %config(noreplace)
  278. * Wed Nov 25 1998 Jeff Johnson <jbj@redhat.com>
  279. - rebuild to fix docdir perms.
  280. * Thu Sep 24 1998 Cristian Gafton <gafton@redhat.com>
  281. - fix allocation problems in install-info
  282. * Wed Sep 23 1998 Jeff Johnson <jbj@redhat.com>
  283. - /sbin/install-info should not depend on /usr/lib/libz.so.1 -- statically
  284. link with /usr/lib/libz.a.
  285. * Fri Aug 07 1998 Erik Troan <ewt@redhat.com>
  286. - added a prereq of bash to the info package -- see the comment for a
  287. description of why that was done
  288. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  289. - translations modified for de
  290. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  291. - add %attr to permit non-root build.
  292. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  293. - translations modified for de, fr, tr
  294. * Sun Apr 12 1998 Cristian Gafton <gafton@redhat.com>
  295. - added %clean
  296. - manhattan build
  297. * Wed Mar 04 1998 Cristian Gafton <gafton@redhat.com>
  298. - upgraded to version 3.12
  299. - added buildroot
  300. * Sun Nov 09 1997 Donnie Barnes <djb@redhat.com>
  301. - moved /usr/info/dir to /etc/info-dir and made /usr/info/dir a
  302. symlink to /etc/info-dir.
  303. * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
  304. - added wmconfig entry for info
  305. * Wed Oct 01 1997 Donnie Barnes <djb@redhat.com>
  306. - stripped /sbin/install-info
  307. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  308. - added info-dir to filelist
  309. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  310. - added patch from sopwith to let install-info understand gzip'ed info files
  311. - use skeletal dir file from texinfo tarball (w/ bash entry to reduce
  312. dependency chain) instead (and install-info command everywhere else)
  313. - patches install-info to handle .gz names correctly
  314. * Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
  315. - built against glibc
  316. * Tue Feb 25 1997 Erik Troan <ewt@redhat.com>
  317. - patched install-info.c for glibc.
  318. - added /usr/bin/install-info to the filelist
  319. * Tue Feb 18 1997 Michael Fulbright <msf@redhat.com>
  320. - upgraded to version 3.9.