source: trunk/third/libxml2/libxml.spec.in @ 18536

Revision 18536, 5.6 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18535, which included commits to RCS files with non-trunk default branches.
Line 
1Summary: Library providing XML and HTML support
2Name: libxml2
3Version: @VERSION@
4Release: 1
5License: MIT
6Group: Development/Libraries
7Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
8BuildRoot: %{_tmppath}/%{name}-%{version}-root
9BuildRequires: python python-devel
10URL: http://xmlsoft.org/
11Prefix: %{_prefix}
12Docdir: %{_docdir}
13
14%description
15This library allows to manipulate XML files. It includes support
16to read, modify and write XML and HTML files. There is DTDs support
17this includes parsing and validation even with complex DtDs, either
18at parse time or later once the document has been modified. The output
19can be a simple SAX stream or and in-memory DOM like representations.
20In this case one can use the built-in XPath and XPointer implementation
21to select subnodes or ranges. A flexible Input/Output mechanism is
22available, with existing HTTP and FTP modules and combined to an
23URI library.
24
25%package devel
26Summary: Libraries, includes, etc. to develop XML and HTML applications
27Group: Development/Libraries
28Requires: libxml2 = %{version}
29Requires: zlib-devel
30
31%description devel
32Libraries, include files, etc you can use to develop XML applications.
33This library allows to manipulate XML files. It includes support
34to read, modify and write XML and HTML files. There is DTDs support
35this includes parsing and validation even with complex DtDs, either
36at parse time or later once the document has been modified. The output
37can be a simple SAX stream or and in-memory DOM like representations.
38In this case one can use the built-in XPath and XPointer implementation
39to select subnodes or ranges. A flexible Input/Output mechanism is
40available, with existing HTTP and FTP modules and combined to an
41URI library.
42
43%package python
44Summary: Python bindings for the libxml2 library
45Group: Development/Libraries
46Requires: libxml2 = %{version}
47Requires: python
48
49%description python
50The libxml2-python package contains a module that permits applications
51written in the Python programming language to use the interface
52supplied by the libxml2 library to manipulate XML files.
53
54This library allows to manipulate XML files. It includes support
55to read, modify and write XML and HTML files. There is DTDs support
56this includes parsing and validation even with complex DTDs, either
57at parse time or later once the document has been modified.
58
59%prep
60%setup -q
61
62%build
63%configure
64make
65
66%install
67rm -fr %{buildroot}
68
69%makeinstall
70
71#
72# this is a bit ugly but tries to generate the bindings for all versions
73# of python installed
74#
75for i in %{prefix}/include/python*
76do
77    py_version=`echo $i | sed "s+%{prefix}/include/python++"`
78    if test -x %{prefix}/bin/python$py_version
79    then
80        echo generating bindings for Python $py_version
81      (cd python ; make clean ; \
82         make PYTHON="%{prefix}/bin/python$py_version" \
83            PYTHON_INCLUDES="%{prefix}/include/python$py_version" \
84            PYTHON_VERSION="$py_version"; \
85%makeinstall PYTHON="%{prefix}/bin/python$py_version" \
86            PYTHON_INCLUDES="%{prefix}/include/python$py_version" \
87            PYTHON_VERSION="$py_version" )
88    fi
89done
90
91%clean
92rm -fr %{buildroot}
93
94%post
95/sbin/ldconfig
96
97%postun
98/sbin/ldconfig
99
100%files
101%defattr(-, root, root)
102
103%doc AUTHORS ChangeLog NEWS README Copyright TODO
104%doc %{_mandir}/man1/xmllint.1*
105%doc %{_mandir}/man1/xmlcatalog.1*
106%doc %{_mandir}/man3/libxml.3*
107
108%{_libdir}/lib*.so.*
109%{prefix}/bin/xmllint
110%{prefix}/bin/xmlcatalog
111
112%files devel
113%defattr(-, root, root)
114
115%doc %{_mandir}/man1/xml2-config.1*
116%doc AUTHORS ChangeLog NEWS README Copyright TODO
117%doc doc/*.html doc/html doc/*.gif doc/*.png
118%doc doc/tutorial doc/libxml2-api.xml
119
120%{_libdir}/lib*.so
121%{_libdir}/*a
122%{_libdir}/*.sh
123%{prefix}/include/*
124%{prefix}/bin/xml2-config
125%{prefix}/share/aclocal/libxml.m4
126%{_libdir}/pkgconfig/libxml-2.0.pc
127%files python
128%defattr(-, root, root)
129
130%doc AUTHORS ChangeLog NEWS README Copyright
131%{_libdir}/python*/site-packages/libxml2.py
132%{_libdir}/python*/site-packages/drv_libxml2.py
133%{_libdir}/python*/site-packages/libxml2mod*
134%doc python/TODO
135%doc python/libxml2class.txt
136%doc python/tests/*.py
137%doc doc/*.py
138%doc doc/python.html
139
140%changelog
141* @RELDATE@ Daniel Veillard <veillard@redhat.com>
142- upstream release @VERSION@ see http://xmlsoft.org/news.html
143
144* Thu Jan  2 2003 Daniel Veillard <veillard@redhat.com>
145- integrated drv_libxml2 xml.sax driver from Stéphane Bidoul
146- provides the new XmlTextReader interfaces based on C# XML APIs
147
148* Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com>
149- revamped the spec file, cleaned up some rpm building problems
150
151* Fri Oct  4 2002 Jeremy Katz <katzj@redhat.com>
152- build with 'make LIBTOOL=/usr/bin/libtool' to use system libtool
153
154* Wed Sep  4 2002 Daniel Veillard <veillard@redhat.com>
155
156- library paths fixed for x86-64
157
158* Fri Feb  1 2002 Daniel Veillard <veillard@redhat.com>
159
160- Added the python package
161
162* Sun Nov  4 2001 Daniel Veillard <veillard@redhat.com>
163
164- cleaned up the specfile
165- 2.4.7 broke SGML catalogs badly. this fixes it.
166
167* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
168
169[2.3.7]
170- Added libxml.m4 to the distribution file list
171- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
172- Moved programmer documentation into the devel package
173
174* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
175
176- corrected the spec file alpha stuff
177- switched to version 1.7.1
178- Added validation, XPath, nanohttp, removed memory leaks
179- Renamed CHAR to xmlChar
180
181* Wed Jun  2 1999 Daniel Veillard <daniel@veillard.com>
182
183- Switched to version 1.1: SAX extensions, better entities support, lots of
184  bug fixes.
185
186* Sun Oct  4 1998 Daniel Veillard <daniel@veillard.com>
187
188- Added xml-config to the package
189
190* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
191
192- Built release 0.30
193
Note: See TracBrowser for help on using the repository browser.