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 |
| 8 | BuildRoot: %{_tmppath}/%{name}-%{version}-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 |
| 28 | Requires: libxml2 = %{version} |
Daniel Veillard | c692481 | 2002-05-24 11:10:43 +0000 | [diff] [blame] | 29 | Requires: zlib-devel |
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 |
| 46 | Requires: libxml2 = %{version} |
Daniel Veillard | f70f7b2 | 2004-04-18 22:09:47 +0000 | [diff] [blame] | 47 | Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`) |
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 | 577d145 | 2004-06-27 14:07:43 +0000 | [diff] [blame] | 63 | # |
| 64 | # try to use compiler profiling, based on Arjan van de Ven <arjanv@redhat.com> |
Daniel Veillard | 0f59a34 | 2004-06-27 14:29:36 +0000 | [diff] [blame] | 65 | # initial test spec. This really doesn't work okay for most tests done. |
Daniel Veillard | 577d145 | 2004-06-27 14:07:43 +0000 | [diff] [blame] | 66 | # |
| 67 | GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` |
Daniel Veillard | 57c000e | 2005-03-13 18:34:29 +0000 | [diff] [blame] | 68 | if [ $GCC_VERSION -ge 34 ] |
Daniel Veillard | 577d145 | 2004-06-27 14:07:43 +0000 | [diff] [blame] | 69 | then |
| 70 | PROF_GEN='-fprofile-generate' |
| 71 | PROF_USE='-fprofile-use' |
| 72 | fi |
Daniel Veillard | 577d145 | 2004-06-27 14:07:43 +0000 | [diff] [blame] | 73 | |
| 74 | if [ "$PROF_GEN" != "" ] |
| 75 | then |
| 76 | # First generate a profiling version |
| 77 | CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure |
| 78 | make |
| 79 | # Run a few sampling |
| 80 | make dba100000.xml |
| 81 | ./xmllint --noout dba100000.xml |
| 82 | ./xmllint --stream dba100000.xml |
| 83 | ./xmllint --noout --valid test/valid/REC-xml-19980210.xml |
| 84 | ./xmllint --stream --valid test/valid/REC-xml-19980210.xml |
| 85 | # Then generate code based on profile |
| 86 | CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure |
| 87 | make |
| 88 | else |
| 89 | %configure |
| 90 | make |
| 91 | fi |
Daniel Veillard | c480c4e | 2003-12-10 13:24:38 +0000 | [diff] [blame] | 92 | (cd doc/examples ; make clean) |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 93 | gzip -9 ChangeLog |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 94 | |
| 95 | %install |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 96 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 97 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 98 | %makeinstall |
Daniel Veillard | 9fcb491 | 2005-03-16 12:57:31 +0000 | [diff] [blame] | 99 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 100 | |
| 101 | %clean |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 102 | rm -fr %{buildroot} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 103 | |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 104 | %post |
| 105 | /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 106 | |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 107 | %postun |
| 108 | /sbin/ldconfig |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 109 | |
| 110 | %files |
| 111 | %defattr(-, root, root) |
| 112 | |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 113 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 114 | %doc %{_mandir}/man1/xmllint.1* |
| 115 | %doc %{_mandir}/man1/xmlcatalog.1* |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 116 | %doc %{_mandir}/man3/libxml.3* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 117 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 118 | %{_libdir}/lib*.so.* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 119 | %{prefix}/bin/xmllint |
| 120 | %{prefix}/bin/xmlcatalog |
| 121 | |
| 122 | %files devel |
| 123 | %defattr(-, root, root) |
| 124 | |
| 125 | %doc %{_mandir}/man1/xml2-config.1* |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 126 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO |
Daniel Veillard | f5a457a | 2002-03-07 10:25:29 +0000 | [diff] [blame] | 127 | %doc doc/*.html doc/html doc/*.gif doc/*.png |
Daniel Veillard | a9b66d0 | 2002-12-11 14:23:49 +0000 | [diff] [blame] | 128 | %doc doc/tutorial doc/libxml2-api.xml |
Daniel Veillard | 8d7b5c7 | 2003-11-15 18:24:36 +0000 | [diff] [blame] | 129 | %doc doc/examples |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 130 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 131 | %{_libdir}/lib*.so |
| 132 | %{_libdir}/*a |
| 133 | %{_libdir}/*.sh |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 134 | %{prefix}/include/* |
| 135 | %{prefix}/bin/xml2-config |
| 136 | %{prefix}/share/aclocal/libxml.m4 |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 137 | %{_libdir}/pkgconfig/libxml-2.0.pc |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 138 | %files python |
| 139 | %defattr(-, root, root) |
| 140 | |
Daniel Veillard | ee1d692 | 2004-04-18 14:58:57 +0000 | [diff] [blame] | 141 | %doc AUTHORS ChangeLog.gz NEWS README Copyright |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 142 | %{_libdir}/python*/site-packages/libxml2.py |
Daniel Veillard | 4f86020 | 2003-01-02 13:00:02 +0000 | [diff] [blame] | 143 | %{_libdir}/python*/site-packages/drv_libxml2.py |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 144 | %{_libdir}/python*/site-packages/libxml2mod* |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 145 | %doc python/TODO |
| 146 | %doc python/libxml2class.txt |
| 147 | %doc python/tests/*.py |
Daniel Veillard | f9c4cad | 2002-11-22 15:57:07 +0000 | [diff] [blame] | 148 | %doc doc/*.py |
| 149 | %doc doc/python.html |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 150 | |
| 151 | %changelog |
Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 152 | * @RELDATE@ Daniel Veillard <veillard@redhat.com> |
| 153 | - upstream release @VERSION@ see http://xmlsoft.org/news.html |
| 154 | |
Daniel Veillard | 4f86020 | 2003-01-02 13:00:02 +0000 | [diff] [blame] | 155 | * Thu Jan 2 2003 Daniel Veillard <veillard@redhat.com> |
| 156 | - integrated drv_libxml2 xml.sax driver from Stéphane Bidoul |
| 157 | - provides the new XmlTextReader interfaces based on C# XML APIs |
| 158 | |
Daniel Veillard | 366a915 | 2002-10-23 20:43:53 +0000 | [diff] [blame] | 159 | * Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com> |
| 160 | - revamped the spec file, cleaned up some rpm building problems |
| 161 | |
| 162 | * Fri Oct 4 2002 Jeremy Katz <katzj@redhat.com> |
| 163 | - build with 'make LIBTOOL=/usr/bin/libtool' to use system libtool |
| 164 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 165 | * Wed Sep 4 2002 Daniel Veillard <veillard@redhat.com> |
| 166 | |
| 167 | - library paths fixed for x86-64 |
| 168 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 169 | * Fri Feb 1 2002 Daniel Veillard <veillard@redhat.com> |
| 170 | |
| 171 | - Added the python package |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 172 | |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 173 | * Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com> |
| 174 | |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 175 | - cleaned up the specfile |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 176 | - 2.4.7 broke SGML catalogs badly. this fixes it. |
| 177 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 178 | * Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu> |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 179 | |
| 180 | [2.3.7] |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 181 | - Added libxml.m4 to the distribution file list |
| 182 | - Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0 |
| 183 | - Moved programmer documentation into the devel package |
| 184 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 185 | * Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 186 | |
| 187 | - corrected the spec file alpha stuff |
| 188 | - switched to version 1.7.1 |
| 189 | - Added validation, XPath, nanohttp, removed memory leaks |
| 190 | - Renamed CHAR to xmlChar |
| 191 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 192 | * Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 193 | |
| 194 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 195 | bug fixes. |
| 196 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 197 | * Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 198 | |
| 199 | - Added xml-config to the package |
| 200 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 201 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 202 | |
| 203 | - Built release 0.30 |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 204 | |