]>
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 |
e08e3df8 | 4 | Version: 0.0.19 |
34c2e729 | 5 | Release: 4 |
6690b348 | 6 | Epoch: 0 |
e08e3df8 | 7 | License: GPL v2 |
6690b348 | 8 | Group: Applications/System |
e3a71274 | 9 | Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2 |
e08e3df8 | 10 | # Source0-md5: c536777e13bd5a03a4891b5ccaea0d00 |
6690b348 MK |
11 | URL: http://cyberelk.net/tim/xmlto/ |
12 | BuildRequires: autoconf | |
e08e3df8 | 13 | BuildRequires: automake >= 1.6 |
6690b348 MK |
14 | BuildRequires: docbook-dtd42-xml |
15 | BuildRequires: docbook-style-xsl >= 1.56.0 | |
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 |
6690b348 | 22 | Requires: passivetex >= 1.20 |
5c3c45f6 | 23 | # for getopt |
24 | Requires: util-linux | |
6bfe9b02 | 25 | Obsoletes: refentry2man |
6690b348 MK |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | This is a package for converting XML files to various formats using | |
30 | XSL stylesheets. | |
31 | ||
f59b72bb JR |
32 | %description -l pl.UTF-8 |
33 | Jest to pakiet do konwersji plików w formacie XML do innych formatów | |
34 | przy użyciu styli XSL. | |
6690b348 MK |
35 | |
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %{__aclocal} | |
41 | %{__autoconf} | |
42 | %{__automake} | |
43 | %configure | |
44 | %{__make} | |
45 | ||
5e758c13 | 46 | cat > refentry2man <<'EOF' |
6bfe9b02 | 47 | #!/bin/sh |
34c2e729 ER |
48 | XMLTO_TMPFILE=$(mktemp -p xmltoXXXXXX) |
49 | XMLTO_TMPDIR=$(mktemp -d -p xmltodirXXXXXX) | |
5e758c13 ER |
50 | cat - > $XMLTO_TMPFILE |
51 | xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null | |
52 | cat $XMLTO_TMPDIR/* | |
53 | rm -f $XMLTO_TMPFILE | |
54 | rm -rf $XMLTO_TMPDIR | |
6bfe9b02 | 55 | EOF |
56 | ||
6690b348 | 57 | %install |
5054a5d8 | 58 | rm -rf $RPM_BUILD_ROOT |
6690b348 MK |
59 | |
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
6bfe9b02 | 63 | install refentry2man $RPM_BUILD_ROOT%{_bindir} |
64 | ||
6690b348 MK |
65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog NEWS README | |
71 | %attr(755,root,root) %{_bindir}/* | |
72 | %{_datadir}/%{name} | |
73 | %{_mandir}/man1/* |