xmlto/xmlto.spec

changeset 521
e69539b30569
child 522
89c2166a0ae9
equal deleted inserted replaced
-1:000000000000 0:b60f350a3ef1
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 ##
23
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.20
35 Release: 20100105
36
37 # list of sources
38 Source0: http://cyberelk.net/tim/data/xmlto/stable/xmlto-%{version}.tar.bz2
39
40 # build information
41 Prefix: %{l_prefix}
42 BuildRoot: %{l_buildroot}
43 BuildPreReq: OpenPKG, openpkg >= 20040130
44 PreReq: OpenPKG, openpkg >= 20040130
45 BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
46 PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
47 AutoReq: no
48 AutoReqProv: no
49
50 %description
51 xmlto converts an XML input format (DocBook or XSL-FO) into a
52 specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.)
53 by applying an appropriate XSL-T stylesheet and then performing
54 whatever post-processing is necessary.
55
56 %track
57 prog xmlto = {
58 version = %{version}
59 url = http://cyberelk.net/tim/data/xmlto/stable/
60 regex = xmlto-(\d+\.\d+\.\d+).tar.bz2
61 }
62
63 %prep
64 %setup -q
65 %{l_shtool} subst \
66 -e 's;/bin/bash;@BASH@;g' \
67 xmlto.in
68 %{l_shtool} subst \
69 -e 's;/usr/bin/\([a-z0-9\-\.]*\);`which \1`;g' \
70 format/docbook/txt
71 %{l_shtool} subst \
72 -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \
73 format/docbook/dvi format/docbook/pdf format/docbook/ps
74 %{l_shtool} subst \
75 -e 's;bash ;$(BASH) ;g' \
76 Makefile.in
77
78 %build
79 CC="%{l_cc}" \
80 CFLAGS="%{l_cflags -O}" \
81 CPPFLAGS="%{l_cppflags}" \
82 LDFLAGS="%{l_ldflags}" \
83 ./configure \
84 --prefix=%{l_prefix} \
85 --mandir=%{l_prefix}/man \
86 --with-bash=%{l_bash} \
87 --with-getopt=%{l_prefix}/bin/getopt \
88 --with-mktemp=%{l_prefix}/bin/mktemp
89 %{l_make} %{l_mflags -O}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
94 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
95 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
96
97 %files -f files
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101

mercurial