Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
1 ##
2 ## xmlto.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package information
25 Name: xmlto
26 Summary: XML/DocBook and XML/XSL-FO Converter
27 URL: http://cyberelk.net/tim/xmlto/
28 Vendor: Tim Waugh
29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community
31 Class: EVAL
32 Group: XML
33 License: GPL
34 Version: 0.0.25
35 Release: 20120800
37 # list of sources
38 Source0: http://fedorahosted.org/releases/x/m/xmlto/xmlto-%{version}.tar.bz2
40 # build information
41 BuildPreReq: OpenPKG, openpkg >= 20100101, make
42 PreReq: OpenPKG, openpkg >= 20100101
43 BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
44 PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
46 %description
47 xmlto converts an XML input format (DocBook or XSL-FO) into a
48 specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.)
49 by applying an appropriate XSL-T stylesheet and then performing
50 whatever post-processing is necessary.
52 %track
53 prog xmlto = {
54 version = %{version}
55 url = http://cyberelk.net/tim/data/xmlto/stable/
56 regex = xmlto-(\d+\.\d+\.\d+).tar.bz2
57 }
59 %prep
60 %setup -q
61 %{l_shtool} subst \
62 -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \
63 format/docbook/dvi format/docbook/pdf format/docbook/ps
65 %build
66 CC="%{l_cc}" \
67 CFLAGS="%{l_cflags -O}" \
68 CPPFLAGS="%{l_cppflags}" \
69 LDFLAGS="%{l_ldflags}" \
70 ./configure \
71 --prefix=%{l_prefix} \
72 --mandir=%{l_prefix}/man
73 %{l_make} %{l_mflags -O}
75 %install
76 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
77 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
78 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
80 %files -f files
82 %clean