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