/[packages]/cauldron/texinfo/current/SPECS/texinfo.spec
ViewVC logotype

Contents of /cauldron/texinfo/current/SPECS/texinfo.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 462387 - (show annotations) (download)
Thu Aug 1 20:47:26 2013 UTC (10 years, 8 months ago) by malo
File size: 5023 byte(s)
fix makeinfo man page
1 %define name texinfo
2 %define version 5.1
3 %define release %mkrel 3
4
5 %define bootstrap 0
6 %{?_without_bootstrap: %global bootstrap 0}
7 %{?_with_bootstrap: %global bootstrap 1}
8
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}
12 Summary: Tools needed to create Texinfo format documentation files
13 License: GPLv3
14 Group: Publishing
15 URL: http://www.texinfo.org/
16 Source0: ftp://ftp.gnu.org/pub/gnu/texinfo/%{name}-%{version}.tar.xz
17 Source1: info-dir
18 Patch107: texinfo-4.13-vikeys-segfault-fix.patch
19 Patch200: texinfo-4.13-mb_modeline.patch
20 # Fedora zlib patch
21 Patch300: texinfo-4.12-zlib.patch
22
23 # (anssi 01/2008) for make check:
24 %if %bootstrap == 0
25 BuildRequires: tetex
26 BuildRequires: tetex-latex
27 BuildRequires: xmltex
28 %endif
29 BuildRequires: ncurses-devel
30 BuildRequires: zlib-devel
31 BuildRequires: help2man
32 Requires(pre): info-install
33 Requires(preun): info-install
34 Conflicts: texinfo-tex < 5.1-2
35
36 %description
37 Texinfo is a documentation system that can produce both online information
38 and printed output from a single source file. Normally, you'd have to
39 write two separate documents: one for online help or other online
40 information and the other for a typeset manual or other printed work.
41 Using Texinfo, you only need to write one source document. Then when the
42 work needs revision, you only have to revise one source document. The GNU
43 Project uses the Texinfo file format for most of its documentation.
44
45 Install texinfo if you want a documentation system for producing both
46 online and print documentation from the same source file and/or if you are
47 going to write documentation for the GNU Project.
48
49 %package -n info
50 Summary: A stand-alone TTY-based reader for GNU texinfo documentation
51 Group: System/Base
52 Requires(pre): info-install
53 Requires(preun): info-install
54
55 %description -n info
56 The GNU project uses the texinfo file format for much of its
57 documentation. The info package provides a standalone TTY-based browser
58 program for viewing texinfo files.
59
60 You should install info, because GNU's texinfo documentation is a valuable
61 source of information about the software on your system.
62
63 %package -n info-install
64 Summary: Program to update the GNU texinfo documentation main page
65 Group: System/Base
66 Requires: xz
67 # explicit file provides
68 Provides: /sbin/install-info
69 Conflicts: dpkg < 1.16.8-6
70
71 %description -n info-install
72 The GNU project uses the texinfo file format for much of its
73 documentation. The info package provides a standalone TTY-based browser
74 program for viewing texinfo files.
75
76 %package tex
77 Summary: Tools for formatting Texinfo documentation files using TeX
78 Group: Publishing
79 Requires: texinfo = %{version}-%{release}
80 Requires: texmf-data
81 Requires: texlive
82 Requires(post): texlive
83 Requires(postun): texlive
84 # conflict necessary for upgrade (version is when makfile symlink is moved)
85 Conflicts: texinfo < 5.1-2
86
87 %description tex
88 Texinfo is a documentation system that can produce both online
89 information and printed output from a single source file. The GNU
90 Project uses the Texinfo file format for most of its documentation.
91
92 The texinfo-tex package provides tools to format Texinfo documents
93 for printing using TeX.
94
95 %prep
96 %setup -qn %name-%{version}
97 %patch107 -p1
98 %patch200 -p1 -b .mb_modeline
99 %patch300 -p1
100
101 %build
102 %configure2_5x \
103 --disable-rpath
104
105 %make
106 rm -f util/install-info
107 %make -C util LIBS=%{_libdir}/libz.a
108
109 %check
110 # all tests must pass
111 # (tmb) incompatible with perl-5.18
112 # make check
113
114 %install
115 %makeinstall_std
116 install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir
117 rm -rf %{buildroot}%{_infodir}/dir
118 ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir
119 mkdir -p %{buildroot}/sbin
120 mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info
121 mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig
122
123 # Doc install for the tex subpackage (from Fedora)
124 mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo
125 install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo
126
127 %find_lang %{name}
128 %find_lang %{name}_document
129
130 %post
131 %_install_info %{name}
132
133 %preun
134 %_remove_install_info %{name}
135
136 %post -n info
137 %_install_info info.info
138
139 %preun -n info
140 %_remove_install_info info.info
141
142 %files -f %{name}.lang -f %{name}_document.lang
143 %doc AUTHORS NEWS README TODO
144 %doc info/README
145 %{_infodir}/info-stnd.info*
146 %{_infodir}/texinfo*
147 %{_mandir}/man5/texinfo.5*
148 %{_datadir}/texinfo
149
150 %files -n info
151 %{_bindir}/info
152 %{_infodir}/info.info*
153 %{_bindir}/infokey
154
155 %files -n info-install
156 %config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir
157 %{_infodir}/dir
158 /sbin/install-info
159 %{_mandir}/man1/info.1*
160 %{_mandir}/man1/infokey.1*
161 %{_mandir}/man1/install-info.1*
162 %{_mandir}/man5/info.5*
163
164 %files tex
165 %{_bindir}/makeinfo
166 %{_bindir}/texindex
167 %{_bindir}/texi2dvi
168 %{_bindir}/texi2pdf
169 %{_bindir}/texi2any
170 %{_bindir}/pdftexi2dvi
171 %{_bindir}/pod2texi
172 %{_datadir}/texmf/tex/texinfo
173 %{_mandir}/man1/texindex.1*
174 %{_mandir}/man1/texi2dvi.1*
175 %{_mandir}/man1/texi2pdf.1*
176 %{_mandir}/man1/texi2any.1*
177 %{_mandir}/man1/pod2texi.1*
178 %{_mandir}/man1/pdftexi2dvi.1*
179 %{_mandir}/man1/makeinfo.1*

  ViewVC Help
Powered by ViewVC 1.1.30