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 | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 4 | Release: 1 |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 5 | License: LGPL |
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 | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 9 | BuildRequires: python python-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} |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 29 | |
| 30 | %description devel |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 31 | Libraries, include files, etc you can use to develop XML applications. |
| 32 | This library allows to manipulate XML files. It includes support |
| 33 | to read, modify and write XML and HTML files. There is DTDs support |
| 34 | this includes parsing and validation even with complex DtDs, either |
| 35 | at parse time or later once the document has been modified. The output |
| 36 | can be a simple SAX stream or and in-memory DOM like representations. |
| 37 | In this case one can use the built-in XPath and XPointer implementation |
| 38 | to select subnodes or ranges. A flexible Input/Output mechanism is |
| 39 | available, with existing HTTP and FTP modules and combined to an |
| 40 | URI library. |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 41 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 42 | %package python |
| 43 | Summary: Python bindings for the libxml2 library |
| 44 | Group: Development/Libraries |
| 45 | Requires: libxml2 = %{version} |
| 46 | Requires: python |
| 47 | |
| 48 | %description python |
| 49 | The libxml2-python package contains a module that permits applications |
| 50 | written in the Python programming language to use the interface |
| 51 | supplied by the libxml2 library to manipulate XML files. |
| 52 | |
| 53 | This library allows to manipulate XML files. It includes support |
| 54 | to read, modify and write XML and HTML files. There is DTDs support |
| 55 | this includes parsing and validation even with complex DTDs, either |
| 56 | at parse time or later once the document has been modified. |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 57 | %prep |
| 58 | %setup -q |
| 59 | |
| 60 | %build |
| 61 | # Needed for snapshot releases. |
| 62 | if [ ! -f configure ]; then |
| 63 | %ifarch alpha |
| 64 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} |
| 65 | %else |
| 66 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} |
| 67 | %endif |
| 68 | else |
| 69 | %ifarch alpha |
| 70 | CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} |
| 71 | %else |
| 72 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} |
| 73 | %endif |
| 74 | fi |
| 75 | |
| 76 | if [ "$SMP" != "" ]; then |
| 77 | (make "MAKE=make -k -j $SMP"; exit 0) |
| 78 | make |
| 79 | else |
| 80 | make |
| 81 | fi |
| 82 | |
| 83 | %install |
| 84 | rm -rf $RPM_BUILD_ROOT |
| 85 | |
| 86 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
| 87 | install -d $RPM_BUILD_ROOT%{_mandir}/man4 |
| 88 | make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install |
| 89 | |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame^] | 90 | # |
| 91 | # this is a bit ugly but tries to generate the bindings for all versions |
| 92 | # of python installed |
| 93 | for i in %{prefix}/include/python* |
| 94 | do |
| 95 | py_version=`echo $i | sed "s+%{prefix}/include/python++"` |
| 96 | if test -x %{prefix}/bin/python$py_version |
| 97 | then |
| 98 | echo generating bindings for Python $py_version |
| 99 | (cd python ; make clean ; \ |
| 100 | make PYTHON="%{prefix}/bin/python$py_version" \ |
| 101 | PYTHON_VERSION="$py_version"; \ |
| 102 | make PYTHON="%{prefix}/bin/python$py_version" \ |
| 103 | PYTHON_VERSION="$py_version" \ |
| 104 | prefix=$RPM_BUILD_ROOT%{prefix} \ |
| 105 | mandir=$RPM_BUILD_ROOT%{_mandir} install) |
| 106 | fi |
| 107 | done |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 108 | %clean |
| 109 | rm -rf $RPM_BUILD_ROOT |
| 110 | |
| 111 | %post -p /sbin/ldconfig |
| 112 | |
| 113 | %postun -p /sbin/ldconfig |
| 114 | |
| 115 | %files |
| 116 | %defattr(-, root, root) |
| 117 | |
| 118 | %doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO |
| 119 | %doc %{_mandir}/man1/xmllint.1* |
| 120 | %doc %{_mandir}/man1/xmlcatalog.1* |
| 121 | %doc %{_mandir}/man4/libxml.4* |
| 122 | |
| 123 | %{prefix}/lib/lib*.so.* |
| 124 | %{prefix}/bin/xmllint |
| 125 | %{prefix}/bin/xmlcatalog |
| 126 | |
| 127 | %files devel |
| 128 | %defattr(-, root, root) |
| 129 | |
| 130 | %doc %{_mandir}/man1/xml2-config.1* |
| 131 | %doc doc/*.html doc/html |
| 132 | |
| 133 | %{prefix}/lib/lib*.so |
| 134 | %{prefix}/lib/*a |
| 135 | %{prefix}/lib/*.sh |
| 136 | %{prefix}/include/* |
| 137 | %{prefix}/bin/xml2-config |
| 138 | %{prefix}/share/aclocal/libxml.m4 |
| 139 | %{prefix}/lib/pkgconfig/libxml-2.0.pc |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 140 | %files python |
| 141 | %defattr(-, root, root) |
| 142 | |
| 143 | %{prefix}/lib/python*/site-packages/libxml2.py |
| 144 | %{prefix}/lib/python*/site-packages/_libxml.so |
| 145 | %doc python/TODO |
| 146 | %doc python/libxml2class.txt |
| 147 | %doc python/tests/*.py |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 148 | |
| 149 | %changelog |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 150 | * Fri Feb 1 2002 Daniel Veillard <veillard@redhat.com> |
| 151 | |
| 152 | - Added the python package |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 153 | |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 154 | * Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com> |
| 155 | |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 156 | - cleaned up the specfile |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 157 | - 2.4.7 broke SGML catalogs badly. this fixes it. |
| 158 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 159 | * Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu> |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 160 | |
| 161 | [2.3.7] |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 162 | - Added libxml.m4 to the distribution file list |
| 163 | - Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0 |
| 164 | - Moved programmer documentation into the devel package |
| 165 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 166 | * Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 167 | |
| 168 | - corrected the spec file alpha stuff |
| 169 | - switched to version 1.7.1 |
| 170 | - Added validation, XPath, nanohttp, removed memory leaks |
| 171 | - Renamed CHAR to xmlChar |
| 172 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 173 | * Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 174 | |
| 175 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 176 | bug fixes. |
| 177 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 178 | * Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 179 | |
| 180 | - Added xml-config to the package |
| 181 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 182 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 183 | |
| 184 | - Built release 0.30 |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 185 | |