1 |
ahmad |
6305 |
%define name texinfo |
2 |
|
|
%define version 4.13a |
3 |
malo |
258670 |
%define release %mkrel 4 |
4 |
ahmad |
6305 |
|
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 |
malo |
258671 |
License: GPLv3 |
14 |
ahmad |
6305 |
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 |
malo |
258656 |
# Upstream/Gentoo patch to fix accent encoding test |
28 |
|
|
Patch201: texinfo-4.13-accentenc-test.patch |
29 |
ahmad |
6305 |
# (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 |
malo |
258670 |
%package tex |
80 |
malo |
258671 |
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 |
malo |
258670 |
|
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 |
ahmad |
6305 |
%prep |
97 |
|
|
%setup -qn %name-4.13 |
98 |
|
|
%patch1 -p1 |
99 |
|
|
%patch2 -p1 -b .test~ |
100 |
|
|
%patch3 -p1 -b .parallel~ |
101 |
|
|
%patch107 -p1 |
102 |
|
|
%patch108 -p1 -b .xz~ |
103 |
|
|
%patch109 -p1 -b .size_t~ |
104 |
|
|
%patch200 -p1 -b .mb_modeline |
105 |
malo |
258656 |
%patch201 -p1 |
106 |
ahmad |
6305 |
|
107 |
|
|
%build |
108 |
|
|
%configure2_5x \ |
109 |
|
|
--disable-rpath |
110 |
|
|
|
111 |
malo |
258671 |
%make |
112 |
ahmad |
6305 |
rm -f util/install-info |
113 |
|
|
%make -C util LIBS=%{_libdir}/libz.a |
114 |
|
|
|
115 |
|
|
%check |
116 |
|
|
# all tests must pass |
117 |
|
|
make check |
118 |
|
|
|
119 |
|
|
%install |
120 |
|
|
%makeinstall_std |
121 |
|
|
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir |
122 |
wally |
133434 |
rm -rf %{buildroot}%{_infodir}/dir |
123 |
|
|
ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir |
124 |
ahmad |
6305 |
mkdir -p %{buildroot}/sbin |
125 |
|
|
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info |
126 |
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig |
127 |
|
|
|
128 |
malo |
258670 |
# Doc install for the tex subpackage (from Fedora) |
129 |
|
|
mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo |
130 |
|
|
install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo |
131 |
|
|
|
132 |
ahmad |
6305 |
%find_lang %{name} |
133 |
|
|
|
134 |
|
|
%post |
135 |
|
|
%_install_info %{name} |
136 |
|
|
|
137 |
|
|
%preun |
138 |
|
|
%_remove_install_info %{name} |
139 |
|
|
|
140 |
|
|
%post -n info |
141 |
|
|
%_install_info info.info |
142 |
|
|
|
143 |
|
|
%preun -n info |
144 |
|
|
%_remove_install_info info.info |
145 |
|
|
|
146 |
|
|
%files -f %{name}.lang |
147 |
|
|
%doc AUTHORS INTRODUCTION NEWS README TODO |
148 |
|
|
%doc --parents info/README |
149 |
|
|
%{_bindir}/makeinfo |
150 |
|
|
%{_infodir}/info-stnd.info* |
151 |
|
|
%{_infodir}/texinfo* |
152 |
|
|
%{_mandir}/man1/makeinfo.1* |
153 |
malo |
258671 |
%{_mandir}/man5/texinfo.5* |
154 |
ahmad |
6305 |
%{_datadir}/texinfo |
155 |
|
|
|
156 |
|
|
%files -n info |
157 |
|
|
%{_bindir}/info |
158 |
|
|
%{_infodir}/info.info* |
159 |
|
|
%{_bindir}/infokey |
160 |
|
|
|
161 |
|
|
%files -n info-install |
162 |
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir |
163 |
|
|
%{_infodir}/dir |
164 |
|
|
/sbin/install-info |
165 |
|
|
%{_mandir}/man1/info.1* |
166 |
|
|
%{_mandir}/man1/infokey.1* |
167 |
|
|
%{_mandir}/man1/install-info.1* |
168 |
|
|
%{_mandir}/man5/info.5* |
169 |
|
|
|
170 |
malo |
258670 |
%files tex |
171 |
|
|
%{_bindir}/texindex |
172 |
|
|
%{_bindir}/texi2dvi |
173 |
|
|
%{_bindir}/texi2pdf |
174 |
|
|
%{_bindir}/pdftexi2dvi |
175 |
|
|
%{_datadir}/texmf/tex/texinfo |
176 |
|
|
%{_mandir}/man1/texindex.1* |
177 |
|
|
%{_mandir}/man1/texi2dvi.1* |
178 |
|
|
%{_mandir}/man1/texi2pdf.1* |
179 |
|
|
%{_mandir}/man1/pdftexi2dvi.1* |