# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344603617 -7200 # Node ID 89c2166a0ae968675aa597bd0b728f8d38870165 # Parent e69539b30569aac180974dbff16a8e996db858a0 Modernize packaging and update to newest vendor version. diff -r e69539b30569 -r 89c2166a0ae9 xmlto/xmlto.spec --- a/xmlto/xmlto.spec Fri Aug 10 14:59:30 2012 +0200 +++ b/xmlto/xmlto.spec Fri Aug 10 15:00:17 2012 +0200 @@ -31,21 +31,17 @@ Class: EVAL Group: XML License: GPL -Version: 0.0.20 -Release: 20100105 +Version: 0.0.25 +Release: 20120800 # list of sources -Source0: http://cyberelk.net/tim/data/xmlto/stable/xmlto-%{version}.tar.bz2 +Source0: http://fedorahosted.org/releases/x/m/xmlto/xmlto-%{version}.tar.bz2 # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130 -PreReq: OpenPKG, openpkg >= 20040130 +BuildPreReq: OpenPKG, openpkg >= 20100101, make +PreReq: OpenPKG, openpkg >= 20100101 BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp -AutoReq: no -AutoReqProv: no %description xmlto converts an XML input format (DocBook or XSL-FO) into a @@ -63,17 +59,8 @@ %prep %setup -q %{l_shtool} subst \ - -e 's;/bin/bash;@BASH@;g' \ - xmlto.in - %{l_shtool} subst \ - -e 's;/usr/bin/\([a-z0-9\-\.]*\);`which \1`;g' \ - format/docbook/txt - %{l_shtool} subst \ -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \ format/docbook/dvi format/docbook/pdf format/docbook/ps - %{l_shtool} subst \ - -e 's;bash ;$(BASH) ;g' \ - Makefile.in %build CC="%{l_cc}" \ @@ -82,14 +69,10 @@ LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ - --mandir=%{l_prefix}/man \ - --with-bash=%{l_bash} \ - --with-getopt=%{l_prefix}/bin/getopt \ - --with-mktemp=%{l_prefix}/bin/mktemp + --mandir=%{l_prefix}/man %{l_make} %{l_mflags -O} %install - rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} @@ -97,5 +80,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT