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