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