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 | a7084cd | 2002-04-15 17:12:47 +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 | 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} |
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} |
| 47 | Requires: python |
| 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 | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 58 | %prep |
| 59 | %setup -q |
| 60 | |
| 61 | %build |
| 62 | # Needed for snapshot releases. |
| 63 | if [ ! -f configure ]; then |
| 64 | %ifarch alpha |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 65 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 66 | %else |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 67 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 68 | %endif |
| 69 | else |
| 70 | %ifarch alpha |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 71 | CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 72 | %else |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 73 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir} |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 74 | %endif |
| 75 | fi |
| 76 | |
| 77 | if [ "$SMP" != "" ]; then |
| 78 | (make "MAKE=make -k -j $SMP"; exit 0) |
| 79 | make |
| 80 | else |
| 81 | make |
| 82 | fi |
| 83 | |
| 84 | %install |
| 85 | rm -rf $RPM_BUILD_ROOT |
| 86 | |
| 87 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
| 88 | install -d $RPM_BUILD_ROOT%{_mandir}/man4 |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 89 | %makeinstall |
| 90 | # make prefix=$RPM_BUILD_ROOT%{prefix} libdir=$RPM_BUILD_ROOT%{_libdir} mandir=$RPM_BUILD_ROOT%{_mandir} install |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 91 | |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 92 | # |
| 93 | # this is a bit ugly but tries to generate the bindings for all versions |
| 94 | # of python installed |
| 95 | for i in %{prefix}/include/python* |
| 96 | do |
| 97 | py_version=`echo $i | sed "s+%{prefix}/include/python++"` |
| 98 | if test -x %{prefix}/bin/python$py_version |
| 99 | then |
| 100 | echo generating bindings for Python $py_version |
| 101 | (cd python ; make clean ; \ |
| 102 | make PYTHON="%{prefix}/bin/python$py_version" \ |
Daniel Veillard | d237901 | 2002-03-15 22:24:56 +0000 | [diff] [blame] | 103 | PYTHON_INCLUDES="%{prefix}/include/python$py_version" \ |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 104 | PYTHON_VERSION="$py_version"; \ |
| 105 | make PYTHON="%{prefix}/bin/python$py_version" \ |
Daniel Veillard | d237901 | 2002-03-15 22:24:56 +0000 | [diff] [blame] | 106 | PYTHON_INCLUDES="%{prefix}/include/python$py_version" \ |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 107 | PYTHON_VERSION="$py_version" \ |
| 108 | prefix=$RPM_BUILD_ROOT%{prefix} \ |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 109 | libdir=$RPM_BUILD_ROOT%{_libdir} \ |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 110 | mandir=$RPM_BUILD_ROOT%{_mandir} install) |
| 111 | fi |
| 112 | done |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 113 | %clean |
| 114 | rm -rf $RPM_BUILD_ROOT |
| 115 | |
| 116 | %post -p /sbin/ldconfig |
| 117 | |
| 118 | %postun -p /sbin/ldconfig |
| 119 | |
| 120 | %files |
| 121 | %defattr(-, root, root) |
| 122 | |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 123 | %doc AUTHORS ChangeLog NEWS README Copyright TODO |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 124 | %doc %{_mandir}/man1/xmllint.1* |
| 125 | %doc %{_mandir}/man1/xmlcatalog.1* |
Daniel Veillard | e915b2d | 2002-03-06 18:42:40 +0000 | [diff] [blame] | 126 | %doc %{_mandir}/man3/libxml.3* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 127 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 128 | %{_libdir}/lib*.so.* |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 129 | %{prefix}/bin/xmllint |
| 130 | %{prefix}/bin/xmlcatalog |
| 131 | |
| 132 | %files devel |
| 133 | %defattr(-, root, root) |
| 134 | |
| 135 | %doc %{_mandir}/man1/xml2-config.1* |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 136 | %doc AUTHORS ChangeLog NEWS README Copyright TODO |
Daniel Veillard | f5a457a | 2002-03-07 10:25:29 +0000 | [diff] [blame] | 137 | %doc doc/*.html doc/html doc/*.gif doc/*.png |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 138 | |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 139 | %{_libdir}/lib*.so |
| 140 | %{_libdir}/*a |
| 141 | %{_libdir}/*.sh |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 142 | %{prefix}/include/* |
| 143 | %{prefix}/bin/xml2-config |
| 144 | %{prefix}/share/aclocal/libxml.m4 |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 145 | %{_libdir}/pkgconfig/libxml-2.0.pc |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 146 | %files python |
| 147 | %defattr(-, root, root) |
| 148 | |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 149 | %doc AUTHORS ChangeLog NEWS README Copyright |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 150 | %{_libdir}/python*/site-packages/libxml2.py |
| 151 | %{_libdir}/python*/site-packages/libxml2mod.so |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 152 | %doc python/TODO |
| 153 | %doc python/libxml2class.txt |
| 154 | %doc python/tests/*.py |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 155 | |
| 156 | %changelog |
Daniel Veillard | 5643b5a | 2002-09-04 12:27:06 +0000 | [diff] [blame] | 157 | * Wed Sep 4 2002 Daniel Veillard <veillard@redhat.com> |
| 158 | |
| 159 | - library paths fixed for x86-64 |
| 160 | |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 161 | * Fri Feb 1 2002 Daniel Veillard <veillard@redhat.com> |
| 162 | |
| 163 | - Added the python package |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 164 | |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 165 | * Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com> |
| 166 | |
Daniel Veillard | ea89828 | 2001-11-04 22:13:45 +0000 | [diff] [blame] | 167 | - cleaned up the specfile |
Daniel Veillard | cd21dc7 | 2001-11-04 20:03:38 +0000 | [diff] [blame] | 168 | - 2.4.7 broke SGML catalogs badly. this fixes it. |
| 169 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 170 | * Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu> |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 171 | |
| 172 | [2.3.7] |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 173 | - Added libxml.m4 to the distribution file list |
| 174 | - Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0 |
| 175 | - Moved programmer documentation into the devel package |
| 176 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 177 | * Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 178 | |
| 179 | - corrected the spec file alpha stuff |
| 180 | - switched to version 1.7.1 |
| 181 | - Added validation, XPath, nanohttp, removed memory leaks |
| 182 | - Renamed CHAR to xmlChar |
| 183 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 184 | * Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 185 | |
| 186 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 187 | bug fixes. |
| 188 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 189 | * Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 190 | |
| 191 | - Added xml-config to the package |
| 192 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 193 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 194 | |
| 195 | - Built release 0.30 |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 196 | |