blob: 242a4feed22ae6881aa7270e5804412da6b739af [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 Veillard87b4d6f2012-10-11 14:44:22 +08004Release: 1%{?dist}%{?extra_release}
Daniel Veillardc575b992002-02-08 13:28:40 +00005License: MIT
Daniel Veillard1a123612001-09-19 08:06:23 +00006Group: Development/Libraries
Daniel Veillard38bbd342012-09-11 15:00:08 +08007Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
Daniel Veillard87b4d6f2012-10-11 14:44:22 +08008BuildRoot: %{_tmppath}/%{name}-%{version}-root
Daniel Veillardadf5ec92012-01-26 16:56:22 +08009BuildRequires: python python-devel zlib-devel pkgconfig xz-devel
Daniel Veillard1a123612001-09-19 08:06:23 +000010URL: http://xmlsoft.org/
Michael Fulbright62e8e801998-09-25 16:58:38 +000011
12%description
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080013This library allows to manipulate XML files. It includes support
Daniel Veillard6db58192000-10-30 09:27:53 +000014to 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
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080019to select sub nodes or ranges. A flexible Input/Output mechanism is
Daniel Veillard6db58192000-10-30 09:27:53 +000020available, 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 Veillardadf5ec92012-01-26 16:56:22 +080028Requires: xz-devel
Daniel Veillard69839ba2006-06-06 13:27:03 +000029Requires: pkgconfig
Michael Fulbright62e8e801998-09-25 16:58:38 +000030
31%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000032Libraries, include files, etc you can use to develop XML applications.
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080033This library allows to manipulate XML files. It includes support
Daniel Veillard6db58192000-10-30 09:27:53 +000034to 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
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080039to select sub nodes or ranges. A flexible Input/Output mechanism is
Daniel Veillard6db58192000-10-30 09:27:53 +000040available, with existing HTTP and FTP modules and combined to an
41URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000042
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080043%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
Daniel Veillard253aa2c2002-02-02 09:17:16 +000052%package python
53Summary: Python bindings for the libxml2 library
54Group: Development/Libraries
Daniel Veillardda629342007-08-01 07:49:06 +000055Requires: libxml2 = %{version}-%{release}
Daniel Veillard253aa2c2002-02-02 09:17:16 +000056
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
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080062This library allows to manipulate XML files. It includes support
Daniel Veillard253aa2c2002-02-02 09:17:16 +000063to 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.
Daniel Veillard366a9152002-10-23 20:43:53 +000066
Daniel Veillardea898282001-11-04 22:13:45 +000067%prep
68%setup -q
69
70%build
Daniel Veillardbaad7882005-08-25 22:52:51 +000071%configure
Daniel Veillard29341682009-09-10 18:23:39 +020072make %{_smp_mflags}
Daniel Veillardea898282001-11-04 22:13:45 +000073
74%install
Daniel Veillard366a9152002-10-23 20:43:53 +000075rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +000076
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080077make install DESTDIR=%{buildroot}
78
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080079rm -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}/*
Daniel Veillard29341682009-09-10 18:23:39 +020084(cd doc/examples ; make clean ; rm -rf .deps Makefile)
Mark Salter60adeea2013-02-11 12:45:56 +080085gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
86
87%check
88make runtests
Daniel Veillardea898282001-11-04 22:13:45 +000089
90%clean
Daniel Veillard366a9152002-10-23 20:43:53 +000091rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +000092
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080093%post -p /sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +000094
Daniel Veillard87b4d6f2012-10-11 14:44:22 +080095%postun -p /sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +000096
97%files
98%defattr(-, root, root)
99
Daniel Veillard87b4d6f2012-10-11 14:44:22 +0800100%doc AUTHORS NEWS README Copyright TODO
Daniel Veillardea898282001-11-04 22:13:45 +0000101%doc %{_mandir}/man1/xmllint.1*
102%doc %{_mandir}/man1/xmlcatalog.1*
Daniel Veillarde915b2d2002-03-06 18:42:40 +0000103%doc %{_mandir}/man3/libxml.3*
Daniel Veillardea898282001-11-04 22:13:45 +0000104
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000105%{_libdir}/lib*.so.*
Daniel Veillard29341682009-09-10 18:23:39 +0200106%{_bindir}/xmllint
107%{_bindir}/xmlcatalog
Daniel Veillardea898282001-11-04 22:13:45 +0000108
109%files devel
110%defattr(-, root, root)
111
112%doc %{_mandir}/man1/xml2-config.1*
Daniel Veillard87b4d6f2012-10-11 14:44:22 +0800113%doc AUTHORS NEWS README Copyright
Daniel Veillardf5a457a2002-03-07 10:25:29 +0000114%doc doc/*.html doc/html doc/*.gif doc/*.png
Daniel Veillard771971f2005-04-02 10:49:51 +0000115%doc doc/tutorial doc/libxml2-api.xml.gz
Daniel Veillard8d7b5c72003-11-15 18:24:36 +0000116%doc doc/examples
Daniel Veillard29341682009-09-10 18:23:39 +0200117%doc %dir %{_datadir}/gtk-doc/html/libxml2
Daniel Veillard1db4a662005-09-12 13:10:09 +0000118%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
Daniel Veillardea898282001-11-04 22:13:45 +0000122
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000123%{_libdir}/lib*.so
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000124%{_libdir}/*.sh
Daniel Veillard29341682009-09-10 18:23:39 +0200125%{_includedir}/*
126%{_bindir}/xml2-config
127%{_datadir}/aclocal/libxml.m4
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000128%{_libdir}/pkgconfig/libxml-2.0.pc
Daniel Veillard2fcdb422014-10-16 15:39:41 +0800129%{_libdir}/cmake/libxml2/libxml2-config.cmake
Daniel Veillard87b4d6f2012-10-11 14:44:22 +0800130
131%files static
132%defattr(-, root, root)
133
134%{_libdir}/*a
135
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000136%files python
137%defattr(-, root, root)
138
Daniel Veillard8240f512005-09-04 23:04:44 +0000139%{_libdir}/python*/site-packages/libxml2.py*
140%{_libdir}/python*/site-packages/drv_libxml2.py*
Daniel Veillard366a9152002-10-23 20:43:53 +0000141%{_libdir}/python*/site-packages/libxml2mod*
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000142%doc python/TODO
143%doc python/libxml2class.txt
144%doc python/tests/*.py
Daniel Veillardf9c4cad2002-11-22 15:57:07 +0000145%doc doc/*.py
146%doc doc/python.html
Michael Fulbright62e8e801998-09-25 16:58:38 +0000147
148%changelog
Daniel Veillard9715c172002-11-25 16:33:40 +0000149* @RELDATE@ Daniel Veillard <veillard@redhat.com>
150- upstream release @VERSION@ see http://xmlsoft.org/news.html
151