blob: 129eb7287f1a5b486cf284206446d5dd9ac0376d [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
Daniel Veillardedfb29b2000-03-14 19:59:05 +000011Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml2-%{ver}.tar.gz
12BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root
Michael Fulbright63dc42c1999-02-21 21:20:12 +000013
Daniel Veillardedfb29b2000-03-14 19:59:05 +000014URL: http://xmlsoft.org/
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
Daniel Veillardedfb29b2000-03-14 19:59:05 +000024Requires: libxml2
Michael Fulbright62e8e801998-09-25 16:58:38 +000025
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
Michael Fulbright62e8e801998-09-25 16:58:38 +000082
83%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000084rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000085
86%post -p /sbin/ldconfig
87
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(-, root, root)
92
93%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
94%{prefix}/lib/lib*.so.*
Daniel Veillard361d8452000-04-03 19:48:13 +000095%{prefix}/bin/xmllint
Michael Fulbright62e8e801998-09-25 16:58:38 +000096
97%files devel
98%defattr(-, root, root)
99
100%{prefix}/lib/lib*.so
101%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000102%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000103%{prefix}/include/*
Daniel Veillard361d8452000-04-03 19:48:13 +0000104%{prefix}/bin/xml-config