michael@521: ## michael@521: ## xmlto.spec -- OpenPKG RPM Package Specification michael@521: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@521: ## michael@521: ## Permission to use, copy, modify, and distribute this software for michael@521: ## any purpose with or without fee is hereby granted, provided that michael@521: ## the above copyright notice and this permission notice appear in all michael@521: ## copies. michael@521: ## michael@521: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@521: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@521: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@521: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@521: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@521: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@521: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@521: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@521: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@521: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@521: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@521: ## SUCH DAMAGE. michael@521: ## michael@521: michael@521: # package information michael@521: Name: xmlto michael@521: Summary: XML/DocBook and XML/XSL-FO Converter michael@521: URL: http://cyberelk.net/tim/xmlto/ michael@521: Vendor: Tim Waugh michael@521: Packager: OpenPKG Foundation e.V. michael@521: Distribution: OpenPKG Community michael@521: Class: EVAL michael@521: Group: XML michael@521: License: GPL michael@522: Version: 0.0.25 michael@522: Release: 20120800 michael@521: michael@521: # list of sources michael@522: Source0: http://fedorahosted.org/releases/x/m/xmlto/xmlto-%{version}.tar.bz2 michael@521: michael@521: # build information michael@522: BuildPreReq: OpenPKG, openpkg >= 20100101, make michael@522: PreReq: OpenPKG, openpkg >= 20100101 michael@521: BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp michael@521: PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp michael@521: michael@521: %description michael@521: xmlto converts an XML input format (DocBook or XSL-FO) into a michael@521: specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.) michael@521: by applying an appropriate XSL-T stylesheet and then performing michael@521: whatever post-processing is necessary. michael@521: michael@521: %track michael@521: prog xmlto = { michael@521: version = %{version} michael@521: url = http://cyberelk.net/tim/data/xmlto/stable/ michael@521: regex = xmlto-(\d+\.\d+\.\d+).tar.bz2 michael@521: } michael@521: michael@521: %prep michael@521: %setup -q michael@521: %{l_shtool} subst \ michael@521: -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \ michael@521: format/docbook/dvi format/docbook/pdf format/docbook/ps michael@521: michael@521: %build michael@521: CC="%{l_cc}" \ michael@521: CFLAGS="%{l_cflags -O}" \ michael@521: CPPFLAGS="%{l_cppflags}" \ michael@521: LDFLAGS="%{l_ldflags}" \ michael@521: ./configure \ michael@521: --prefix=%{l_prefix} \ michael@522: --mandir=%{l_prefix}/man michael@521: %{l_make} %{l_mflags -O} michael@521: michael@521: %install michael@521: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@521: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@521: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@521: michael@521: %files -f files michael@521: michael@521: %clean michael@521: