/[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 457430 - (show annotations) (download)
Tue Jul 23 13:40:15 2013 UTC (10 years, 9 months ago) by malo
File size: 4939 byte(s)
- update to 5.1 (William Murphy)
- update patch list

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

  ViewVC Help
Powered by ViewVC 1.1.30