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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 489028 - (hide annotations) (download)
Sun Sep 29 08:47:00 2013 UTC (10 years, 6 months ago) by fwang
File size: 5156 byte(s)
add conflicts to ease upgrade
1 ahmad 6305 %define name texinfo
2 fwang 487507 %define version 5.2
3 fwang 489028 %define release %mkrel 2
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 462647 # conflict necessary for upgrade (version is when makfile symlink and texi2any is moved)
35     Conflicts: texinfo-tex < 5.1-4
36 fwang 489028 Conflicts: xemacs < 21.4.22-23
37 ahmad 6305
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 tmb 413508 Conflicts: dpkg < 1.16.8-6
72 ahmad 6305
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 malo 258670 %package tex
79 malo 258671 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 pterjan 391614 Requires(post): texlive
85     Requires(postun): texlive
86 tmb 462647 # conflict necessary for upgrade (version is when makfile symlink and texi2any is moved)
87     Conflicts: texinfo < 5.1-4
88 malo 258670
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 ahmad 6305 %prep
98 malo 457430 %setup -qn %name-%{version}
99 ahmad 6305 %patch107 -p1
100     %patch200 -p1 -b .mb_modeline
101 malo 457430 %patch300 -p1
102 ahmad 6305
103     %build
104     %configure2_5x \
105     --disable-rpath
106    
107 malo 258671 %make
108 ahmad 6305 rm -f util/install-info
109     %make -C util LIBS=%{_libdir}/libz.a
110    
111     %check
112     # all tests must pass
113 tmb 459649 # (tmb) incompatible with perl-5.18
114     # make check
115 ahmad 6305
116     %install
117     %makeinstall_std
118     install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir
119 wally 133434 rm -rf %{buildroot}%{_infodir}/dir
120     ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir
121 ahmad 6305 mkdir -p %{buildroot}/sbin
122     mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info
123     mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig
124    
125 malo 258670 # 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 ahmad 6305 %find_lang %{name}
130 malo 457430 %find_lang %{name}_document
131 ahmad 6305
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 malo 457430 %files -f %{name}.lang -f %{name}_document.lang
145     %doc AUTHORS NEWS README TODO
146 malo 390457 %doc info/README
147 malo 462491 %{_bindir}/makeinfo
148     %{_bindir}/texi2any
149 ahmad 6305 %{_infodir}/info-stnd.info*
150     %{_infodir}/texinfo*
151 malo 462491 %{_mandir}/man1/makeinfo.1*
152     %{_mandir}/man1/texi2any.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 malo 457430 %{_bindir}/pod2texi
176 malo 258670 %{_datadir}/texmf/tex/texinfo
177     %{_mandir}/man1/texindex.1*
178     %{_mandir}/man1/texi2dvi.1*
179     %{_mandir}/man1/texi2pdf.1*
180 malo 457430 %{_mandir}/man1/pod2texi.1*
181 malo 258670 %{_mandir}/man1/pdftexi2dvi.1*

  ViewVC Help
Powered by ViewVC 1.1.30