texinfo-vl.spec 14 KB

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