Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 1 | # Note that this is NOT a relocatable package |
| 2 | %define ver @VERSION@ |
| 3 | %define prefix /usr |
| 4 | %define datadir %{prefix}/share |
| 5 | |
| 6 | Summary: Library providing XML and HTML support |
| 7 | Name: libxml2 |
| 8 | Version: %ver |
| 9 | Release: 1 |
| 10 | Copyright: LGPL |
| 11 | Group: Development/Libraries |
| 12 | Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz |
| 13 | BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root |
| 14 | |
| 15 | URL: http://xmlsoft.org/ |
| 16 | Docdir: %{datadir}/doc |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 17 | |
| 18 | %description |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 19 | This library allows to manipulate XML files. It includes support |
| 20 | to read, modify and write XML and HTML files. There is DTDs support |
| 21 | this includes parsing and validation even with complex DtDs, either |
| 22 | at parse time or later once the document has been modified. The output |
| 23 | can be a simple SAX stream or and in-memory DOM like representations. |
| 24 | In this case one can use the built-in XPath and XPointer implementation |
| 25 | to select subnodes or ranges. A flexible Input/Output mechanism is |
| 26 | available, with existing HTTP and FTP modules and combined to an |
| 27 | URI library. |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 28 | |
| 29 | %package devel |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 30 | Summary: Libraries, includes, etc. to develop XML and HTML applications |
| 31 | Group: Development/Libraries |
| 32 | Requires: libxml2 = %{version} |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 33 | |
| 34 | %description devel |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 35 | Libraries, include files, etc you can use to develop XML applications. |
| 36 | This library allows to manipulate XML files. It includes support |
| 37 | to read, modify and write XML and HTML files. There is DTDs support |
| 38 | this includes parsing and validation even with complex DtDs, either |
| 39 | at parse time or later once the document has been modified. The output |
| 40 | can be a simple SAX stream or and in-memory DOM like representations. |
| 41 | In this case one can use the built-in XPath and XPointer implementation |
| 42 | to select subnodes or ranges. A flexible Input/Output mechanism is |
| 43 | available, with existing HTTP and FTP modules and combined to an |
| 44 | URI library. |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 45 | |
| 46 | |
| 47 | %changelog |
| 48 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 49 | * Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu> |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 50 | |
| 51 | [2.3.7] |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 52 | - Added libxml.m4 to the distribution file list |
| 53 | - Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0 |
| 54 | - Moved programmer documentation into the devel package |
| 55 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 56 | * Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 57 | |
| 58 | - corrected the spec file alpha stuff |
| 59 | - switched to version 1.7.1 |
| 60 | - Added validation, XPath, nanohttp, removed memory leaks |
| 61 | - Renamed CHAR to xmlChar |
| 62 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 63 | * Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 64 | |
| 65 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 66 | bug fixes. |
| 67 | |
Daniel Veillard | c5d6434 | 2001-06-24 12:13:24 +0000 | [diff] [blame] | 68 | * Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 69 | |
| 70 | - Added xml-config to the package |
| 71 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 72 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 73 | |
| 74 | - Built release 0.30 |
Daniel Veillard | 1a12361 | 2001-09-19 08:06:23 +0000 | [diff] [blame] | 75 | |
| 76 | %prep |
| 77 | %setup |
| 78 | |
| 79 | %build |
| 80 | # Needed for snapshot releases. |
| 81 | if [ ! -f configure ]; then |
| 82 | %ifarch alpha |
| 83 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
| 84 | %else |
| 85 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
| 86 | %endif |
| 87 | else |
| 88 | %ifarch alpha |
| 89 | CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
| 90 | %else |
| 91 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
| 92 | %endif |
| 93 | fi |
| 94 | |
| 95 | if [ "$SMP" != "" ]; then |
| 96 | (make "MAKE=make -k -j $SMP"; exit 0) |
| 97 | make |
| 98 | else |
| 99 | make |
| 100 | fi |
| 101 | |
| 102 | %install |
| 103 | rm -rf $RPM_BUILD_ROOT |
| 104 | |
| 105 | install -d $RPM_BUILD_ROOT%{datadir}/man/man1 |
| 106 | install -d $RPM_BUILD_ROOT%{datadir}/man/man4 |
| 107 | make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{datadir}/man install |
| 108 | |
| 109 | %clean |
| 110 | rm -rf $RPM_BUILD_ROOT |
| 111 | |
| 112 | %post -p /sbin/ldconfig |
| 113 | |
| 114 | %postun -p /sbin/ldconfig |
| 115 | |
| 116 | %files |
| 117 | %defattr(-, root, root) |
| 118 | |
| 119 | %doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO |
| 120 | %doc %{prefix}/share/man/man1/xmllint.1* |
| 121 | %doc %{prefix}/share/man/man1/xmlcatalog.1* |
| 122 | %doc %{prefix}/share/man/man4/libxml.4* |
| 123 | |
| 124 | %{prefix}/lib/lib*.so.* |
| 125 | %{prefix}/bin/xmllint |
| 126 | %{prefix}/bin/xmlcatalog |
| 127 | |
| 128 | %files devel |
| 129 | %defattr(-, root, root) |
| 130 | |
| 131 | %doc /usr/share/man/man1/xml2-config.1* |
| 132 | %doc doc/*.html doc/html |
| 133 | |
| 134 | %{prefix}/lib/lib*.so |
| 135 | %{prefix}/lib/*a |
| 136 | %{prefix}/lib/*.sh |
| 137 | %{prefix}/include/* |
| 138 | %{prefix}/bin/xml2-config |
| 139 | %{prefix}/share/aclocal/libxml.m4 |
| 140 | %{prefix}/lib/pkgconfig/libxml-2.0.pc |