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