added a cretion of ctxt->globalVars in xsltProcessUserParamInternal if
[platform/upstream/libxslt.git] / libxslt.spec.in
1 Summary: Library providing the Gnome XSLT engine
2 Name: libxslt
3 Version: @VERSION@
4 Release: 1
5 License: MIT
6 Group: Development/Libraries
7 Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
8 BuildRoot: %{_tmppath}/%{name}-%{version}-root
9 URL: http://xmlsoft.org/XSLT/
10 Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
11 BuildRequires: libxml2-devel >= @LIBXML_REQUIRED_VERSION@
12 BuildRequires: python python-devel
13 BuildRequires: libxml2-python
14 Prefix: %{_prefix}
15 Docdir: %{_docdir}
16
17 %description
18 This C library allows to transform XML files into other XML files
19 (or HTML, text, ...) using the standard XSLT stylesheet transformation
20 mechanism. To use it you need to have a version of libxml2 >= @LIBXML_REQUIRED_VERSION@
21 installed. The xsltproc command is a command line interface to the XSLT engine
22
23 %package devel
24 Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
25 Group: Development/Libraries
26 Requires: libxslt = %{version}
27 Requires: libxml2-devel >= 2.5.6
28
29 %description devel
30 This C library allows to transform XML files into other XML files
31 (or HTML, text, ...) using the standard XSLT stylesheet transformation
32 mechanism. To use it you need to have a version of libxml2 >= @LIBXML_REQUIRED_VERSION@
33 installed.
34
35 %package python
36 Summary: Python bindings for the libxslt library
37 Group: Development/Libraries
38 Requires: libxslt = %{version}
39 Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
40 Requires: libxml2-python >= @LIBXML_REQUIRED_VERSION@
41 Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
42
43 %description python
44 The libxslt-python package contains a module that permits applications
45 written in the Python programming language to use the interface
46 supplied by the libxslt library to apply XSLT transformations.
47
48 This library allows to parse sytlesheets, uses the libxml2-python
49 to load and save XML and HTML files. Direct access to XPath and
50 the XSLT transformation context are possible to extend the XSLT language
51 with XPath functions written in Python.
52
53 %prep
54 %setup -q
55
56 %build
57 %configure
58 make
59 gzip -9 ChangeLog
60
61 %install
62 rm -fr %{buildroot}
63
64 %makeinstall
65
66 %clean
67 rm -fr %{buildroot}
68
69 %post
70 /sbin/ldconfig
71
72 %postun
73 /sbin/ldconfig
74
75 %files
76 %defattr(-, root, root)
77
78 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
79 %doc doc/*.html doc/html doc/tutorial doc/tutorial2 doc/*.gif
80 %doc doc/EXSLT
81 %doc %{_mandir}/man1/xsltproc.1*
82 %{_libdir}/lib*.so.*
83 %{prefix}/bin/xsltproc
84
85 %files devel
86 %defattr(-, root, root)
87
88 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
89 %doc doc/libxslt-api.xml
90 %doc doc/libxslt-refs.xml
91 %doc doc/EXSLT/libexslt-api.xml
92 %doc doc/EXSLT/libexslt-refs.xml
93 %doc %{_mandir}/man3/libxslt.3*
94 %doc %{_mandir}/man3/libexslt.3*
95 %{_libdir}/lib*.so
96 %{_libdir}/*a
97 %{_libdir}/*.sh
98 %{prefix}/share/aclocal/libxslt.m4
99 %{prefix}/include/*
100 %{prefix}/bin/xslt-config
101 %{_libdir}/pkgconfig/libxslt.pc
102 %{_libdir}/pkgconfig/libexslt.pc
103
104 %files python
105 %defattr(-, root, root)
106
107 %doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
108 %{_libdir}/python*/site-packages/libxslt.py
109 %{_libdir}/python*/site-packages/libxsltmod*
110 %doc python/TODO
111 %doc python/libxsltclass.txt
112 %doc python/tests/*.py
113 %doc python/tests/*.xml
114 %doc python/tests/*.xsl
115
116 %changelog
117 * @RELDATE@ Daniel Veillard <veillard@redhat.com>
118 - upstream release @VERSION@ see http://xmlsoft.org/XSLT/news.html
119
120 * Sun Nov  2 2003 Daniel Veillard <veillard@redhat.com>
121 - cleanup, removal of the deprecated breakpoint library and
122   automated libxml2 dependancy level in the generated spec file.
123
124 * Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com>
125 - revamped the spec file, cleaned up some rpm building problems
126
127 * Wed Sep  4 2002 Daniel Veillard <veillard@redhat.com>
128
129 - library paths fixed for x86-64
130
131 * Fri Feb  8 2002 Daniel.Veillard <veillard@redhat.com>
132
133 - added the python module
134 - changed the Licence to MIT
135
136 * Sat Nov 10 2001 Daniel.Veillard <daniel@veillard.com>
137
138 - cleaned up the specfile
139
140 * Mon Jan 22 2001 Daniel.Veillard <daniel@veillard.com>
141
142 - created based on libxml2 spec file
143