blob: e348e13550628514af7ae31d4a363c9b0efb6a1e [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
Daniel Veillard49703262000-07-10 10:27:46 +000010Group: Development/Libraries
11Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz
Daniel Veillardedfb29b2000-03-14 19:59:05 +000012BuildRoot: /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 +000015Docdir: %{prefix}/doc
16
17%description
18This library allows you to manipulate XML files.
19
20%package devel
21Summary: Libraries, includes, etc to develop libxml applications
Daniel Veillard49703262000-07-10 10:27:46 +000022Group: Development/Libraries
23Requires: libxml2 = %{version}
Michael Fulbright62e8e801998-09-25 16:58:38 +000024
25%description devel
26Libraries, include files, etc you can use to develop libxml applications.
27
28
29%changelog
30
Daniel Veillarddd6b3671999-09-23 22:19:22 +000031* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
32
33- corrected the spec file alpha stuff
34- switched to version 1.7.1
35- Added validation, XPath, nanohttp, removed memory leaks
36- Renamed CHAR to xmlChar
37
Daniel Veillard011b63c1999-06-02 17:44:04 +000038* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
39
40- Switched to version 1.1: SAX extensions, better entities support, lots of
41 bug fixes.
42
Martin Baulige8cc5b31999-01-16 19:15:56 +000043* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000044
45- Added xml-config to the package
46
Michael Fulbright62e8e801998-09-25 16:58:38 +000047* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
48
49- Built release 0.30
50
51%prep
52%setup
53
54%build
55# Needed for snapshot releases.
56if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000057%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000058 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000059%else
60 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
61%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000062else
Gregory McLean04743431999-02-28 02:38:48 +000063%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000064 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000065%else
66 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
67%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000068fi
69
70if [ "$SMP" != "" ]; then
71 (make "MAKE=make -k -j $SMP"; exit 0)
72 make
73else
74 make
75fi
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
80make prefix=$RPM_BUILD_ROOT%{prefix} install
Michael Fulbright62e8e801998-09-25 16:58:38 +000081
82%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000083rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000084
85%post -p /sbin/ldconfig
86
87%postun -p /sbin/ldconfig
88
89%files
90%defattr(-, root, root)
91
92%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
93%{prefix}/lib/lib*.so.*
Daniel Veillard361d8452000-04-03 19:48:13 +000094%{prefix}/bin/xmllint
Michael Fulbright62e8e801998-09-25 16:58:38 +000095
96%files devel
97%defattr(-, root, root)
98
99%{prefix}/lib/lib*.so
100%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000101%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000102%{prefix}/include/*
Daniel Veillard361d8452000-04-03 19:48:13 +0000103%{prefix}/bin/xml-config