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 | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 7 | Source: ftp://xmlsoft.org/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 | da3336f | 2004-08-26 22:14:34 +0000 | [diff] [blame] | 9 | BuildRequires: python python-devel zlib-devel |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 10 | URL: http://xmlsoft.org/ |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 11 | Prefix: %{_prefix} |
| 12 | Docdir: %{_docdir} |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 13 | |
| 14 | %description |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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. |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 24 | |
| 25 | %package devel |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 26 | Summary: Libraries, includes, etc. to develop XML and HTML applications |
| 27 | Group: Development/Libraries |
Daniel Veillard | da62934 | 2007-08-01 07:49:06 +0000 | [diff] [blame] | 28 | Requires: libxml2 = %{version}-%{release} |
Daniel Veillard | c692481 | 2002-05-24 11:10:43 +0000 | [diff] [blame] | 29 | Requires: zlib-devel |
Daniel Veillard | 69839ba | 2006-06-06 13:27:03 +0000 | [diff] [blame] | 30 | Requires: pkgconfig |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 31 | |
| 32 | %description devel |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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. |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 43 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 44 | %package python |
| 45 | Summary: Python bindings for the libxml2 library |
| 46 | Group: Development/Libraries |
Daniel Veillard | da62934 | 2007-08-01 07:49:06 +0000 | [diff] [blame] | 47 | Requires: libxml2 = %{version}-%{release} |
| 48 | Requires: python |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 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. |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 59 | |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 60 | %prep |
| 61 | %setup -q |
| 62 | |
| 63 | %build |
Daniel Veillard | baad788 | 2005-08-25 22:52:51 +0000 | [diff] [blame] | 64 | %configure |
| 65 | make |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 66 | gzip -9 ChangeLog |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 67 | |
| 68 | %install |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 69 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 70 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 71 | %makeinstall |
Daniel Veillard | 771971f | 2005-04-02 10:49:51 +0000 | [diff] [blame] | 72 | (cd doc/examples ; make clean ; rm -rf .deps) |
| 73 | gzip -9 doc/libxml2-api.xml |
Daniel Veillard | 9fcb491 | 2005-03-16 12:57:31 +0000 | [diff] [blame] | 74 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 75 | |
| 76 | %clean |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 77 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 78 | |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 79 | %post |
| 80 | /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 81 | |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 82 | %postun |
| 83 | /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 84 | |
| 85 | %files |
| 86 | %defattr(-, root, root) |
| 87 | |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 88 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 89 | %doc %{_mandir}/man1/xmllint.1* |
| 90 | %doc %{_mandir}/man1/xmlcatalog.1* |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 91 | %doc %{_mandir}/man3/libxml.3* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 92 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 93 | %{_libdir}/lib*.so.* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 94 | %{prefix}/bin/xmllint |
| 95 | %{prefix}/bin/xmlcatalog |
| 96 | |
| 97 | %files devel |
| 98 | %defattr(-, root, root) |
| 99 | |
| 100 | %doc %{_mandir}/man1/xml2-config.1* |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 101 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO |
Daniel Veillard | f5a457a | 2002-03-07 10:25:29 +0000 | [diff] [blame] | 102 | %doc doc/*.html doc/html doc/*.gif doc/*.png |
Daniel Veillard | 771971f | 2005-04-02 10:49:51 +0000 | [diff] [blame] | 103 | %doc doc/tutorial doc/libxml2-api.xml.gz |
Daniel Veillard | 8d7b5c7 | 2003-11-15 18:24:36 +0000 | [diff] [blame] | 104 | %doc doc/examples |
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 | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 113 | %{prefix}/include/* |
| 114 | %{prefix}/bin/xml2-config |
| 115 | %{prefix}/share/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 | |