1998-09-25 20:58:38 +04:00
# Note that this is NOT a relocatable package
1999-02-22 00:20:12 +03:00
%define ver @VERSION@
1999-07-30 00:09:19 +04:00
%define RELEASE SNAP
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
1998-09-25 20:58:38 +04:00
%define prefix /usr
Summary : libXML library
Name : libxml
Version : %ver
Release : %rel
Copyright: LGPL
Group : X11/Libraries
1999-02-22 00:20:12 +03:00
Source : ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver} .tar.gz
BuildRoot : /var/tmp/libxml-%{PACKAGE_VERSION} -root
1999-08-10 23:04:08 +04:00
Provides : libxml.so.0
1999-02-22 00:20:12 +03:00
1998-09-25 20:58:38 +04:00
URL : http://www.gnome.org
Prereq : /sbin/install-info
Docdir: %{prefix} /doc
%description
This library allows you to manipulate XML files.
%package devel
Summary : Libraries, includes, etc to develop libxml applications
Group : X11/libraries
Requires : libxml
%description devel
Libraries, include files, etc you can use to develop libxml applications.
%changelog
1999-06-02 21:44:04 +04:00
* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
- Switched to version 1.1: SAX extensions, better entities support, lots of
bug fixes.
1999-01-16 22:15:56 +03:00
* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
1998-10-04 18:50:58 +04:00
- Added xml-config to the package
1998-09-25 20:58:38 +04:00
* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
- Built release 0.30
%prep
%setup
%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
1999-02-28 05:38:48 +03:00
%ifarch alpha
CFLAGS=" $RPM_OPT_FLAGS " ./autogen.sh --host=alpha-redhat-linux --prefix=%prefi
x --sysconfdir=" / e t c "
%else
CFLAGS=" $RPM_OPT_FLAGS " ./autogen.sh --prefix=%prefix --sysconfdir=" / e t c "
%endif
1998-09-25 20:58:38 +04:00
else
1999-02-28 05:38:48 +03:00
%ifarch alpha
CFLAGS=" $RPM_OPT_FLAGS " ./configure --host=alpha-redhat-linux --prefix=%prefix
--sysconfdir=" / e t c "
%else
CFLAGS=" $RPM_OPT_FLAGS " ./configure --prefix=%prefix --sysconfdir=" / e t c "
%endif
1998-09-25 20:58:38 +04:00
fi
if [ " $ S M P " != " " ]; then
(make " M A K E = m a k e - k - j $ S M P " ; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT %{prefix} install
1999-08-10 23:04:08 +04:00
#
# hack to get libxml.so.0 too !
# Get rid of it once deps to libxml.so.0 have disapeared.
#
if [ -f $RPM_BUILD_ROOT /%{prefix} /lib/libxml.so.@VERSION@ ]
then
(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)
fi
1998-09-25 20:58:38 +04:00
%clean
1999-02-22 00:20:12 +03:00
rm -rf $RPM_BUILD_ROOT
1998-09-25 20:58:38 +04:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
%{prefix} /lib/lib*.so.*
1998-10-04 18:48:06 +04:00
%{prefix} /bin/xml-config
1998-09-25 20:58:38 +04:00
%files devel
%defattr (-, root, root)
%{prefix} /lib/lib*.so
%{prefix} /lib/*a
%{prefix} /include/*