1 |
%define name texinfo |
2 |
%define version 5.1 |
3 |
%define release %mkrel 2 |
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 |
make check |
112 |
|
113 |
%install |
114 |
%makeinstall_std |
115 |
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir |
116 |
rm -rf %{buildroot}%{_infodir}/dir |
117 |
ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir |
118 |
mkdir -p %{buildroot}/sbin |
119 |
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info |
120 |
mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig |
121 |
|
122 |
# Doc install for the tex subpackage (from Fedora) |
123 |
mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo |
124 |
install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo |
125 |
|
126 |
%find_lang %{name} |
127 |
%find_lang %{name}_document |
128 |
|
129 |
%post |
130 |
%_install_info %{name} |
131 |
|
132 |
%preun |
133 |
%_remove_install_info %{name} |
134 |
|
135 |
%post -n info |
136 |
%_install_info info.info |
137 |
|
138 |
%preun -n info |
139 |
%_remove_install_info info.info |
140 |
|
141 |
%files -f %{name}.lang -f %{name}_document.lang |
142 |
%doc AUTHORS NEWS README TODO |
143 |
%doc info/README |
144 |
%{_infodir}/info-stnd.info* |
145 |
%{_infodir}/texinfo* |
146 |
%{_mandir}/man1/makeinfo.1* |
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* |