]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto.spec
1fde414cd4be44c16fa097488329af0e310d1ec6
[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:        4
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 Patch0:         %{name}-no_which.patch
11 URL:            http://cyberelk.net/tim/software/xmlto/
12 BuildRequires:  autoconf
13 BuildRequires:  automake >= 1.6
14 BuildRequires:  docbook-dtd42-xml
15 BuildRequires:  docbook-style-xsl >= 1.56.0
16 BuildRequires:  libpaper
17 BuildRequires:  libxslt-progs
18 BuildRequires:  util-linux
19 Requires:       docbook-dtd42-xml
20 Requires:       docbook-style-xsl >= 1.56.0
21 Requires:       libxslt-progs
22 Requires:       mktemp >= 1.5-19
23 Requires:       xmltex
24 # for getopt
25 Requires:       util-linux
26 Suggests:       libpaper
27 Obsoletes:      refentry2man
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
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.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %build
43 %{__aclocal}
44 %{__autoconf}
45 %{__automake}
46 %configure
47 %{__make}
48
49 cat > refentry2man <<'EOF'
50 #!/bin/sh
51 XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
52 XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
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
58 EOF
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 install refentry2man $RPM_BUILD_ROOT%{_bindir}
67
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/*
This page took 0.083356 seconds and 2 git commands to generate.