]>
Commit | Line | Data |
---|---|---|
d4a7308b | 1 | Summary: A tool for converting XML files to various formats |
81fca885 | 2 | Summary(pl.UTF-8): Narzędzie do konwersji plików XML do różnych formatów |
6690b348 | 3 | Name: xmlto |
7093eb55 | 4 | Version: 0.0.26 |
3a7ae73c | 5 | Release: 2 |
e08e3df8 | 6 | License: GPL v2 |
6690b348 | 7 | Group: Applications/System |
eb18f6ac | 8 | Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2 |
7093eb55 | 9 | # Source0-md5: c90a47c774e0963581c1ba57235f64f4 |
eb18f6ac | 10 | URL: http://cyberelk.net/tim/software/xmlto/ |
6690b348 | 11 | BuildRequires: autoconf |
e08e3df8 | 12 | BuildRequires: automake >= 1.6 |
6690b348 MK |
13 | BuildRequires: docbook-dtd42-xml |
14 | BuildRequires: docbook-style-xsl >= 1.56.0 | |
cc941f3d | 15 | BuildRequires: libpaper |
d4a7308b JB |
16 | BuildRequires: libxslt-progs |
17 | BuildRequires: util-linux | |
6690b348 MK |
18 | Requires: docbook-dtd42-xml |
19 | Requires: docbook-style-xsl >= 1.56.0 | |
9d4545e8 | 20 | Requires: libxslt-progs |
5054a5d8 | 21 | Requires: mktemp >= 1.5-19 |
4c07a39d | 22 | Requires: xmltex |
5c3c45f6 | 23 | # for getopt |
24 | Requires: util-linux | |
bbc219cf | 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. | |
28 | Suggests: fop | |
b19a1559 | 29 | # for paperconf program |
cc941f3d | 30 | Suggests: libpaper |
73fe689f JB |
31 | # this is the default; links/lynx/text-www-browser is also possible |
32 | Suggests: w3m | |
6bfe9b02 | 33 | Obsoletes: refentry2man |
6690b348 MK |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | This is a package for converting XML files to various formats using | |
38 | XSL stylesheets. | |
39 | ||
f59b72bb JR |
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. | |
6690b348 MK |
43 | |
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %build | |
48 | %{__aclocal} | |
49 | %{__autoconf} | |
50 | %{__automake} | |
b19a1559 JB |
51 | %configure \ |
52 | FOP=/usr/bin/fop \ | |
53 | PAPER_CONF=/usr/bin/paperconf \ | |
54 | PDFXMLTEX=/usr/bin/pdfxmltex \ | |
55 | XMLTEX=/usr/bin/xmltex | |
6690b348 MK |
56 | %{__make} |
57 | ||
5e758c13 | 58 | cat > refentry2man <<'EOF' |
6bfe9b02 | 59 | #!/bin/sh |
d37e5944 ER |
60 | XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX) |
61 | XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX) | |
5e758c13 ER |
62 | cat - > $XMLTO_TMPFILE |
63 | xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null | |
64 | cat $XMLTO_TMPDIR/* | |
65 | rm -f $XMLTO_TMPFILE | |
66 | rm -rf $XMLTO_TMPDIR | |
6bfe9b02 | 67 | EOF |
68 | ||
6690b348 | 69 | %install |
5054a5d8 | 70 | rm -rf $RPM_BUILD_ROOT |
6690b348 MK |
71 | |
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
6bfe9b02 | 75 | install refentry2man $RPM_BUILD_ROOT%{_bindir} |
76 | ||
6690b348 MK |
77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc AUTHORS ChangeLog NEWS README | |
b19a1559 JB |
83 | %attr(755,root,root) %{_bindir}/refentry2man |
84 | %attr(755,root,root) %{_bindir}/xmlif | |
85 | %attr(755,root,root) %{_bindir}/xmlto | |
6690b348 | 86 | %{_datadir}/%{name} |
b19a1559 JB |
87 | %{_mandir}/man1/xmlif.1* |
88 | %{_mandir}/man1/xmlto.1* |