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