blob: 33706b5f9177e204c77d41ae98be1b685faf63cd [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@
Michael Fulbright62e8e801998-09-25 16:58:38 +00003%define prefix /usr
4
5Summary: libXML library
Daniel Veillardcf461992000-03-14 18:30:20 +00006Name: libxml2
Michael Fulbright62e8e801998-09-25 16:58:38 +00007Version: %ver
Daniel Veillardda07c342000-01-25 18:31:22 +00008Release: 1
Michael Fulbright62e8e801998-09-25 16:58:38 +00009Copyright: LGPL
10Group: X11/Libraries
Michael Fulbright63dc42c1999-02-21 21:20:12 +000011Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver}.tar.gz
12BuildRoot: /var/tmp/libxml-%{PACKAGE_VERSION}-root
13
Daniel Veillard2f4dfc41999-09-24 14:03:48 +000014URL: http://rpmfind.net/veillard/XML/
Michael Fulbright62e8e801998-09-25 16:58:38 +000015Prereq: /sbin/install-info
16Docdir: %{prefix}/doc
17
18%description
19This library allows you to manipulate XML files.
20
21%package devel
22Summary: Libraries, includes, etc to develop libxml applications
23Group: X11/libraries
24Requires: libxml
25
26%description devel
27Libraries, include files, etc you can use to develop libxml applications.
28
29
30%changelog
31
Daniel Veillarddd6b3671999-09-23 22:19:22 +000032* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
33
34- corrected the spec file alpha stuff
35- switched to version 1.7.1
36- Added validation, XPath, nanohttp, removed memory leaks
37- Renamed CHAR to xmlChar
38
Daniel Veillard011b63c1999-06-02 17:44:04 +000039* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
40
41- Switched to version 1.1: SAX extensions, better entities support, lots of
42 bug fixes.
43
Martin Baulige8cc5b31999-01-16 19:15:56 +000044* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000045
46- Added xml-config to the package
47
Michael Fulbright62e8e801998-09-25 16:58:38 +000048* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
49
50- Built release 0.30
51
52%prep
53%setup
54
55%build
56# Needed for snapshot releases.
57if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000058%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000059 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000060%else
61 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
62%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000063else
Gregory McLean04743431999-02-28 02:38:48 +000064%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000065 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000066%else
67 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
68%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000069fi
70
71if [ "$SMP" != "" ]; then
72 (make "MAKE=make -k -j $SMP"; exit 0)
73 make
74else
75 make
76fi
77
78%install
79rm -rf $RPM_BUILD_ROOT
80
81make prefix=$RPM_BUILD_ROOT%{prefix} install
Daniel Veillardb05deb71999-08-10 19:04:08 +000082#
83# hack to get libxml.so.0 too !
84# Get rid of it once deps to libxml.so.0 have disapeared.
85#
86if [ -f $RPM_BUILD_ROOT/%{prefix}/lib/libxml.so.@VERSION@ ]
87then
88 (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)
89fi
Michael Fulbright62e8e801998-09-25 16:58:38 +000090
91
92%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000093rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000094
95%post -p /sbin/ldconfig
96
97%postun -p /sbin/ldconfig
98
99%files
100%defattr(-, root, root)
101
102%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
103%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +0000104%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +0000105
106%files devel
107%defattr(-, root, root)
108
109%{prefix}/lib/lib*.so
110%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000111%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000112%{prefix}/include/*