texinfo-vl.spec 14 KB

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