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

  ViewVC Help
Powered by ViewVC 1.1.28