1 |
ahmad |
6305 |
%define name texinfo |
2 |
malo |
457430 |
%define version 5.1 |
3 |
malo |
462491 |
%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 |
malo |
457430 |
Source0: ftp://ftp.gnu.org/pub/gnu/texinfo/%{name}-%{version}.tar.xz |
17 |
ahmad |
6305 |
Source1: info-dir |
18 |
|
|
Patch107: texinfo-4.13-vikeys-segfault-fix.patch |
19 |
|
|
Patch200: texinfo-4.13-mb_modeline.patch |
20 |
malo |
457430 |
# Fedora zlib patch |
21 |
|
|
Patch300: texinfo-4.12-zlib.patch |
22 |
|
|
|
23 |
ahmad |
6305 |
# (anssi 01/2008) for make check: |
24 |
|
|
%if %bootstrap == 0 |
25 |
|
|
BuildRequires: tetex |
26 |
|
|
BuildRequires: tetex-latex |
27 |
malo |
458095 |
BuildRequires: xmltex |
28 |
ahmad |
6305 |
%endif |
29 |
|
|
BuildRequires: ncurses-devel |
30 |
|
|
BuildRequires: zlib-devel |
31 |
|
|
BuildRequires: help2man |
32 |
|
|
Requires(pre): info-install |
33 |
|
|
Requires(preun): info-install |
34 |
tmb |
459617 |
Conflicts: texinfo-tex < 5.1-2 |
35 |
ahmad |
6305 |
|
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 |
tmb |
413508 |
Conflicts: dpkg < 1.16.8-6 |
70 |
ahmad |
6305 |
|
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 |
malo |
258670 |
%package tex |
77 |
malo |
258671 |
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 |
pterjan |
391614 |
Requires(post): texlive |
83 |
|
|
Requires(postun): texlive |
84 |
tmb |
459617 |
# conflict necessary for upgrade (version is when makfile symlink is moved) |
85 |
|
|
Conflicts: texinfo < 5.1-2 |
86 |
malo |
258670 |
|
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 |
ahmad |
6305 |
%prep |
96 |
malo |
457430 |
%setup -qn %name-%{version} |
97 |
ahmad |
6305 |
%patch107 -p1 |
98 |
|
|
%patch200 -p1 -b .mb_modeline |
99 |
malo |
457430 |
%patch300 -p1 |
100 |
ahmad |
6305 |
|
101 |
|
|
%build |
102 |
|
|
%configure2_5x \ |
103 |
|
|
--disable-rpath |
104 |
|
|
|
105 |
malo |
258671 |
%make |
106 |
ahmad |
6305 |
rm -f util/install-info |
107 |
|
|
%make -C util LIBS=%{_libdir}/libz.a |
108 |
|
|
|
109 |
|
|
%check |
110 |
|
|
# all tests must pass |
111 |
tmb |
459649 |
# (tmb) incompatible with perl-5.18 |
112 |
|
|
# make check |
113 |
ahmad |
6305 |
|
114 |
|
|
%install |
115 |
|
|
%makeinstall_std |
116 |
|
|
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir |
117 |
wally |
133434 |
rm -rf %{buildroot}%{_infodir}/dir |
118 |
|
|
ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir |
119 |
ahmad |
6305 |
mkdir -p %{buildroot}/sbin |
120 |
|
|
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info |
121 |
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig |
122 |
|
|
|
123 |
malo |
258670 |
# 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 |
ahmad |
6305 |
%find_lang %{name} |
128 |
malo |
457430 |
%find_lang %{name}_document |
129 |
ahmad |
6305 |
|
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 |
malo |
457430 |
%files -f %{name}.lang -f %{name}_document.lang |
143 |
|
|
%doc AUTHORS NEWS README TODO |
144 |
malo |
390457 |
%doc info/README |
145 |
malo |
462491 |
%{_bindir}/makeinfo |
146 |
|
|
%{_bindir}/texi2any |
147 |
ahmad |
6305 |
%{_infodir}/info-stnd.info* |
148 |
|
|
%{_infodir}/texinfo* |
149 |
malo |
462491 |
%{_mandir}/man1/makeinfo.1* |
150 |
|
|
%{_mandir}/man1/texi2any.1* |
151 |
malo |
258671 |
%{_mandir}/man5/texinfo.5* |
152 |
ahmad |
6305 |
%{_datadir}/texinfo |
153 |
|
|
|
154 |
|
|
%files -n info |
155 |
|
|
%{_bindir}/info |
156 |
|
|
%{_infodir}/info.info* |
157 |
|
|
%{_bindir}/infokey |
158 |
|
|
|
159 |
|
|
%files -n info-install |
160 |
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir |
161 |
|
|
%{_infodir}/dir |
162 |
|
|
/sbin/install-info |
163 |
|
|
%{_mandir}/man1/info.1* |
164 |
|
|
%{_mandir}/man1/infokey.1* |
165 |
|
|
%{_mandir}/man1/install-info.1* |
166 |
|
|
%{_mandir}/man5/info.5* |
167 |
|
|
|
168 |
malo |
258670 |
%files tex |
169 |
|
|
%{_bindir}/texindex |
170 |
|
|
%{_bindir}/texi2dvi |
171 |
|
|
%{_bindir}/texi2pdf |
172 |
|
|
%{_bindir}/pdftexi2dvi |
173 |
malo |
457430 |
%{_bindir}/pod2texi |
174 |
malo |
258670 |
%{_datadir}/texmf/tex/texinfo |
175 |
|
|
%{_mandir}/man1/texindex.1* |
176 |
|
|
%{_mandir}/man1/texi2dvi.1* |
177 |
|
|
%{_mandir}/man1/texi2pdf.1* |
178 |
malo |
457430 |
%{_mandir}/man1/pod2texi.1* |
179 |
malo |
258670 |
%{_mandir}/man1/pdftexi2dvi.1* |