1 |
%define name texinfo |
2 |
%define version 5.2 |
3 |
%define release %mkrel 1 |
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 |
# conflict necessary for upgrade (version is when makfile symlink and texi2any is moved) |
35 |
Conflicts: texinfo-tex < 5.1-4 |
36 |
|
37 |
%description |
38 |
Texinfo is a documentation system that can produce both online information |
39 |
and printed output from a single source file. Normally, you'd have to |
40 |
write two separate documents: one for online help or other online |
41 |
information and the other for a typeset manual or other printed work. |
42 |
Using Texinfo, you only need to write one source document. Then when the |
43 |
work needs revision, you only have to revise one source document. The GNU |
44 |
Project uses the Texinfo file format for most of its documentation. |
45 |
|
46 |
Install texinfo if you want a documentation system for producing both |
47 |
online and print documentation from the same source file and/or if you are |
48 |
going to write documentation for the GNU Project. |
49 |
|
50 |
%package -n info |
51 |
Summary: A stand-alone TTY-based reader for GNU texinfo documentation |
52 |
Group: System/Base |
53 |
Requires(pre): info-install |
54 |
Requires(preun): info-install |
55 |
|
56 |
%description -n info |
57 |
The GNU project uses the texinfo file format for much of its |
58 |
documentation. The info package provides a standalone TTY-based browser |
59 |
program for viewing texinfo files. |
60 |
|
61 |
You should install info, because GNU's texinfo documentation is a valuable |
62 |
source of information about the software on your system. |
63 |
|
64 |
%package -n info-install |
65 |
Summary: Program to update the GNU texinfo documentation main page |
66 |
Group: System/Base |
67 |
Requires: xz |
68 |
# explicit file provides |
69 |
Provides: /sbin/install-info |
70 |
Conflicts: dpkg < 1.16.8-6 |
71 |
|
72 |
%description -n info-install |
73 |
The GNU project uses the texinfo file format for much of its |
74 |
documentation. The info package provides a standalone TTY-based browser |
75 |
program for viewing texinfo files. |
76 |
|
77 |
%package tex |
78 |
Summary: Tools for formatting Texinfo documentation files using TeX |
79 |
Group: Publishing |
80 |
Requires: texinfo = %{version}-%{release} |
81 |
Requires: texmf-data |
82 |
Requires: texlive |
83 |
Requires(post): texlive |
84 |
Requires(postun): texlive |
85 |
# conflict necessary for upgrade (version is when makfile symlink and texi2any is moved) |
86 |
Conflicts: texinfo < 5.1-4 |
87 |
|
88 |
%description tex |
89 |
Texinfo is a documentation system that can produce both online |
90 |
information and printed output from a single source file. The GNU |
91 |
Project uses the Texinfo file format for most of its documentation. |
92 |
|
93 |
The texinfo-tex package provides tools to format Texinfo documents |
94 |
for printing using TeX. |
95 |
|
96 |
%prep |
97 |
%setup -qn %name-%{version} |
98 |
%patch107 -p1 |
99 |
%patch200 -p1 -b .mb_modeline |
100 |
%patch300 -p1 |
101 |
|
102 |
%build |
103 |
%configure2_5x \ |
104 |
--disable-rpath |
105 |
|
106 |
%make |
107 |
rm -f util/install-info |
108 |
%make -C util LIBS=%{_libdir}/libz.a |
109 |
|
110 |
%check |
111 |
# all tests must pass |
112 |
# (tmb) incompatible with perl-5.18 |
113 |
# make check |
114 |
|
115 |
%install |
116 |
%makeinstall_std |
117 |
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir |
118 |
rm -rf %{buildroot}%{_infodir}/dir |
119 |
ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir |
120 |
mkdir -p %{buildroot}/sbin |
121 |
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info |
122 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig |
123 |
|
124 |
# Doc install for the tex subpackage (from Fedora) |
125 |
mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo |
126 |
install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo |
127 |
|
128 |
%find_lang %{name} |
129 |
%find_lang %{name}_document |
130 |
|
131 |
%post |
132 |
%_install_info %{name} |
133 |
|
134 |
%preun |
135 |
%_remove_install_info %{name} |
136 |
|
137 |
%post -n info |
138 |
%_install_info info.info |
139 |
|
140 |
%preun -n info |
141 |
%_remove_install_info info.info |
142 |
|
143 |
%files -f %{name}.lang -f %{name}_document.lang |
144 |
%doc AUTHORS NEWS README TODO |
145 |
%doc info/README |
146 |
%{_bindir}/makeinfo |
147 |
%{_bindir}/texi2any |
148 |
%{_infodir}/info-stnd.info* |
149 |
%{_infodir}/texinfo* |
150 |
%{_mandir}/man1/makeinfo.1* |
151 |
%{_mandir}/man1/texi2any.1* |
152 |
%{_mandir}/man5/texinfo.5* |
153 |
%{_datadir}/texinfo |
154 |
|
155 |
%files -n info |
156 |
%{_bindir}/info |
157 |
%{_infodir}/info.info* |
158 |
%{_bindir}/infokey |
159 |
|
160 |
%files -n info-install |
161 |
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir |
162 |
%{_infodir}/dir |
163 |
/sbin/install-info |
164 |
%{_mandir}/man1/info.1* |
165 |
%{_mandir}/man1/infokey.1* |
166 |
%{_mandir}/man1/install-info.1* |
167 |
%{_mandir}/man5/info.5* |
168 |
|
169 |
%files tex |
170 |
%{_bindir}/texindex |
171 |
%{_bindir}/texi2dvi |
172 |
%{_bindir}/texi2pdf |
173 |
%{_bindir}/pdftexi2dvi |
174 |
%{_bindir}/pod2texi |
175 |
%{_datadir}/texmf/tex/texinfo |
176 |
%{_mandir}/man1/texindex.1* |
177 |
%{_mandir}/man1/texi2dvi.1* |
178 |
%{_mandir}/man1/texi2pdf.1* |
179 |
%{_mandir}/man1/pod2texi.1* |
180 |
%{_mandir}/man1/pdftexi2dvi.1* |