1 |
%define name texinfo |
2 |
%define version 4.13a |
3 |
%define release %mkrel 6 |
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.lzma |
17 |
Source1: info-dir |
18 |
Patch1: texinfo-3.12h-fix.patch |
19 |
Patch2: texinfo-4.13-test.patch |
20 |
Patch3: texinfo-4.13-fix-crash-used-parallel.patch |
21 |
Patch107: texinfo-4.13-vikeys-segfault-fix.patch |
22 |
Patch108: texinfo-4.13-xz.patch |
23 |
# backported from cvs |
24 |
Patch109: texinfo-4.13-use-size_t-for-len.patch |
25 |
# Local fixes submitted upstream |
26 |
Patch200: texinfo-4.13-mb_modeline.patch |
27 |
# Upstream/Gentoo patch to fix accent encoding test |
28 |
Patch201: texinfo-4.13-accentenc-test.patch |
29 |
# (anssi 01/2008) for make check: |
30 |
%if %bootstrap == 0 |
31 |
BuildRequires: tetex |
32 |
BuildRequires: tetex-latex |
33 |
%endif |
34 |
BuildRequires: ncurses-devel |
35 |
BuildRequires: zlib-devel |
36 |
BuildRequires: help2man |
37 |
Requires(pre): info-install |
38 |
Requires(preun): info-install |
39 |
|
40 |
%description |
41 |
Texinfo is a documentation system that can produce both online information |
42 |
and printed output from a single source file. Normally, you'd have to |
43 |
write two separate documents: one for online help or other online |
44 |
information and the other for a typeset manual or other printed work. |
45 |
Using Texinfo, you only need to write one source document. Then when the |
46 |
work needs revision, you only have to revise one source document. The GNU |
47 |
Project uses the Texinfo file format for most of its documentation. |
48 |
|
49 |
Install texinfo if you want a documentation system for producing both |
50 |
online and print documentation from the same source file and/or if you are |
51 |
going to write documentation for the GNU Project. |
52 |
|
53 |
%package -n info |
54 |
Summary: A stand-alone TTY-based reader for GNU texinfo documentation |
55 |
Group: System/Base |
56 |
Requires(pre): info-install |
57 |
Requires(preun): info-install |
58 |
|
59 |
%description -n info |
60 |
The GNU project uses the texinfo file format for much of its |
61 |
documentation. The info package provides a standalone TTY-based browser |
62 |
program for viewing texinfo files. |
63 |
|
64 |
You should install info, because GNU's texinfo documentation is a valuable |
65 |
source of information about the software on your system. |
66 |
|
67 |
%package -n info-install |
68 |
Summary: Program to update the GNU texinfo documentation main page |
69 |
Group: System/Base |
70 |
Requires: xz |
71 |
# explicit file provides |
72 |
Provides: /sbin/install-info |
73 |
|
74 |
%description -n info-install |
75 |
The GNU project uses the texinfo file format for much of its |
76 |
documentation. The info package provides a standalone TTY-based browser |
77 |
program for viewing texinfo files. |
78 |
|
79 |
%package tex |
80 |
Summary: Tools for formatting Texinfo documentation files using TeX |
81 |
Group: Publishing |
82 |
Requires: texinfo = %{version}-%{release} |
83 |
Requires: texmf-data |
84 |
Requires: texlive |
85 |
Requires(post): %{_bindir}/texconfig-sys |
86 |
Requires(postun): %{_bindir}/texconfig-sys |
87 |
# conflict necessary for upgrade (version is when the tex subpackage is created) |
88 |
Conflicts: texinfo < 4.13a-4 |
89 |
|
90 |
%description tex |
91 |
Texinfo is a documentation system that can produce both online |
92 |
information and printed output from a single source file. The GNU |
93 |
Project uses the Texinfo file format for most of its documentation. |
94 |
|
95 |
The texinfo-tex package provides tools to format Texinfo documents |
96 |
for printing using TeX. |
97 |
|
98 |
%prep |
99 |
%setup -qn %name-4.13 |
100 |
%patch1 -p1 |
101 |
%patch2 -p1 -b .test~ |
102 |
%patch3 -p1 -b .parallel~ |
103 |
%patch107 -p1 |
104 |
%patch108 -p1 -b .xz~ |
105 |
%patch109 -p1 -b .size_t~ |
106 |
%patch200 -p1 -b .mb_modeline |
107 |
%patch201 -p1 |
108 |
|
109 |
%build |
110 |
%configure2_5x \ |
111 |
--disable-rpath |
112 |
|
113 |
%make |
114 |
rm -f util/install-info |
115 |
%make -C util LIBS=%{_libdir}/libz.a |
116 |
|
117 |
%check |
118 |
# all tests must pass |
119 |
make check |
120 |
|
121 |
%install |
122 |
%makeinstall_std |
123 |
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir |
124 |
rm -rf %{buildroot}%{_infodir}/dir |
125 |
ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir |
126 |
mkdir -p %{buildroot}/sbin |
127 |
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info |
128 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig |
129 |
|
130 |
# Doc install for the tex subpackage (from Fedora) |
131 |
mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo |
132 |
install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo |
133 |
|
134 |
%find_lang %{name} |
135 |
|
136 |
%post |
137 |
%_install_info %{name} |
138 |
|
139 |
%preun |
140 |
%_remove_install_info %{name} |
141 |
|
142 |
%post -n info |
143 |
%_install_info info.info |
144 |
|
145 |
%preun -n info |
146 |
%_remove_install_info info.info |
147 |
|
148 |
%files -f %{name}.lang |
149 |
%doc AUTHORS INTRODUCTION NEWS README TODO |
150 |
%doc --parents info/README |
151 |
%{_bindir}/makeinfo |
152 |
%{_infodir}/info-stnd.info* |
153 |
%{_infodir}/texinfo* |
154 |
%{_mandir}/man1/makeinfo.1* |
155 |
%{_mandir}/man5/texinfo.5* |
156 |
%{_datadir}/texinfo |
157 |
|
158 |
%files -n info |
159 |
%{_bindir}/info |
160 |
%{_infodir}/info.info* |
161 |
%{_bindir}/infokey |
162 |
|
163 |
%files -n info-install |
164 |
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir |
165 |
%{_infodir}/dir |
166 |
/sbin/install-info |
167 |
%{_mandir}/man1/info.1* |
168 |
%{_mandir}/man1/infokey.1* |
169 |
%{_mandir}/man1/install-info.1* |
170 |
%{_mandir}/man5/info.5* |
171 |
|
172 |
%files tex |
173 |
%{_bindir}/texindex |
174 |
%{_bindir}/texi2dvi |
175 |
%{_bindir}/texi2pdf |
176 |
%{_bindir}/pdftexi2dvi |
177 |
%{_datadir}/texmf/tex/texinfo |
178 |
%{_mandir}/man1/texindex.1* |
179 |
%{_mandir}/man1/texi2dvi.1* |
180 |
%{_mandir}/man1/texi2pdf.1* |
181 |
%{_mandir}/man1/pdftexi2dvi.1* |