summaryrefslogtreecommitdiff
path: root/packaging/texinfo.spec
blob: 2e13e789da086e61be8e707407a14ec8f829d682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
Name:           texinfo
BuildRequires:  automake
BuildRequires:  help2man
BuildRequires:  bzip2-devel
BuildRequires:  libzio-devel
BuildRequires:  ncurses-devel
BuildRequires:  perl-gettext
BuildRequires:  zlib-devel
Version:        4.13a
Release:        0
%global         version_t2h 1.82
%global         version_t2r 2.0
Summary:        Tools Needed to Create Documentation from Texinfo Sources
License:        GPL-3.0+
Group:          Productivity/Publishing/Texinfo
Url:            http://www.texinfo.org
Provides:       texi2html = %{version_t2h}
Provides:       texi2roff = %{version_t2r}
Source:         ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.bz2
Source1:        http://download.savannah.nongnu.org/releases/texi2html/texi2html-%{version_t2h}.tar.bz2
# texinfo.org: the domain is expired.
# http://texinfo.org/texi2roff/texi2roff-%{version_t2r}.tar.bz2
Source2:        texi2roff-%{version_t2r}.tar.bz2
Source10:       info-dir
Source1001: 	texinfo.manifest
Patch:          texinfo-4.12.dif
Patch1:         texi2html-1.78.dif
Patch2:         texi2roff-2.0.dif
Patch3:         texi2roff.patch.bz2
Patch4:         texinfo-4.12-zlib.patch
Patch5:         texinfo-4.8-echo.patch
Patch6:         texi2roff-2.0-gcc4.patch
Patch7:         texinfo-4.13a-bug640417.diff
Patch8:         texinfo-4.13a-bug713517.diff
Patch9:         automake-1.12.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Texinfo is a documentation system that uses a single source file to
produce both online information and printed output.  Using Texinfo, you
can create a printed document with the normal features of a book,
including chapters, sections, cross-references, and indices.  From the
same Texinfo source file, you can create a menu-driven, online info
file with nodes, menus, cross-references, and indices using the included
makeinfo tool.

Aggregated with texinfo in this package is texi2html and texi2roff.


Authors:
--------
    Andreas Schwab <schwab@suse.de>
    Brian Fox <bfox@gnu.org>
    Charles Hannum <mycroft@gnu.org>
    Daniel Hagerty <hag@gnu.org>
    David J. MacKenzie <djm@gnu.org>
    Eli Zaretskii  <eliz@is.elta.co.il>
    Jim Meyering <meyering@na-net.ornl.gov>
    Karl Berry  <karl@gnu.org>
    Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
    Noah Friedman <friedman@prep.org>
    Richard Stallman <rms@gnu.org>
    Robert J. Chassell <bob@gnu.org>
    Roland McGrath <roland@gnu.org>

%package -n info
Summary:        A Stand-Alone Terminal-Based Info Browser
License:        GPL-3.0+
Group:          Productivity/Publishing/Texinfo
PreReq:         bash zlib libzio

%description -n info
Info is a terminal-based program for reading documentation of computer
programs in the Info format. The GNU Project distributes most of its
on-line manuals in the Info format, so you need a program called "Info
reader" to read the manuals.



Authors:
--------
    Andreas Schwab <schwab@suse.de>
    Brian Fox <bfox@gnu.org>
    Charles Hannum <mycroft@gnu.org>
    Daniel Hagerty <hag@gnu.org>
    David J. MacKenzie <djm@gnu.org>
    Eli Zaretskii  <eliz@is.elta.co.il>
    Jim Meyering <meyering@na-net.ornl.gov>
    Karl Berry  <karl@gnu.org>
    Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
    Noah Friedman <friedman@prep.org>
    Richard Stallman <rms@gnu.org>
    Robert J. Chassell <bob@gnu.org>
    Roland McGrath <roland@gnu.org>

%package -n makeinfo
Summary:        Translate Texinfo documents to info format
License:        GPL-3.0+
Group:          Productivity/Publishing/Texinfo
Provides:       texinfo:/usr/bin/makeinfo
Suggests:       texinfo

%description -n makeinfo
Makeinfo translates  Texinfo source documentation to various other
formats, by default Info files suitable for reading online with Emacs
or standalone GNU Info.

%prep
rm -rf texi2html-%{version_t2h} texi2roff-%{version_t2r}
%setup -q -b 1 -b 2 -n texinfo-4.13
cp %{SOURCE1001} .
%patch4 -p0 -b .zlib
%patch5 -p0 -b .echo
%patch7 -p1 -b .size_t
%patch8 -p0 -b .egrep
%patch9 -p1
%patch -p0
pushd ../texi2html-%{version_t2h}
%patch1 -p0
popd
pushd ../texi2roff-%{version_t2r}
%patch3 -p0 -b .Bader
%patch2 -p0
%patch6 -p1
popd

%build
    HOST=%{_target_cpu}-tizen-linux
    CFLAGS="$RPM_OPT_FLAGS -pipe"
    LDFLAGS=""
    CC=gcc
    export CFLAGS LDFLAGS CC
    export LD_AS_NEEDED=0
    AUTOPOINT=true autoreconf -fi
    ./configure --build=$HOST		\
	--prefix=%{_prefix}		\
	--mandir=%{_mandir}		\
	--datadir=%{_datadir}		\
	--infodir=%{_infodir}		\
	--without-included-gettext	\
	--enable-nls
    PATH=${PWD}/makeinfo:${PWD}/util:$PATH
    export PATH
    make %{?_smp_mflags};
pushd ../texi2html-%{version_t2h}
	%reconfigure --without-included-gettext	\
	--enable-nls
    make %{?_smp_mflags};
popd
pushd ../texi2roff-%{version_t2r}
    rm -f texi2roff
    make %{?_smp_mflags};
popd

%install
    export LD_AS_NEEDED=0
    make DESTDIR=%{buildroot} \
	infodir=%{_infodir}	   \
	htmldir=%{_defaultdocdir}/texi2html install
    mkdir -p %{buildroot}/sbin
    mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/
    ln -sf ../../sbin/install-info %{buildroot}%{_bindir}/install-info
    mkdir -p %{buildroot}%{_infodir}
    install -m 644 %{S:10}       %{buildroot}%{_infodir}/dir
pushd ../texi2html-%{version_t2h}
    make DESTDIR=%{buildroot} \
	infodir=%{_infodir}	   \
	texinfohtmldir=%{_defaultdocdir}/texi2html install
    install -m 644 README        %{buildroot}%{_defaultdocdir}/texi2html/
    install -m 644 NEWS          %{buildroot}%{_defaultdocdir}/texi2html/
    install -m 644 COPYING       %{buildroot}%{_defaultdocdir}/texi2html/
popd
pushd ../texi2roff-%{version_t2r}
    doc=%{_defaultdocdir}/texi2roff
    install -m 755 texi2roff     %{buildroot}%{_bindir}/
    install -m 755 texi2index    %{buildroot}%{_bindir}/
    install -m 644 texi2roff.1   %{buildroot}%{_mandir}/man1/
    mkdir -p                     %{buildroot}${doc}
    install -m 644 Readme        %{buildroot}${doc}
    install -m 644 copyright     %{buildroot}${doc}
popd
%find_lang %name %{name}.lang

%clean
test -n "%{buildroot}" && rm -rf %{buildroot}

%files
%manifest %{name}.manifest
%defattr(-, root, root)
%dir %{_defaultdocdir}/texi2html
%dir %{_defaultdocdir}/texi2roff
%doc ABOUT-NLS AUTHORS COPYING INTRODUCTION NEWS README TODO
%doc doc/texinfo.tex doc/txi-*.tex
%doc %{_defaultdocdir}/texi2html/*
%doc %{_defaultdocdir}/texi2roff/*
%{_bindir}/pdftexi*
%{_bindir}/texi*
%{_infodir}/texinfo*.gz
%{_infodir}/texi2html*.gz
%{_mandir}/man1/pdftexi2dvi.1.gz
%{_mandir}/man1/texi*.1.gz
%{_mandir}/man5/texinfo.5.gz
%{_datadir}/texinfo
%{_datadir}/texi2html

%files -n makeinfo -f %{name}.lang
%manifest %{name}.manifest
%defattr(-,root,root)
%{_bindir}/makeinfo
%{_mandir}/man1/makeinfo.1.gz

%files -n info
%manifest %{name}.manifest
%defattr(-,root,root)
%config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir
/sbin/install-info
%{_bindir}/install-info
%{_bindir}/info
%{_bindir}/infokey
%{_infodir}/info.info*
%{_infodir}/info-stnd.info*
%{_mandir}/man1/info.1*
%{_mandir}/man1/infokey.1*
%{_mandir}/man1/install-info.1*
%{_mandir}/man5/info.5*

%changelog