xmlto/xmlto.spec

changeset 709
84a9f800fa37
parent 521
e69539b30569
equal deleted inserted replaced
0:b60f350a3ef1 1:cfe162504904
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: EVAL 31 Class: EVAL
32 Group: XML 32 Group: XML
33 License: GPL 33 License: GPL
34 Version: 0.0.20 34 Version: 0.0.25
35 Release: 20100105 35 Release: 20120800
36 36
37 # list of sources 37 # list of sources
38 Source0: http://cyberelk.net/tim/data/xmlto/stable/xmlto-%{version}.tar.bz2 38 Source0: http://fedorahosted.org/releases/x/m/xmlto/xmlto-%{version}.tar.bz2
39 39
40 # build information 40 # build information
41 Prefix: %{l_prefix} 41 BuildPreReq: OpenPKG, openpkg >= 20100101, make
42 BuildRoot: %{l_buildroot} 42 PreReq: OpenPKG, openpkg >= 20100101
43 BuildPreReq: OpenPKG, openpkg >= 20040130
44 PreReq: OpenPKG, openpkg >= 20040130
45 BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp 43 BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
46 PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp 44 PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp
47 AutoReq: no
48 AutoReqProv: no
49 45
50 %description 46 %description
51 xmlto converts an XML input format (DocBook or XSL-FO) into a 47 xmlto converts an XML input format (DocBook or XSL-FO) into a
52 specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.) 48 specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.)
53 by applying an appropriate XSL-T stylesheet and then performing 49 by applying an appropriate XSL-T stylesheet and then performing
61 } 57 }
62 58
63 %prep 59 %prep
64 %setup -q 60 %setup -q
65 %{l_shtool} subst \ 61 %{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' \ 62 -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \
73 format/docbook/dvi format/docbook/pdf format/docbook/ps 63 format/docbook/dvi format/docbook/pdf format/docbook/ps
74 %{l_shtool} subst \
75 -e 's;bash ;$(BASH) ;g' \
76 Makefile.in
77 64
78 %build 65 %build
79 CC="%{l_cc}" \ 66 CC="%{l_cc}" \
80 CFLAGS="%{l_cflags -O}" \ 67 CFLAGS="%{l_cflags -O}" \
81 CPPFLAGS="%{l_cppflags}" \ 68 CPPFLAGS="%{l_cppflags}" \
82 LDFLAGS="%{l_ldflags}" \ 69 LDFLAGS="%{l_ldflags}" \
83 ./configure \ 70 ./configure \
84 --prefix=%{l_prefix} \ 71 --prefix=%{l_prefix} \
85 --mandir=%{l_prefix}/man \ 72 --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} 73 %{l_make} %{l_mflags -O}
90 74
91 %install 75 %install
92 rm -rf $RPM_BUILD_ROOT
93 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 76 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
94 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 77 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} 78 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
96 79
97 %files -f files 80 %files -f files
98 81
99 %clean 82 %clean
100 rm -rf $RPM_BUILD_ROOT
101 83

mercurial