texinfo-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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.7
  8. Release: 1%{?_dist_release}
  9. Group: Applications/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. Patch0: texinfo-4.12-zlib.patch
  18. # Patch1: this is needed just for koji/mock, all tests pass fine in local build
  19. Patch1: texinfo-6.0-disable-failing-info-test.patch
  20. # Patch2: rhbz#1348671, because of OSTree
  21. Patch2: texinfo-6.1-install-info-use-create-tmp-then-rename-pattern.patch
  22. # Patch3: we need to fix template fix-info-dir generates
  23. Patch3: info-6.5-sync-fix-info-dir.patch
  24. # Patch4: rhbz#1592433, bug in fix-info-dir --delete
  25. Patch4: texinfo-6.5-fix-info-dir.patch
  26. # Patch5: fixes issues detected by static analysis
  27. Patch5: texinfo-6.5-covscan-fixes.patch
  28. Requires(post): install-info
  29. Requires(preun): install-info
  30. Prefix: %{_prefix}
  31. Buildroot: %{_tmppath}/%{name}-%{version}-root
  32. BuildRequires: autoconf libtool ncurses-devel zlib-devel help2man
  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 Environment/Base
  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 install-info
  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 Environment/Base
  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. %prep
  83. %autosetup -p1
  84. %build
  85. %configure \
  86. --mandir=%{_mandir} \
  87. --infodir=%{_infodir} \
  88. --enable-perl-xs=no
  89. make %{?_smp_mflags}
  90. make -C util LIBS=%{_libdir}/libz.a
  91. %install
  92. rm -rf %{buildroot}
  93. mkdir -p %{buildroot}/{etc,sbin}
  94. %makeinstall
  95. ( cd %{buildroot}
  96. gzip -n -9f .%{_infodir}/*info*
  97. gzip -n -9f .%{_mandir}/*/*
  98. install -m644 ${RPM_SOURCE_DIR}/info-dir ./etc/info-dir
  99. ln -sf /etc/info-dir %{buildroot}%{_infodir}/dir
  100. mv -f .%{_bindir}/install-info ./sbin
  101. )
  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. %post
  112. /sbin/install-info %{_infodir}/texinfo.info.gz %{_infodir}/dir
  113. %preun
  114. if [ $1 = 0 ]; then
  115. /sbin/install-info --delete %{_infodir}/texinfo.info.gz %{_infodir}/dir
  116. fi
  117. %post -n info
  118. /sbin/install-info %{_infodir}/info-stnd.info.gz %{_infodir}/dir
  119. %preun -n info
  120. if [ $1 = 0 ]; then
  121. /sbin/install-info --delete %{_infodir}/info-stnd.info.gz %{_infodir}/dir
  122. fi
  123. %files -f %{name}.lang -f %{name}_document.lang
  124. %defattr(-,root,root)
  125. %license COPYING
  126. %doc AUTHORS ChangeLog NEWS README TODO
  127. %{_bindir}/makeinfo
  128. %{_bindir}/pdftexi2dvi
  129. %{_bindir}/pod2texi
  130. %{_bindir}/texi2any
  131. %{_bindir}/texi2dvi
  132. %{_bindir}/texi2pdf
  133. %{_bindir}/texindex
  134. %{_datadir}/texinfo
  135. %{_infodir}/texinfo*
  136. #dir %{_libdir}/texinfo
  137. #{_libdir}/texinfo/*
  138. %{_mandir}/man1/makeinfo.1*
  139. %{_mandir}/man1/pdftexi2dvi.1*
  140. %{_mandir}/man1/pod2texi.1.gz
  141. %{_mandir}/man1/texi2any.1.gz
  142. %{_mandir}/man1/texi2dvi.1*
  143. %{_mandir}/man1/texi2pdf.1*
  144. %{_mandir}/man1/texindex.1*
  145. %{_mandir}/man5/texinfo.5*
  146. %files -n info
  147. %defattr(-,root,root)
  148. #%config(missingok) /etc/X11/applnk/Utilities/info.desktop
  149. #%config(noreplace) %verify(not md5 size mtime) /etc/info-dir
  150. #%config(noreplace) %{_infodir}/dir
  151. %license COPYING
  152. %doc info/README
  153. %{_bindir}/info
  154. #{_bindir}/infokey
  155. #{_infodir}/info.info*
  156. %{_infodir}/info-stnd.info*
  157. %{_mandir}/man1/info.1*
  158. #{_mandir}/man1/infokey.1*
  159. %{_mandir}/man5/info.5*
  160. %files -n install-info
  161. %defattr(-,root,root)
  162. %license COPYING
  163. %config(noreplace) %verify(not md5 size mtime) /etc/info-dir
  164. %config(noreplace) %{_infodir}/dir
  165. %{_syssbindir}/install-info
  166. %{_mandir}/man1/install-info.1*
  167. %changelog
  168. * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.7-1
  169. - new upstream release.
  170. * Sun Jul 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.13a-2
  171. - rebuild with VineSeed environment
  172. * Sun Apr 24 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.13a-1
  173. - update to 4.13a
  174. - add patch2-6 from upstream
  175. - add BR: help2man
  176. * Mon May 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.13-2
  177. - add R: gzip, bzip2 into install-info to fix making vbootstrap env.
  178. - change tag Prereq -> Req(pre)
  179. * Wed Apr 21 2010 Shu KONNO <owa@bg.wakwak.com> 4.13-1
  180. - new upstream release, and rebuilt with new environment
  181. - dropt Patch3: texinfo-4.3-zlib.patch
  182. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 4.8-1vl5
  183. - applied new versioning policy, spec in utf-8
  184. * Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.8-0vl1
  185. - new upstream release (4.8a)
  186. - move /etc/info-dir, %%{_infodir}/dir to install-info package
  187. - add URL
  188. - not apply patch1
  189. * Thu Mar 09 2006 Shu KONNO <owa@bg.wakwak.com> 4.7-0vl2
  190. - rebuilt for x86_64 architecture support
  191. * Thu Jul 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7-0vl1
  192. - new upstream release
  193. * Sat Dec 20 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.2-5vl1
  194. - updated to 4.2 based on 4.2-5
  195. * Mon Sep 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-5
  196. - Fix crash w/ MALLOC_CHECK_ == 2 (#72831)
  197. * Tue Jul 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 4.2-4
  198. - Add infokey (#67728)
  199. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  200. - automated rebuild
  201. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  202. - automated rebuild
  203. * Tue Apr 23 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  204. - 4.2
  205. * Mon Apr 7 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 4.1-1vl4
  206. - rebuild
  207. * Fri Nov 29 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1-1vl3
  208. - /usr/info -> /usr/share/info (defined on the first line of this spec)
  209. (rpm-4.0.4-18vl11 and later will define so, though)
  210. * Sun Mar 17 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1-1vl2
  211. - rewrote changelog at 4.0b-3vl4 (fixed typo)
  212. - rebuild
  213. * Sat Mar 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1-1vl1
  214. - updated texinfo-4.1
  215. - fixed broken changelog ;P
  216. * Fri Mar 15 2002 Satoshi MACHINO <machino@vinelinux.org> 4.0b-3vl4
  217. - updated on zlib (security Fix.)
  218. * Wed Feb 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0b-3vl3
  219. - just rebuild with new release number.
  220. * Mon Feb 18 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0b-3vl2
  221. - Oops the spec was in Shift-JIS. Fixed.
  222. * Mon Feb 11 2002 akira yamada <akira@vinelinux.org> 4.0b-3vl2
  223. - %{_syssbindir}/install-info is separated from info package.
  224. - added autoconf, libtool, ncurses-devel, zlib-devel to BuildRequires.
  225. * Mon Jan 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0b-3vl1
  226. - based on 4.0b-3 from Rawhide and built for Vine Linux
  227. - added Japanese summary and description
  228. - fixed rpm macros
  229. * Tue Aug 7 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.0b-3
  230. - Don't create the desktop file - we don't install it anyway.
  231. * Sat Jul 21 2001 Tim Powers <timp@redhat.com>
  232. - remove the info viewer from the menus, it's cluttering things
  233. * Wed May 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  234. - 4.0b
  235. * Tue Apr 24 2001 Bernhard Rosenkraenzer <bero@redhat.com> 4.0a-1
  236. - Update to 4.0a, the patch looks sane
  237. * Fri Feb 23 2001 Trond Eivind Glomsr <teg@redhat.com>
  238. - langify
  239. - don't create desktop file in spec file
  240. * Tue Jan 23 2001 Preston Brown <pbrown@redhat.com>
  241. - danish translation added
  242. * Tue Dec 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  243. - Rebuild to get rid of 0777 dirs
  244. * Wed Nov 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  245. - Fix recognition of .?o extensions in texi2dvi, Bug #20498
  246. * Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
  247. - FHS packaging (64bit systems need to use %%_libdir not /usr/lib).
  248. * Sat Aug 19 2000 Trond Eivind Glomsr <teg@redhat.com>
  249. - really do it - #16120
  250. * Mon Aug 14 2000 Helge Deller <hdeller@redhat.com>
  251. - gzip man-pages, #16120
  252. * Mon Aug 7 2000 Tim Waugh <twaugh@redhat.com>
  253. - List man-pages in %%files.
  254. * Fri Aug 4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  255. - Add Swedish and German translations to desktop file, Bug #15366
  256. * Thu Aug 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  257. - mark /etc/info-dir %%verify(not md5 size mime), Bug #14826
  258. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  259. - automatic rebuild
  260. * Wed Jun 28 2000 Bill Nottingham <notting@redhat.com>
  261. - fix build wackiness with info page compressing
  262. * Fri Jun 16 2000 Bill Nottingham <notting@redhat.com>
  263. - fix info-dir symlink
  264. * Thu May 18 2000 Preston Brown <pbrown@redhat.com>
  265. - use FHS paths for info.
  266. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  267. - rebuild with current ncurses
  268. * Wed Feb 09 2000 Preston Brown <pbrown@redhat.com>
  269. - wmconfig -> desktop
  270. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  271. - fix descriptions
  272. * Wed Jan 26 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  273. - move info-stnd.info* to the info package, /sbin/install-info it
  274. in %post (Bug #6632)
  275. * Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com>
  276. - recompile to eliminate ncurses foul-up.
  277. * Tue Nov 9 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  278. - 4.0
  279. - handle RPM_OPT_FLAGS
  280. * Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
  281. - import version 3.12h into 6.1 tree from HJLu
  282. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  283. - auto rebuild in the new build environment (release 4)
  284. * Wed Mar 17 1999 Erik Troan <ewt@redhat.com>
  285. - hacked to use zlib to get rid of the requirement on gzip
  286. * Wed Mar 17 1999 Matt Wilson <msw@redhat.com>
  287. - install-info prerequires gzip
  288. * Thu Mar 11 1999 Cristian Gafton <gafton@redhat.com>
  289. - version 3.12f
  290. - make /usr/info/dir to be a %config(noreplace)
  291. * Wed Nov 25 1998 Jeff Johnson <jbj@redhat.com>
  292. - rebuild to fix docdir perms.
  293. * Thu Sep 24 1998 Cristian Gafton <gafton@redhat.com>
  294. - fix allocation problems in install-info
  295. * Wed Sep 23 1998 Jeff Johnson <jbj@redhat.com>
  296. - /sbin/install-info should not depend on /usr/lib/libz.so.1 -- statically
  297. link with /usr/lib/libz.a.
  298. * Fri Aug 07 1998 Erik Troan <ewt@redhat.com>
  299. - added a prereq of bash to the info package -- see the comment for a
  300. description of why that was done
  301. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  302. - translations modified for de
  303. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  304. - add %attr to permit non-root build.
  305. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  306. - translations modified for de, fr, tr
  307. * Sun Apr 12 1998 Cristian Gafton <gafton@redhat.com>
  308. - added %clean
  309. - manhattan build
  310. * Wed Mar 04 1998 Cristian Gafton <gafton@redhat.com>
  311. - upgraded to version 3.12
  312. - added buildroot
  313. * Sun Nov 09 1997 Donnie Barnes <djb@redhat.com>
  314. - moved /usr/info/dir to /etc/info-dir and made /usr/info/dir a
  315. symlink to /etc/info-dir.
  316. * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
  317. - added wmconfig entry for info
  318. * Wed Oct 01 1997 Donnie Barnes <djb@redhat.com>
  319. - stripped /sbin/install-info
  320. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  321. - added info-dir to filelist
  322. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  323. - added patch from sopwith to let install-info understand gzip'ed info files
  324. - use skeletal dir file from texinfo tarball (w/ bash entry to reduce
  325. dependency chain) instead (and install-info command everywhere else)
  326. - patches install-info to handle .gz names correctly
  327. * Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
  328. - built against glibc
  329. * Tue Feb 25 1997 Erik Troan <ewt@redhat.com>
  330. - patched install-info.c for glibc.
  331. - added /usr/bin/install-info to the filelist
  332. * Tue Feb 18 1997 Michael Fulbright <msf@redhat.com>
  333. - upgraded to version 3.9.