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 | |
| 5 | Summary: libXML library |
| 6 | Name: libxml |
| 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 |
| 10 | Group: X11/Libraries |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 11 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver}.tar.gz |
| 12 | BuildRoot: /var/tmp/libxml-%{PACKAGE_VERSION}-root |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 13 | Provides: libxml.so.0 |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 14 | |
Daniel Veillard | 2f4dfc4 | 1999-09-24 14:03:48 +0000 | [diff] [blame] | 15 | URL: http://rpmfind.net/veillard/XML/ |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 16 | Prereq: /sbin/install-info |
| 17 | Docdir: %{prefix}/doc |
| 18 | |
| 19 | %description |
| 20 | This library allows you to manipulate XML files. |
| 21 | |
| 22 | %package devel |
| 23 | Summary: Libraries, includes, etc to develop libxml applications |
| 24 | Group: X11/libraries |
| 25 | Requires: libxml |
| 26 | |
| 27 | %description devel |
| 28 | Libraries, include files, etc you can use to develop libxml applications. |
| 29 | |
| 30 | |
| 31 | %changelog |
| 32 | |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 33 | * Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org> |
| 34 | |
| 35 | - corrected the spec file alpha stuff |
| 36 | - switched to version 1.7.1 |
| 37 | - Added validation, XPath, nanohttp, removed memory leaks |
| 38 | - Renamed CHAR to xmlChar |
| 39 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 40 | * Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org> |
| 41 | |
| 42 | - Switched to version 1.1: SAX extensions, better entities support, lots of |
| 43 | bug fixes. |
| 44 | |
Martin Baulig | e8cc5b3 | 1999-01-16 19:15:56 +0000 | [diff] [blame] | 45 | * Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 46 | |
| 47 | - Added xml-config to the package |
| 48 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 49 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 50 | |
| 51 | - Built release 0.30 |
| 52 | |
| 53 | %prep |
| 54 | %setup |
| 55 | |
| 56 | %build |
| 57 | # Needed for snapshot releases. |
| 58 | if [ ! -f configure ]; then |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 59 | %ifarch alpha |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 60 | 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] | 61 | %else |
| 62 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" |
| 63 | %endif |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 64 | else |
Gregory McLean | 0474343 | 1999-02-28 02:38:48 +0000 | [diff] [blame] | 65 | %ifarch alpha |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 66 | 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] | 67 | %else |
| 68 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" |
| 69 | %endif |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 70 | fi |
| 71 | |
| 72 | if [ "$SMP" != "" ]; then |
| 73 | (make "MAKE=make -k -j $SMP"; exit 0) |
| 74 | make |
| 75 | else |
| 76 | make |
| 77 | fi |
| 78 | |
| 79 | %install |
| 80 | rm -rf $RPM_BUILD_ROOT |
| 81 | |
| 82 | make prefix=$RPM_BUILD_ROOT%{prefix} install |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 83 | # |
| 84 | # hack to get libxml.so.0 too ! |
| 85 | # Get rid of it once deps to libxml.so.0 have disapeared. |
| 86 | # |
| 87 | if [ -f $RPM_BUILD_ROOT/%{prefix}/lib/libxml.so.@VERSION@ ] |
| 88 | then |
| 89 | (cd $RPM_BUILD_ROOT/%{prefix}/lib/ ; cp libxml.so.@VERSION@ libxml.so.0.99.0 ; ln -sf libxml.so.0.99.0 libxml.so.0) |
| 90 | fi |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 91 | |
| 92 | |
| 93 | %clean |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 94 | rm -rf $RPM_BUILD_ROOT |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 95 | |
| 96 | %post -p /sbin/ldconfig |
| 97 | |
| 98 | %postun -p /sbin/ldconfig |
| 99 | |
| 100 | %files |
| 101 | %defattr(-, root, root) |
| 102 | |
| 103 | %doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO |
| 104 | %{prefix}/lib/lib*.so.* |
Daniel Veillard | 213c178 | 1998-10-04 14:48:06 +0000 | [diff] [blame] | 105 | %{prefix}/bin/xml-config |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 106 | |
| 107 | %files devel |
| 108 | %defattr(-, root, root) |
| 109 | |
| 110 | %{prefix}/lib/lib*.so |
| 111 | %{prefix}/lib/*a |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 112 | %{prefix}/lib/*.sh |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 113 | %{prefix}/include/* |