texinfo-vl.spec 14 KB

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