blob: 8f9f9412022fc595ea93c214357a019d20f14d32 [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
15
Michael Fulbright62e8e801998-09-25 16:58:38 +000016URL: http://www.gnome.org
17Prereq: /sbin/install-info
18Docdir: %{prefix}/doc
19
20%description
21This library allows you to manipulate XML files.
22
23%package devel
24Summary: Libraries, includes, etc to develop libxml applications
25Group: X11/libraries
26Requires: libxml
27
28%description devel
29Libraries, include files, etc you can use to develop libxml applications.
30
31
32%changelog
33
Daniel Veillard011b63c1999-06-02 17:44:04 +000034* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
35
36- Switched to version 1.1: SAX extensions, better entities support, lots of
37 bug fixes.
38
Martin Baulige8cc5b31999-01-16 19:15:56 +000039* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000040
41- Added xml-config to the package
42
Michael Fulbright62e8e801998-09-25 16:58:38 +000043* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
44
45- Built release 0.30
46
47%prep
48%setup
49
50%build
51# Needed for snapshot releases.
52if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000053%ifarch alpha
54 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefi
55x --sysconfdir="/etc"
56%else
57 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
58%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000059else
Gregory McLean04743431999-02-28 02:38:48 +000060%ifarch alpha
61 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix
62 --sysconfdir="/etc"
63%else
64 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
65%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000066fi
67
68if [ "$SMP" != "" ]; then
69 (make "MAKE=make -k -j $SMP"; exit 0)
70 make
71else
72 make
73fi
74
75%install
76rm -rf $RPM_BUILD_ROOT
77
78make prefix=$RPM_BUILD_ROOT%{prefix} install
79
80
81%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000082rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000083
84%post -p /sbin/ldconfig
85
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(-, root, root)
90
91%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
92%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +000093%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +000094
95%files devel
96%defattr(-, root, root)
97
98%{prefix}/lib/lib*.so
99%{prefix}/lib/*a
100%{prefix}/lib/*.sh
101%{prefix}/include/*