/[packages]/cauldron/texinfo/current/SPECS/texinfo.spec
ViewVC logotype

Contents of /cauldron/texinfo/current/SPECS/texinfo.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30