1 Summary: A tool for converting XML files to various formats
2 Summary(pl.UTF-8): Narzędzie do konwersji plików XML do różnych formatów
7 Group: Applications/System
8 Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
9 # Source0-md5: c90a47c774e0963581c1ba57235f64f4
10 URL: http://cyberelk.net/tim/software/xmlto/
11 BuildRequires: autoconf
12 BuildRequires: automake >= 1.6
13 BuildRequires: docbook-dtd42-xml
14 BuildRequires: docbook-style-xsl >= 1.56.0
15 BuildRequires: libpaper
16 BuildRequires: libxslt-progs
17 BuildRequires: util-linux
18 Requires: docbook-dtd42-xml
19 Requires: docbook-style-xsl >= 1.56.0
20 Requires: libxslt-progs
21 Requires: mktemp >= 1.5-19
25 # fop is required for --with-fop. It is quite rare usecase. Moreover fop is
26 # have dependency (written in Java, requires several Java libs, takes long time
27 # to execute %post), so we don't want user to force to install it.
29 # for paperconf program
31 # this is the default; links/lynx/text-www-browser is also possible
33 Obsoletes: refentry2man
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This is a package for converting XML files to various formats using
40 %description -l pl.UTF-8
41 Jest to pakiet do konwersji plików w formacie XML do innych formatów
42 przy użyciu styli XSL.
53 PAPER_CONF=/usr/bin/paperconf \
54 PDFXMLTEX=/usr/bin/pdfxmltex \
55 XMLTEX=/usr/bin/xmltex
58 cat > refentry2man <<'EOF'
60 XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
61 XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
62 cat - > $XMLTO_TMPFILE
63 xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
70 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
75 install refentry2man $RPM_BUILD_ROOT%{_bindir}
78 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README
83 %attr(755,root,root) %{_bindir}/refentry2man
84 %attr(755,root,root) %{_bindir}/xmlif
85 %attr(755,root,root) %{_bindir}/xmlto
87 %{_mandir}/man1/xmlif.1*
88 %{_mandir}/man1/xmlto.1*