]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto.spec
- updated Source0 URL
[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.28
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://releases.pagure.org/xmlto/%{name}-%{version}.tar.bz2
9 # Source0-md5:  93bab48d446c826399d130d959fe676f
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:  libpaper
16 BuildRequires:  libxslt-progs
17 BuildRequires:  util-linux
18 Requires:       docbook-dtd42-xml
19 Requires:       docbook-style-xsl-nons >= 1.56.0
20 Requires:       libxslt-progs
21 Requires:       mktemp >= 1.5-19
22 Requires:       xmltex
23 # for getopt
24 Requires:       util-linux
25 # fop is required for --with-fop. It is quite rare usecase. Moreover fop is
26 # heavy dependency (written in Java, requires several Java libs, takes long time
27 # to execute %post), so we don't want user to force to install it.
28 Suggests:       fop
29 # for paperconf program
30 Suggests:       libpaper
31 # this is the default; links/lynx/text-www-browser is also possible
32 Suggests:       w3m
33 Obsoletes:      refentry2man
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 This is a package for converting XML files to various formats using
38 XSL stylesheets.
39
40 %description -l pl.UTF-8
41 Jest to pakiet do konwersji plików w formacie XML do innych formatów
42 przy użyciu styli XSL.
43
44 %prep
45 %setup -q
46
47 %build
48 %{__aclocal}
49 %{__autoconf}
50 %{__automake}
51 %configure \
52         FOP=/usr/bin/fop \
53         PAPER_CONF=/usr/bin/paperconf \
54         PDFXMLTEX=/usr/bin/pdfxmltex \
55         XMLTEX=/usr/bin/xmltex
56 %{__make}
57
58 cat > refentry2man <<'EOF'
59 #!/bin/sh
60 XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
61 XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
62 cat - > $XMLTO_TMPFILE
63 xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
64 cat $XMLTO_TMPDIR/*
65 rm -f $XMLTO_TMPFILE
66 rm -rf $XMLTO_TMPDIR
67 EOF
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 install refentry2man $RPM_BUILD_ROOT%{_bindir}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README
83 %attr(755,root,root) %{_bindir}/refentry2man
84 %attr(755,root,root) %{_bindir}/xmlif
85 %attr(755,root,root) %{_bindir}/xmlto
86 %{_datadir}/%{name}
87 %{_mandir}/man1/xmlif.1*
88 %{_mandir}/man1/xmlto.1*
This page took 0.125965 seconds and 4 git commands to generate.