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@
1998-09-25 20:58:38 +04:00
%define prefix /usr
Summary : libXML library
2000-03-14 21:30:20 +03:00
Name : libxml2
1998-09-25 20:58:38 +04:00
Version : %ver
2000-01-25 21:31:22 +03:00
Release : 1
1998-09-25 20:58:38 +04:00
Copyright: LGPL
2000-07-10 14:27:46 +04:00
Group : Development/Libraries
Source : ftp://xmlsoft.org/libxml2-%{ver} .tar.gz
2000-03-14 22:59:05 +03:00
BuildRoot : /var/tmp/libxml2-%{PACKAGE_VERSION} -root
1999-02-22 00:20:12 +03:00
2000-03-14 22:59:05 +03:00
URL : http://xmlsoft.org/
1998-09-25 20:58:38 +04:00
Docdir: %{prefix} /doc
%description
This library allows you to manipulate XML files.
%package devel
Summary : Libraries, includes, etc to develop libxml applications
2000-07-10 14:27:46 +04:00
Group : Development/Libraries
Requires : libxml2 = %{version}
1998-09-25 20:58:38 +04:00
%description devel
Libraries, include files, etc you can use to develop libxml applications.
%changelog
1999-09-24 02:19:22 +04:00
* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
- corrected the spec file alpha stuff
- switched to version 1.7.1
- Added validation, XPath, nanohttp, removed memory leaks
- Renamed CHAR to xmlChar
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
1999-09-24 02:19:22 +04:00
CFLAGS=" $RPM_OPT_FLAGS " ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir=" / e t c "
1999-02-28 05:38:48 +03:00
%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
1999-09-24 02:19:22 +04:00
CFLAGS=" $RPM_OPT_FLAGS " ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir=" / e t c "
1999-02-28 05:38:48 +03:00
%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
2000-08-19 20:48:54 +04:00
install -d $RPM_BUILD_ROOT /usr/man/man1
install -d $RPM_BUILD_ROOT /usr/man/man4
1998-09-25 20:58:38 +04:00
make prefix=$RPM_BUILD_ROOT %{prefix} install
%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
2000-09-17 20:00:22 +04:00
%doc /usr/man/man1/xmllint.1*
2000-10-11 17:04:36 +04:00
%doc /usr/man/man1/xml-config.1*
2000-09-17 20:00:22 +04:00
%doc /usr/man/man4/libxml.4*
2000-08-19 20:48:54 +04:00
1998-09-25 20:58:38 +04:00
%{prefix} /lib/lib*.so.*
2000-04-03 23:48:13 +04:00
%{prefix} /bin/xmllint
1998-09-25 20:58:38 +04:00
%files devel
%defattr (-, root, root)
%{prefix} /lib/lib*.so
%{prefix} /lib/*a
1999-08-15 21:19:50 +04:00
%{prefix} /lib/*.sh
1998-09-25 20:58:38 +04:00
%{prefix} /include/*
2000-04-03 23:48:13 +04:00
%{prefix} /bin/xml-config