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