Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 1 | # Note that this is NOT a relocatable package |
Martin Baulig | e8cc5b3 | 1999-01-16 19:15:56 +0000 | [diff] [blame^] | 2 | %define ver 0.99.3 |
| 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 |
| 12 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml-%{ver}.tar.gz |
| 13 | BuildRoot: /var/tmp/libxml-root |
| 14 | Packager: Michael Fulbright <msf@redhat.com> |
| 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 | |
Martin Baulig | e8cc5b3 | 1999-01-16 19:15:56 +0000 | [diff] [blame^] | 33 | * Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org> |
Daniel Veillard | 8631b78 | 1998-10-04 14:50:58 +0000 | [diff] [blame] | 34 | |
| 35 | - Added xml-config to the package |
| 36 | |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 37 | * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com> |
| 38 | |
| 39 | - Built release 0.30 |
| 40 | |
| 41 | %prep |
| 42 | %setup |
| 43 | |
| 44 | %build |
| 45 | # Needed for snapshot releases. |
| 46 | if [ ! -f configure ]; then |
| 47 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix |
| 48 | else |
| 49 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix |
| 50 | fi |
| 51 | |
| 52 | if [ "$SMP" != "" ]; then |
| 53 | (make "MAKE=make -k -j $SMP"; exit 0) |
| 54 | make |
| 55 | else |
| 56 | make |
| 57 | fi |
| 58 | |
| 59 | %install |
| 60 | rm -rf $RPM_BUILD_ROOT |
| 61 | |
| 62 | make prefix=$RPM_BUILD_ROOT%{prefix} install |
| 63 | |
| 64 | |
| 65 | %clean |
| 66 | #rm -rf $RPM_BUILD_ROOT |
| 67 | |
| 68 | %post -p /sbin/ldconfig |
| 69 | |
| 70 | %postun -p /sbin/ldconfig |
| 71 | |
| 72 | %files |
| 73 | %defattr(-, root, root) |
| 74 | |
| 75 | %doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO |
| 76 | %{prefix}/lib/lib*.so.* |
Daniel Veillard | 213c178 | 1998-10-04 14:48:06 +0000 | [diff] [blame] | 77 | %{prefix}/bin/xml-config |
Michael Fulbright | 62e8e80 | 1998-09-25 16:58:38 +0000 | [diff] [blame] | 78 | |
| 79 | %files devel |
| 80 | %defattr(-, root, root) |
| 81 | |
| 82 | %{prefix}/lib/lib*.so |
| 83 | %{prefix}/lib/*a |
| 84 | %{prefix}/lib/*.sh |
| 85 | %{prefix}/include/* |