]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto.spec
7cc56502d78d8399d72399c0d36f61b7e7d1b01b
[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.22
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
9 # Source0-md5:  12f297dc7051e4fef08339980f88a1dd
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:  libxslt-progs
16 BuildRequires:  util-linux
17 Requires:       docbook-dtd42-xml
18 Requires:       docbook-style-xsl >= 1.56.0
19 Requires:       libxslt-progs
20 Requires:       mktemp >= 1.5-19
21 Requires:       xmltex
22 # for getopt
23 Requires:       util-linux
24 Obsoletes:      refentry2man
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This is a package for converting XML files to various formats using
29 XSL stylesheets.
30
31 %description -l pl.UTF-8
32 Jest to pakiet do konwersji plików w formacie XML do innych formatów
33 przy użyciu styli XSL.
34
35 %prep
36 %setup -q
37
38 %build
39 %{__aclocal}
40 %{__autoconf}
41 %{__automake}
42 %configure
43 %{__make}
44
45 cat > refentry2man <<'EOF'
46 #!/bin/sh
47 XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
48 XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
49 cat - > $XMLTO_TMPFILE
50 xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
51 cat $XMLTO_TMPDIR/*
52 rm -f $XMLTO_TMPFILE
53 rm -rf $XMLTO_TMPDIR
54 EOF
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 install refentry2man $RPM_BUILD_ROOT%{_bindir}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc AUTHORS ChangeLog NEWS README
70 %attr(755,root,root) %{_bindir}/*
71 %{_datadir}/%{name}
72 %{_mandir}/man1/*
This page took 0.045394 seconds and 2 git commands to generate.