blob: b2fac0e182161ce22be5d71415d56675ee3f34d7 [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 Veillard011b63c1999-06-02 17:44:04 +000035* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
36
37- Switched to version 1.1: SAX extensions, better entities support, lots of
38 bug fixes.
39
Martin Baulige8cc5b31999-01-16 19:15:56 +000040* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000041
42- Added xml-config to the package
43
Michael Fulbright62e8e801998-09-25 16:58:38 +000044* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
45
46- Built release 0.30
47
48%prep
49%setup
50
51%build
52# Needed for snapshot releases.
53if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000054%ifarch alpha
55 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefi
56x --sysconfdir="/etc"
57%else
58 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
59%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000060else
Gregory McLean04743431999-02-28 02:38:48 +000061%ifarch alpha
62 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix
63 --sysconfdir="/etc"
64%else
65 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
66%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000067fi
68
69if [ "$SMP" != "" ]; then
70 (make "MAKE=make -k -j $SMP"; exit 0)
71 make
72else
73 make
74fi
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
79make prefix=$RPM_BUILD_ROOT%{prefix} install
Daniel Veillardb05deb71999-08-10 19:04:08 +000080#
81# hack to get libxml.so.0 too !
82# Get rid of it once deps to libxml.so.0 have disapeared.
83#
84if [ -f $RPM_BUILD_ROOT/%{prefix}/lib/libxml.so.@VERSION@ ]
85then
86 (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)
87fi
Michael Fulbright62e8e801998-09-25 16:58:38 +000088
89
90%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000091rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000092
93%post -p /sbin/ldconfig
94
95%postun -p /sbin/ldconfig
96
97%files
98%defattr(-, root, root)
99
100%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
101%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +0000102%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +0000103
104%files devel
105%defattr(-, root, root)
106
107%{prefix}/lib/lib*.so
108%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000109%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000110%{prefix}/include/*