]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto.spec
- rel 5
[packages/xmlto.git] / xmlto.spec
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
3 Name:           xmlto
4 Version:        0.0.19
5 Release:        5
6 Epoch:          0
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2
10 # Source0-md5:  c536777e13bd5a03a4891b5ccaea0d00
11 URL:            http://cyberelk.net/tim/xmlto/
12 BuildRequires:  autoconf
13 BuildRequires:  automake >= 1.6
14 BuildRequires:  docbook-dtd42-xml
15 BuildRequires:  docbook-style-xsl >= 1.56.0
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
22 Requires:       passivetex >= 1.20
23 # for getopt
24 Requires:       util-linux
25 Obsoletes:      refentry2man
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
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.
35
36 %prep
37 %setup -q
38
39 %build
40 %{__aclocal}
41 %{__autoconf}
42 %{__automake}
43 %configure
44 %{__make}
45
46 cat > refentry2man <<'EOF'
47 #!/bin/sh
48 XMLTO_TMPFILE=$(mktemp -p xmltoXXXXXX)
49 XMLTO_TMPDIR=$(mktemp -d -p xmltodirXXXXXX)
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
55 EOF
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install refentry2man $RPM_BUILD_ROOT%{_bindir}
64
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/*
This page took 0.251378 seconds and 3 git commands to generate.