texinfo-vl.spec 14 KB

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