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