Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 1 | # Note that this is NOT a relocatable package |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 2 | %define ver @VERSION@ |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 3 | %define prefix /usr |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 4 | %define datadir %{prefix}/share |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 5 | |
Daniel Veillard | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 6 | Summary: Library providing XML and HTML support |
Daniel Veillard | cf46199 | 2000-03-14 18:30:20 +0000 | [diff] [blame] | 7 | Name: libxml2 |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 8 | Version: %ver |
Daniel Veillard | da07c34 | 2000-01-25 18:31:22 +0000 | [diff] [blame] | 9 | Release: 1 |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 10 | Copyright: LGPL |
Daniel Veillard | 4970326 | 2000-07-10 10:27:46 +0000 | [diff] [blame] | 11 | Group: Development/Libraries |
| 12 | Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 13 | BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 14 | |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 15 | URL: http://xmlsoft.org/ |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 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 | 6db5819 | 2000-10-30 09:27:53 +0000 | [diff] [blame] | 30 | Summary: Libraries, includes, etc. to develop XML and HTML applications |
Daniel Veillard | 4970326 | 2000-07-10 10:27:46 +0000 | [diff] [blame] | 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> |
| 50 | |
| 51 | [2.3.7] |
| 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 | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 56 | * Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org> |
| 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 | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 63 | * Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org> |
| 64 | |
| 65 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 66 | bug fixes. |
| 67 | |
Martin Baulig | e8cc5b3 | 1999-01-16 19:15:56 +0000 | [diff] [blame] | 68 | * Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org> |
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 |
| 75 | |
| 76 | %prep |
| 77 | %setup |
| 78 | |
| 79 | %build |
| 80 | # Needed for snapshot releases. |
| 81 | if [ ! -f configure ]; then |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 82 | %ifarch alpha |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 83 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 84 | %else |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 85 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 86 | %endif |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 87 | else |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 88 | %ifarch alpha |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 89 | CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 90 | %else |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 91 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 92 | %endif |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 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 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 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 |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 108 | |
| 109 | %clean |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 110 | rm -rf $RPM_BUILD_ROOT |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 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 |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 120 | %doc /usr/share/man/man1/xmllint.1* |
| 121 | %doc /usr/share/man/man4/libxml.4* |
Daniel Veillard | 979e55e | 2000-08-19 16:48:54 +0000 | [diff] [blame] | 122 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 123 | %{prefix}/lib/lib*.so.* |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 124 | %{prefix}/bin/xmllint |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 125 | |
| 126 | %files devel |
| 127 | %defattr(-, root, root) |
| 128 | |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 129 | %doc /usr/share/man/man1/xml2-config.1* |
| 130 | %doc doc/*.html doc/html |
| 131 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 132 | %{prefix}/lib/lib*.so |
| 133 | %{prefix}/lib/*a |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 134 | %{prefix}/lib/*.sh |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 135 | %{prefix}/include/* |
Daniel Veillard | b42042b | 2001-01-28 07:40:36 +0000 | [diff] [blame] | 136 | %{prefix}/bin/xml2-config |
Daniel Veillard | 2913e4c | 2001-04-26 19:29:02 +0000 | [diff] [blame] | 137 | %{prefix}/share/aclocal/libxml.m4 |
| 138 | # I'm not certain if this should be included in the distribution or not. |
| 139 | #%{prefix}/lib/pkgconfig/libxml-2.0.pc |