TIVI-153: add as dependency for iputils
[profile/ivi/xmlto.git] / xmlto.spec.in
1 Summary: A tool for converting XML files to various formats.
2 Name: xmlto
3 Version: @VERSION@
4 Release: 0.1
5 License: GPLv2+
6 Group: Applications/System
7 #Older versions up to xmlto-0.0.20
8 #URL: http://cyberelk.net/tim/xmlto/
9 #Source0: http://cyberelk.net/tim/data/xmlto/stable/%{name}-%{version}.tar.bz2
10 URL: https://fedorahosted.org/xmlto/
11 Source0: https://fedorahosted.org/releases/x/m/%{name}/%{name}-%{version}.tar.bz2
12
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15 BuildRequires: docbook-xsl >= 1.56.0
16 BuildRequires: libxslt
17 BuildRequires: util-linux, flex
18
19 # We rely entirely on the DocBook XSL stylesheets!
20 Requires: docbook-xsl >= 1.56.0
21
22 # We need one of text-www-browsers(w3m,lynx,[e]links) for full functionality
23 Requires: @WEBBROWSER@
24
25 Requires: libxslt
26 Requires: docbook-dtds
27 Requires: util-linux, flex
28
29 %description
30 This is a package for converting XML files to various formats using XSL
31 stylesheets.
32
33 %package tex
34 Group: Applications/System
35 License: GPLv2+
36 Summary: A set of xmlto backends with TeX requirements
37 # For full functionality, we need passivetex.
38 Requires: passivetex >= 1.11
39 # We require main package
40 Requires: xmlto = %{version}-%{release}
41
42 %description tex
43 This subpackage contains xmlto backend scripts which do require
44 PassiveTeX/TeX for functionality.
45
46 %package xhtml
47 Group: Applications/System
48 License: GPLv2+
49 Summary: A set of xmlto backends for xhtml1 source format
50 # For functionality we need stylesheets xhtml2fo-style-xsl
51 Requires: xhtml2fo-style-xsl
52 # We require main package
53 Requires: xmlto = %{version}-%{release}
54
55 %description xhtml
56 This subpackage contains xmlto backend scripts for processing
57 xhtml1 source format.
58
59 %prep
60 %setup -q
61
62 %build
63 %configure
64 make
65 make check
66
67 %install
68 rm -rf %{buildroot}
69 make install DESTDIR=%{buildroot} INSTALL="install -p"
70
71 [ -d %{buildroot}%{_datadir}/xmlto/xsl ] || \
72   mkdir %{buildroot}%{_datadir}/xmlto/xsl
73
74 %clean
75 rm -rf %{buildroot}
76
77 %files
78 %defattr(-,root,root,-)
79 %{_bindir}/*
80 %{_mandir}/*/*
81 %{_datadir}/xmlto
82 %exclude %{_datadir}/xmlto/format/fo/dvi
83 %exclude %{_datadir}/xmlto/format/fo/ps
84 %exclude %{_datadir}/xmlto/format/fo/pdf
85 %exclude %dir %{_datadir}/xmlto/format/xhtml1/
86 %exclude %{_datadir}/xmlto/format/xhtml1
87
88 %files tex
89 %defattr(-,root,root,-)
90 %{_datadir}/xmlto/format/fo/dvi
91 %{_datadir}/xmlto/format/fo/ps
92 %{_datadir}/xmlto/format/fo/pdf
93
94 %files xhtml
95 %defattr(-,root,root,-)
96 %dir %{_datadir}/xmlto/format/xhtml1/
97 %{_datadir}/xmlto/format/xhtml1/*
98
99 %changelog
100 * Mon Sep 21 2009 Ondrej Vasik <ovasik@redhat.com>
101 - New version 0.0.23
102 - added autodetection for more common tools like
103   gnu cp or tail
104 - added option --noautosize to prevent overriding
105   of user-defined or system-default paper size
106 - use shell built-in 'type -t' instead of 'which'
107   utility for detection of file availability
108
109 * Wed Mar 25 2009 Ondrej Vasik <ovasik@redhat.com>
110 - New version 0.0.22
111 - added xhtml1 source format support
112 - autodetection for tools/program paths, consolidated
113   error code handling
114 - fixed libpaper cleanup, validation check now uses
115   --noent and --nonet option
116 - fixed broken --stringparam option
117
118 * Fri Jun 20 2008 Ondrej Vasik <ovasik@redhat.com>
119 - New version 0.0.21
120 - added dblatex experimental support
121 - non-mandatory libpaper support
122 - fixed issue of cp -a option on non-gnu systems
123
124 * Tue Jan 15 2008 Ondrej Vasik <ovasik@redhat.com>
125 - New version 0.0.20
126 - fop experimental support
127 - possibility to read stylesheet from STDIN, using
128   recursive cp in docbook formats, preparations
129   for other source formats
130
131 * Mon Nov 19 2007 Ondrej Vasik <ovasik@redhat.com>
132 - New version 0.0.19
133 - License GPLv2 , changes since last comment in NEWS
134
135 * Fri May 23 2003 Tim Waugh <twaugh@redhat.com>
136 - Be sure to create the xsl directory.
137 - README.docbook-xsl is no longer shipped.
138
139 * Wed Oct  9 2002 Tim Waugh <twaugh@redhat.com>
140 - Build requires docbook-xsl >= 1.56.0.
141
142 * Sun Oct  6 2002 Tim Waugh <twaugh@redhat.com>
143 - Remove 'BuildArch: noarch' now that we ship a compiled object.
144 - Run tests.
145 - Ship xmlif.
146 - Build requires docbook-xsl >= 1.52.0.
147
148 * Fri Aug 30 2002 Tim Waugh <twaugh@redhat.com>
149 - Bump docbook-xsl requirement to 1.52.0 for manpages.
150
151 * Fri Aug  2 2002 Tim Waugh <twaugh@redhat.com>
152 - The archive is now distributed in .tar.bz2 format.
153
154 * Fri Jan 25 2002 Tim Waugh <twaugh@redhat.com>
155 - Require the DocBook DTDs.
156
157 * Fri Jan 18 2002 Tim Waugh <twaugh@redhat.com>
158 - Ship README.docbook-xsl.
159
160 * Fri Nov 23 2001 Tim Waugh <twaugh@redhat.com>
161 - Initial spec file.