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 | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 4 | Release: 1%{?dist}%{?extra_release} |
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 | 38bbd34 | 2012-09-11 15:00:08 +0800 | [diff] [blame] | 7 | Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 8 | BuildRoot: %{_tmppath}/%{name}-%{version}-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 | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 13 | This library allows to manipulate XML files. It includes support |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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 |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 19 | to select sub nodes or ranges. A flexible Input/Output mechanism is |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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. |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 33 | This library allows to manipulate XML files. It includes support |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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 |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 39 | to select sub nodes or ranges. A flexible Input/Output mechanism is |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 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 | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 43 | %package static |
| 44 | Summary: Static library for libxml2 |
| 45 | Group: Development/Libraries |
| 46 | Requires: libxml2 = %{version}-%{release} |
| 47 | |
| 48 | %description static |
| 49 | Static library for libxml2 provided for specific uses or shaving a few |
| 50 | microseconds when parsing, do not link to them for generic purpose packages. |
| 51 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 52 | %package python |
| 53 | Summary: Python bindings for the libxml2 library |
| 54 | Group: Development/Libraries |
Daniel Veillard | da62934 | 2007-08-01 07:49:06 +0000 | [diff] [blame] | 55 | Requires: libxml2 = %{version}-%{release} |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 56 | |
| 57 | %description python |
| 58 | The libxml2-python package contains a module that permits applications |
| 59 | written in the Python programming language to use the interface |
| 60 | supplied by the libxml2 library to manipulate XML files. |
| 61 | |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 62 | This library allows to manipulate XML files. It includes support |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 63 | to read, modify and write XML and HTML files. There is DTDs support |
| 64 | this includes parsing and validation even with complex DTDs, either |
| 65 | at parse time or later once the document has been modified. |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 66 | |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 67 | %prep |
| 68 | %setup -q |
| 69 | |
| 70 | %build |
Daniel Veillard | baad788 | 2005-08-25 22:52:51 +0000 | [diff] [blame] | 71 | %configure |
Daniel Veillard | 2934168 | 2009-09-10 18:23:39 +0200 | [diff] [blame] | 72 | make %{_smp_mflags} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 73 | |
| 74 | %install |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 75 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 76 | |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 77 | make install DESTDIR=%{buildroot} |
| 78 | |
| 79 | %check |
| 80 | make check |
| 81 | |
| 82 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
| 83 | rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a |
| 84 | rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la |
| 85 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/* |
| 86 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/* |
Daniel Veillard | 2934168 | 2009-09-10 18:23:39 +0200 | [diff] [blame] | 87 | (cd doc/examples ; make clean ; rm -rf .deps Makefile) |
Daniel Veillard | 771971f | 2005-04-02 10:49:51 +0000 | [diff] [blame] | 88 | gzip -9 doc/libxml2-api.xml |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 89 | |
| 90 | %clean |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 91 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 92 | |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 93 | %post -p /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 94 | |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 95 | %postun -p /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 96 | |
| 97 | %files |
| 98 | %defattr(-, root, root) |
| 99 | |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 100 | %doc AUTHORS NEWS README Copyright TODO |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 101 | %doc %{_mandir}/man1/xmllint.1* |
| 102 | %doc %{_mandir}/man1/xmlcatalog.1* |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 103 | %doc %{_mandir}/man3/libxml.3* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 104 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 105 | %{_libdir}/lib*.so.* |
Daniel Veillard | 2934168 | 2009-09-10 18:23:39 +0200 | [diff] [blame] | 106 | %{_bindir}/xmllint |
| 107 | %{_bindir}/xmlcatalog |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 108 | |
| 109 | %files devel |
| 110 | %defattr(-, root, root) |
| 111 | |
| 112 | %doc %{_mandir}/man1/xml2-config.1* |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 113 | %doc AUTHORS NEWS README Copyright |
Daniel Veillard | f5a457a | 2002-03-07 10:25:29 +0000 | [diff] [blame] | 114 | %doc doc/*.html doc/html doc/*.gif doc/*.png |
Daniel Veillard | 771971f | 2005-04-02 10:49:51 +0000 | [diff] [blame] | 115 | %doc doc/tutorial doc/libxml2-api.xml.gz |
Daniel Veillard | 8d7b5c7 | 2003-11-15 18:24:36 +0000 | [diff] [blame] | 116 | %doc doc/examples |
Daniel Veillard | 2934168 | 2009-09-10 18:23:39 +0200 | [diff] [blame] | 117 | %doc %dir %{_datadir}/gtk-doc/html/libxml2 |
Daniel Veillard | 1db4a66 | 2005-09-12 13:10:09 +0000 | [diff] [blame] | 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 |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 122 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 123 | %{_libdir}/lib*.so |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 124 | %{_libdir}/*.sh |
Daniel Veillard | 2934168 | 2009-09-10 18:23:39 +0200 | [diff] [blame] | 125 | %{_includedir}/* |
| 126 | %{_bindir}/xml2-config |
| 127 | %{_datadir}/aclocal/libxml.m4 |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 128 | %{_libdir}/pkgconfig/libxml-2.0.pc |
Daniel Veillard | 87b4d6f | 2012-10-11 14:44:22 +0800 | [diff] [blame] | 129 | |
| 130 | %files static |
| 131 | %defattr(-, root, root) |
| 132 | |
| 133 | %{_libdir}/*a |
| 134 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 135 | %files python |
| 136 | %defattr(-, root, root) |
| 137 | |
Daniel Veillard | 8240f51 | 2005-09-04 23:04:44 +0000 | [diff] [blame] | 138 | %{_libdir}/python*/site-packages/libxml2.py* |
| 139 | %{_libdir}/python*/site-packages/drv_libxml2.py* |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 140 | %{_libdir}/python*/site-packages/libxml2mod* |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 141 | %doc python/TODO |
| 142 | %doc python/libxml2class.txt |
| 143 | %doc python/tests/*.py |
Daniel Veillard | f9c4cad | 2002-11-22 15:57:07 +0000 | [diff] [blame] | 144 | %doc doc/*.py |
| 145 | %doc doc/python.html |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 146 | |
| 147 | %changelog |
Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 148 | * @RELDATE@ Daniel Veillard <veillard@redhat.com> |
| 149 | - upstream release @VERSION@ see http://xmlsoft.org/news.html |
| 150 | |