X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=xmlto.spec;h=03eb4d1e3b77bd574a4fa9e873193d43d468909d;hb=bbc219cf4ca6204734c326db008a6a8f43863ea1;hp=3ccfa1300301012129062296a1abeb169f30ce3d;hpb=e7ab2580dfc804158e960880915cf0eeb2a17e02;p=packages%2Fxmlto.git diff --git a/xmlto.spec b/xmlto.spec index 3ccfa13..03eb4d1 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -1,35 +1,47 @@ Summary: A tool for converting XML files to various formats -Summary(pl): Narzêdzie do konwersji plików XML do ró¿nych formatów +Summary(pl.UTF-8): Narzędzie do konwersji plików XML do różnych formatów Name: xmlto -Version: 0.0.18 -Release: 1 -Epoch: 0 -License: GPL +Version: 0.0.22 +Release: 5 +License: GPL v2 Group: Applications/System -Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 -# Source0-md5: 1a06471b70eb27a6aca5d1b3a144f9b0 -URL: http://cyberelk.net/tim/xmlto/ +Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2 +# Source0-md5: 12f297dc7051e4fef08339980f88a1dd +Patch0: %{name}-no_which.patch +URL: http://cyberelk.net/tim/software/xmlto/ BuildRequires: autoconf -BuildRequires: automake +BuildRequires: automake >= 1.6 BuildRequires: docbook-dtd42-xml BuildRequires: docbook-style-xsl >= 1.56.0 +BuildRequires: libpaper BuildRequires: libxslt-progs BuildRequires: util-linux Requires: docbook-dtd42-xml Requires: docbook-style-xsl >= 1.56.0 -Requires: passivetex >= 1.20 +Requires: libxslt-progs +Requires: mktemp >= 1.5-19 +Requires: xmltex +# for getopt +Requires: util-linux +# fop is required for --with-fop. It is quite rare usecase. Moreover fop is +# have dependency (written in Java, requires several Java libs, takes long time +# to execute %post), so we don't want user to force to install it. +Suggests: fop +Suggests: libpaper +Obsoletes: refentry2man BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This is a package for converting XML files to various formats using XSL stylesheets. -%description -l pl -Jest to pakiet do konwersji plików w formacie XML do innych formatów -przy u¿yciu styli XSL. +%description -l pl.UTF-8 +Jest to pakiet do konwersji plików w formacie XML do innych formatów +przy użyciu styli XSL. %prep %setup -q +%patch0 -p1 %build %{__aclocal} @@ -38,12 +50,25 @@ przy u %configure %{__make} +cat > refentry2man <<'EOF' +#!/bin/sh +XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX) +XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX) +cat - > $XMLTO_TMPFILE +xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null +cat $XMLTO_TMPDIR/* +rm -f $XMLTO_TMPFILE +rm -rf $XMLTO_TMPDIR +EOF + %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install refentry2man $RPM_BUILD_ROOT%{_bindir} + %clean rm -rf $RPM_BUILD_ROOT