]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto.spec
- S: fop
[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:        5
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 # fop is required for --with-fop. It is quite rare usecase. Moreover fop is
27 # have dependency (written in Java, requires several Java libs, takes long time
28 # to execute %post), so we don't want user to force to install it.
29 Suggests:       fop
30 Suggests:       libpaper
31 Obsoletes:      refentry2man
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This is a package for converting XML files to various formats using
36 XSL stylesheets.
37
38 %description -l pl.UTF-8
39 Jest to pakiet do konwersji plików w formacie XML do innych formatów
40 przy użyciu styli XSL.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45
46 %build
47 %{__aclocal}
48 %{__autoconf}
49 %{__automake}
50 %configure
51 %{__make}
52
53 cat > refentry2man <<'EOF'
54 #!/bin/sh
55 XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
56 XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
57 cat - > $XMLTO_TMPFILE
58 xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
59 cat $XMLTO_TMPDIR/*
60 rm -f $XMLTO_TMPFILE
61 rm -rf $XMLTO_TMPDIR
62 EOF
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 install refentry2man $RPM_BUILD_ROOT%{_bindir}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog NEWS README
78 %attr(755,root,root) %{_bindir}/*
79 %{_datadir}/%{name}
80 %{_mandir}/man1/*
This page took 0.04714 seconds and 3 git commands to generate.