blob: 810362bb3ce8dfadab0a8d8fbc0632b9a88c49a4 [file] [log] [blame]
Michael Fulbright62e8e801998-09-25 16:58:38 +00001# Note that this is NOT a relocatable package
Michael Fulbright63dc42c1999-02-21 21:20:12 +00002%define ver @VERSION@
Elliot Lee272b02e1999-07-29 20:09:19 +00003%define RELEASE SNAP
4%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
Michael Fulbright62e8e801998-09-25 16:58:38 +00005%define prefix /usr
6
7Summary: libXML library
8Name: libxml
9Version: %ver
10Release: %rel
11Copyright: LGPL
12Group: X11/Libraries
Michael Fulbright63dc42c1999-02-21 21:20:12 +000013Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver}.tar.gz
14BuildRoot: /var/tmp/libxml-%{PACKAGE_VERSION}-root
Daniel Veillardb05deb71999-08-10 19:04:08 +000015Provides: libxml.so.0
Michael Fulbright63dc42c1999-02-21 21:20:12 +000016
Michael Fulbright62e8e801998-09-25 16:58:38 +000017URL: http://www.gnome.org
18Prereq: /sbin/install-info
19Docdir: %{prefix}/doc
20
21%description
22This library allows you to manipulate XML files.
23
24%package devel
25Summary: Libraries, includes, etc to develop libxml applications
26Group: X11/libraries
27Requires: libxml
28
29%description devel
30Libraries, include files, etc you can use to develop libxml applications.
31
32
33%changelog
34
Daniel Veillarddd6b3671999-09-23 22:19:22 +000035* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
36
37- corrected the spec file alpha stuff
38- switched to version 1.7.1
39- Added validation, XPath, nanohttp, removed memory leaks
40- Renamed CHAR to xmlChar
41
Daniel Veillard011b63c1999-06-02 17:44:04 +000042* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
43
44- Switched to version 1.1: SAX extensions, better entities support, lots of
45 bug fixes.
46
Martin Baulige8cc5b31999-01-16 19:15:56 +000047* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000048
49- Added xml-config to the package
50
Michael Fulbright62e8e801998-09-25 16:58:38 +000051* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
52
53- Built release 0.30
54
55%prep
56%setup
57
58%build
59# Needed for snapshot releases.
60if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000061%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000062 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000063%else
64 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
65%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000066else
Gregory McLean04743431999-02-28 02:38:48 +000067%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000068 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000069%else
70 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
71%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000072fi
73
74if [ "$SMP" != "" ]; then
75 (make "MAKE=make -k -j $SMP"; exit 0)
76 make
77else
78 make
79fi
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84make prefix=$RPM_BUILD_ROOT%{prefix} install
Daniel Veillardb05deb71999-08-10 19:04:08 +000085#
86# hack to get libxml.so.0 too !
87# Get rid of it once deps to libxml.so.0 have disapeared.
88#
89if [ -f $RPM_BUILD_ROOT/%{prefix}/lib/libxml.so.@VERSION@ ]
90then
91 (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)
92fi
Michael Fulbright62e8e801998-09-25 16:58:38 +000093
94
95%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000096rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000097
98%post -p /sbin/ldconfig
99
100%postun -p /sbin/ldconfig
101
102%files
103%defattr(-, root, root)
104
105%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
106%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +0000107%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +0000108
109%files devel
110%defattr(-, root, root)
111
112%{prefix}/lib/lib*.so
113%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000114%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000115%{prefix}/include/*