1 | Summary: Library providing XML and HTML support
|
---|
2 | Name: libxml2
|
---|
3 | Version: @VERSION@
|
---|
4 | Release: 1
|
---|
5 | License: MIT
|
---|
6 | Group: Development/Libraries
|
---|
7 | Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
|
---|
8 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
---|
9 | BuildRequires: python python-devel zlib-devel
|
---|
10 | URL: http://xmlsoft.org/
|
---|
11 | Prefix: %{_prefix}
|
---|
12 | Docdir: %{_docdir}
|
---|
13 |
|
---|
14 | %description
|
---|
15 | This library allows to manipulate XML files. It includes support
|
---|
16 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
17 | this includes parsing and validation even with complex DtDs, either
|
---|
18 | at parse time or later once the document has been modified. The output
|
---|
19 | can be a simple SAX stream or and in-memory DOM like representations.
|
---|
20 | In this case one can use the built-in XPath and XPointer implementation
|
---|
21 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
---|
22 | available, with existing HTTP and FTP modules and combined to an
|
---|
23 | URI library.
|
---|
24 |
|
---|
25 | %package devel
|
---|
26 | Summary: Libraries, includes, etc. to develop XML and HTML applications
|
---|
27 | Group: Development/Libraries
|
---|
28 | Requires: libxml2 = %{version}-%{release}
|
---|
29 | Requires: zlib-devel
|
---|
30 | Requires: pkgconfig
|
---|
31 |
|
---|
32 | %description devel
|
---|
33 | Libraries, include files, etc you can use to develop XML applications.
|
---|
34 | This library allows to manipulate XML files. It includes support
|
---|
35 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
36 | this includes parsing and validation even with complex DtDs, either
|
---|
37 | at parse time or later once the document has been modified. The output
|
---|
38 | can be a simple SAX stream or and in-memory DOM like representations.
|
---|
39 | In this case one can use the built-in XPath and XPointer implementation
|
---|
40 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
---|
41 | available, with existing HTTP and FTP modules and combined to an
|
---|
42 | URI library.
|
---|
43 |
|
---|
44 | %package python
|
---|
45 | Summary: Python bindings for the libxml2 library
|
---|
46 | Group: Development/Libraries
|
---|
47 | Requires: libxml2 = %{version}-%{release}
|
---|
48 | Requires: python
|
---|
49 |
|
---|
50 | %description python
|
---|
51 | The libxml2-python package contains a module that permits applications
|
---|
52 | written in the Python programming language to use the interface
|
---|
53 | supplied by the libxml2 library to manipulate XML files.
|
---|
54 |
|
---|
55 | This library allows to manipulate XML files. It includes support
|
---|
56 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
57 | this includes parsing and validation even with complex DTDs, either
|
---|
58 | at parse time or later once the document has been modified.
|
---|
59 |
|
---|
60 | %prep
|
---|
61 | %setup -q
|
---|
62 |
|
---|
63 | %build
|
---|
64 | %configure
|
---|
65 | make
|
---|
66 | gzip -9 ChangeLog
|
---|
67 |
|
---|
68 | %install
|
---|
69 | rm -fr %{buildroot}
|
---|
70 |
|
---|
71 | %makeinstall
|
---|
72 | (cd doc/examples ; make clean ; rm -rf .deps)
|
---|
73 | gzip -9 doc/libxml2-api.xml
|
---|
74 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
75 |
|
---|
76 | %clean
|
---|
77 | rm -fr %{buildroot}
|
---|
78 |
|
---|
79 | %post
|
---|
80 | /sbin/ldconfig
|
---|
81 |
|
---|
82 | %postun
|
---|
83 | /sbin/ldconfig
|
---|
84 |
|
---|
85 | %files
|
---|
86 | %defattr(-, root, root)
|
---|
87 |
|
---|
88 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
|
---|
89 | %doc %{_mandir}/man1/xmllint.1*
|
---|
90 | %doc %{_mandir}/man1/xmlcatalog.1*
|
---|
91 | %doc %{_mandir}/man3/libxml.3*
|
---|
92 |
|
---|
93 | %{_libdir}/lib*.so.*
|
---|
94 | %{prefix}/bin/xmllint
|
---|
95 | %{prefix}/bin/xmlcatalog
|
---|
96 |
|
---|
97 | %files devel
|
---|
98 | %defattr(-, root, root)
|
---|
99 |
|
---|
100 | %doc %{_mandir}/man1/xml2-config.1*
|
---|
101 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
|
---|
102 | %doc doc/*.html doc/html doc/*.gif doc/*.png
|
---|
103 | %doc doc/tutorial doc/libxml2-api.xml.gz
|
---|
104 | %doc doc/examples
|
---|
105 | %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
|
---|
106 | %doc %{_datadir}/gtk-doc/html/libxml2/*.html
|
---|
107 | %doc %{_datadir}/gtk-doc/html/libxml2/*.png
|
---|
108 | %doc %{_datadir}/gtk-doc/html/libxml2/*.css
|
---|
109 |
|
---|
110 | %{_libdir}/lib*.so
|
---|
111 | %{_libdir}/*a
|
---|
112 | %{_libdir}/*.sh
|
---|
113 | %{prefix}/include/*
|
---|
114 | %{prefix}/bin/xml2-config
|
---|
115 | %{prefix}/share/aclocal/libxml.m4
|
---|
116 | %{_libdir}/pkgconfig/libxml-2.0.pc
|
---|
117 | %files python
|
---|
118 | %defattr(-, root, root)
|
---|
119 |
|
---|
120 | %doc AUTHORS ChangeLog.gz NEWS README Copyright
|
---|
121 | %{_libdir}/python*/site-packages/libxml2.py*
|
---|
122 | %{_libdir}/python*/site-packages/drv_libxml2.py*
|
---|
123 | %{_libdir}/python*/site-packages/libxml2mod*
|
---|
124 | %doc python/TODO
|
---|
125 | %doc python/libxml2class.txt
|
---|
126 | %doc python/tests/*.py
|
---|
127 | %doc doc/*.py
|
---|
128 | %doc doc/python.html
|
---|
129 |
|
---|
130 | %changelog
|
---|
131 | * @RELDATE@ Daniel Veillard <veillard@redhat.com>
|
---|
132 | - upstream release @VERSION@ see http://xmlsoft.org/news.html
|
---|
133 |
|
---|