blob: 919969fe08d7405774af6e9495cf6a982f3cef43 [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@
Martin Baulige8cc5b31999-01-16 19:15:56 +00003%define rel SNAP
Michael Fulbright62e8e801998-09-25 16:58:38 +00004%define prefix /usr
5
6Summary: libXML library
7Name: libxml
8Version: %ver
9Release: %rel
10Copyright: LGPL
11Group: X11/Libraries
Michael Fulbright63dc42c1999-02-21 21:20:12 +000012Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver}.tar.gz
13BuildRoot: /var/tmp/libxml-%{PACKAGE_VERSION}-root
14
Michael Fulbright62e8e801998-09-25 16:58:38 +000015URL: http://www.gnome.org
16Prereq: /sbin/install-info
17Docdir: %{prefix}/doc
18
19%description
20This library allows you to manipulate XML files.
21
22%package devel
23Summary: Libraries, includes, etc to develop libxml applications
24Group: X11/libraries
25Requires: libxml
26
27%description devel
28Libraries, include files, etc you can use to develop libxml applications.
29
30
31%changelog
32
Daniel Veillard011b63c1999-06-02 17:44:04 +000033* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
34
35- Switched to version 1.1: SAX extensions, better entities support, lots of
36 bug fixes.
37
Martin Baulige8cc5b31999-01-16 19:15:56 +000038* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000039
40- Added xml-config to the package
41
Michael Fulbright62e8e801998-09-25 16:58:38 +000042* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
43
44- Built release 0.30
45
46%prep
47%setup
48
49%build
50# Needed for snapshot releases.
51if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000052%ifarch alpha
53 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefi
54x --sysconfdir="/etc"
55%else
56 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
57%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000058else
Gregory McLean04743431999-02-28 02:38:48 +000059%ifarch alpha
60 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix
61 --sysconfdir="/etc"
62%else
63 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
64%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000065fi
66
67if [ "$SMP" != "" ]; then
68 (make "MAKE=make -k -j $SMP"; exit 0)
69 make
70else
71 make
72fi
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77make prefix=$RPM_BUILD_ROOT%{prefix} install
78
79
80%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000081rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000082
83%post -p /sbin/ldconfig
84
85%postun -p /sbin/ldconfig
86
87%files
88%defattr(-, root, root)
89
90%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
91%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +000092%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +000093
94%files devel
95%defattr(-, root, root)
96
97%{prefix}/lib/lib*.so
98%{prefix}/lib/*a
99%{prefix}/lib/*.sh
100%{prefix}/include/*