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