*** empty log message ***
[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: python
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/*.gif
80 %doc %{_mandir}/man1/xsltproc.1*
81 %{_libdir}/lib*.so.*
82 %{prefix}/bin/xsltproc
83
84 %files devel
85 %defattr(-, root, root)
86
87 %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO FEATURES
88 %doc doc/libxslt-api.xml
89 %doc doc/libxslt-refs.xml
90 %doc doc/EXSLT/libexslt-api.xml
91 %doc doc/EXSLT/libexslt-refs.xml
92 %doc %{_mandir}/man3/libxslt.3*
93 %doc %{_mandir}/man3/libexslt.3*
94 %{_libdir}/lib*.so
95 %{_libdir}/*a
96 %{_libdir}/*.sh
97 %{prefix}/share/aclocal/libxslt.m4
98 %{prefix}/include/*
99 %{prefix}/bin/xslt-config
100 %{_libdir}/pkgconfig/libxslt.pc
101 %{_libdir}/pkgconfig/libexslt.pc
102
103 %files python
104 %defattr(-, root, root)
105
106 %doc AUTHORS ChangeLog.gz NEWS README Copyright FEATURES
107 %{_libdir}/python*/site-packages/libxslt.py
108 %{_libdir}/python*/site-packages/libxsltmod*
109 %doc python/TODO
110 %doc python/libxsltclass.txt
111 %doc python/tests/*.py
112 %doc python/tests/*.xml
113 %doc python/tests/*.xsl
114
115 %changelog
116 * @RELDATE@ Daniel Veillard <veillard@redhat.com>
117 - upstream release @VERSION@ see http://xmlsoft.org/XSLT/news.html
118
119 * Sun Nov  2 2003 Daniel Veillard <veillard@redhat.com>
120 - cleanup, removal of the deprecated breakpoint library and
121   automated libxml2 dependancy level in the generated spec file.
122
123 * Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com>
124 - revamped the spec file, cleaned up some rpm building problems
125
126 * Wed Sep  4 2002 Daniel Veillard <veillard@redhat.com>
127
128 - library paths fixed for x86-64
129
130 * Fri Feb  8 2002 Daniel.Veillard <veillard@redhat.com>
131
132 - added the python module
133 - changed the Licence to MIT
134
135 * Sat Nov 10 2001 Daniel.Veillard <daniel@veillard.com>
136
137 - cleaned up the specfile
138
139 * Mon Jan 22 2001 Daniel.Veillard <daniel@veillard.com>
140
141 - created based on libxml2 spec file
142