blob: 688811a8deb879886b08c67282a215c098867b86 [file] [log] [blame]
Daniel Veillard1a123612001-09-19 08:06:23 +00001Summary: Library providing XML and HTML support
2Name: libxml2
Daniel Veillardea898282001-11-04 22:13:45 +00003Version: @VERSION@
Daniel Veillard6f7e24b2003-05-14 19:45:50 +00004Release: 1
Daniel Veillardc575b992002-02-08 13:28:40 +00005License: MIT
Daniel Veillard1a123612001-09-19 08:06:23 +00006Group: Development/Libraries
Daniel Veillard29341682009-09-10 18:23:39 +02007Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
Daniel Veillardbf0324f2008-07-23 13:35:50 +00008BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Daniel Veillard29341682009-09-10 18:23:39 +02009BuildRequires: python python-devel zlib-devel pkgconfig
Daniel Veillard1a123612001-09-19 08:06:23 +000010URL: http://xmlsoft.org/
Michael Fulbright62e8e801998-09-25 16:58:38 +000011
12%description
Daniel Veillard6db58192000-10-30 09:27:53 +000013This 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 subnodes or ranges. A flexible Input/Output mechanism is
20available, with existing HTTP and FTP modules and combined to an
21URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000022
23%package devel
Daniel Veillard1a123612001-09-19 08:06:23 +000024Summary: Libraries, includes, etc. to develop XML and HTML applications
25Group: Development/Libraries
Daniel Veillardda629342007-08-01 07:49:06 +000026Requires: libxml2 = %{version}-%{release}
Daniel Veillardc6924812002-05-24 11:10:43 +000027Requires: zlib-devel
Daniel Veillard69839ba2006-06-06 13:27:03 +000028Requires: pkgconfig
Michael Fulbright62e8e801998-09-25 16:58:38 +000029
30%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000031Libraries, include files, etc you can use to develop XML applications.
32This library allows to manipulate XML files. It includes support
33to read, modify and write XML and HTML files. There is DTDs support
34this includes parsing and validation even with complex DtDs, either
35at parse time or later once the document has been modified. The output
36can be a simple SAX stream or and in-memory DOM like representations.
37In this case one can use the built-in XPath and XPointer implementation
38to select subnodes or ranges. A flexible Input/Output mechanism is
39available, with existing HTTP and FTP modules and combined to an
40URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000041
Daniel Veillard253aa2c2002-02-02 09:17:16 +000042%package python
43Summary: Python bindings for the libxml2 library
44Group: Development/Libraries
Daniel Veillardda629342007-08-01 07:49:06 +000045Requires: libxml2 = %{version}-%{release}
46Requires: python
Daniel Veillard253aa2c2002-02-02 09:17:16 +000047
48%description python
49The libxml2-python package contains a module that permits applications
50written in the Python programming language to use the interface
51supplied by the libxml2 library to manipulate XML files.
52
53This library allows to manipulate XML files. It includes support
54to read, modify and write XML and HTML files. There is DTDs support
55this includes parsing and validation even with complex DTDs, either
56at parse time or later once the document has been modified.
Daniel Veillard366a9152002-10-23 20:43:53 +000057
Daniel Veillardea898282001-11-04 22:13:45 +000058%prep
59%setup -q
60
61%build
Daniel Veillardbaad7882005-08-25 22:52:51 +000062%configure
Daniel Veillard29341682009-09-10 18:23:39 +020063make %{_smp_mflags}
Daniel Veillardee1d6922004-04-18 14:58:57 +000064gzip -9 ChangeLog
Daniel Veillardea898282001-11-04 22:13:45 +000065
66%install
Daniel Veillard366a9152002-10-23 20:43:53 +000067rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +000068
Daniel Veillard5643b5a2002-09-04 12:27:06 +000069%makeinstall
Daniel Veillard29341682009-09-10 18:23:39 +020070(cd doc/examples ; make clean ; rm -rf .deps Makefile)
Daniel Veillard771971f2005-04-02 10:49:51 +000071gzip -9 doc/libxml2-api.xml
Daniel Veillard9fcb4912005-03-16 12:57:31 +000072rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
Daniel Veillardea898282001-11-04 22:13:45 +000073
74%clean
Daniel Veillard366a9152002-10-23 20:43:53 +000075rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +000076
Daniel Veillard366a9152002-10-23 20:43:53 +000077%post
78/sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +000079
Daniel Veillard366a9152002-10-23 20:43:53 +000080%postun
81/sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +000082
83%files
84%defattr(-, root, root)
85
Daniel Veillardee1d6922004-04-18 14:58:57 +000086%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
Daniel Veillardea898282001-11-04 22:13:45 +000087%doc %{_mandir}/man1/xmllint.1*
88%doc %{_mandir}/man1/xmlcatalog.1*
Daniel Veillarde915b2d2002-03-06 18:42:40 +000089%doc %{_mandir}/man3/libxml.3*
Daniel Veillardea898282001-11-04 22:13:45 +000090
Daniel Veillard5643b5a2002-09-04 12:27:06 +000091%{_libdir}/lib*.so.*
Daniel Veillard29341682009-09-10 18:23:39 +020092%{_bindir}/xmllint
93%{_bindir}/xmlcatalog
Daniel Veillardea898282001-11-04 22:13:45 +000094
95%files devel
96%defattr(-, root, root)
97
98%doc %{_mandir}/man1/xml2-config.1*
Daniel Veillard29341682009-09-10 18:23:39 +020099%doc AUTHORS ChangeLog.gz NEWS README Copyright
Daniel Veillardf5a457a2002-03-07 10:25:29 +0000100%doc doc/*.html doc/html doc/*.gif doc/*.png
Daniel Veillard771971f2005-04-02 10:49:51 +0000101%doc doc/tutorial doc/libxml2-api.xml.gz
Daniel Veillard8d7b5c72003-11-15 18:24:36 +0000102%doc doc/examples
Daniel Veillard29341682009-09-10 18:23:39 +0200103%doc %dir %{_datadir}/gtk-doc/html/libxml2
Daniel Veillard1db4a662005-09-12 13:10:09 +0000104%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
105%doc %{_datadir}/gtk-doc/html/libxml2/*.html
106%doc %{_datadir}/gtk-doc/html/libxml2/*.png
107%doc %{_datadir}/gtk-doc/html/libxml2/*.css
Daniel Veillardea898282001-11-04 22:13:45 +0000108
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000109%{_libdir}/lib*.so
110%{_libdir}/*a
111%{_libdir}/*.sh
Daniel Veillard29341682009-09-10 18:23:39 +0200112%{_includedir}/*
113%{_bindir}/xml2-config
114%{_datadir}/aclocal/libxml.m4
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000115%{_libdir}/pkgconfig/libxml-2.0.pc
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000116%files python
117%defattr(-, root, root)
118
Daniel Veillardee1d6922004-04-18 14:58:57 +0000119%doc AUTHORS ChangeLog.gz NEWS README Copyright
Daniel Veillard8240f512005-09-04 23:04:44 +0000120%{_libdir}/python*/site-packages/libxml2.py*
121%{_libdir}/python*/site-packages/drv_libxml2.py*
Daniel Veillard366a9152002-10-23 20:43:53 +0000122%{_libdir}/python*/site-packages/libxml2mod*
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000123%doc python/TODO
124%doc python/libxml2class.txt
125%doc python/tests/*.py
Daniel Veillardf9c4cad2002-11-22 15:57:07 +0000126%doc doc/*.py
127%doc doc/python.html
Michael Fulbright62e8e801998-09-25 16:58:38 +0000128
129%changelog
Daniel Veillard9715c172002-11-25 16:33:40 +0000130* @RELDATE@ Daniel Veillard <veillard@redhat.com>
131- upstream release @VERSION@ see http://xmlsoft.org/news.html
132