blob: 7b888a4cc1a7fc4f53d522f308821dca8419574f [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
Martin Baulige8cc5b31999-01-16 19:15:56 +000033* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000034
35- Added xml-config to the package
36
Michael Fulbright62e8e801998-09-25 16:58:38 +000037* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
38
39- Built release 0.30
40
41%prep
42%setup
43
44%build
45# Needed for snapshot releases.
46if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000047%ifarch alpha
48 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefi
49x --sysconfdir="/etc"
50%else
51 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
52%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000053else
Gregory McLean04743431999-02-28 02:38:48 +000054%ifarch alpha
55 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix
56 --sysconfdir="/etc"
57%else
58 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
59%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000060fi
61
62if [ "$SMP" != "" ]; then
63 (make "MAKE=make -k -j $SMP"; exit 0)
64 make
65else
66 make
67fi
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72make prefix=$RPM_BUILD_ROOT%{prefix} install
73
74
75%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000076rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000077
78%post -p /sbin/ldconfig
79
80%postun -p /sbin/ldconfig
81
82%files
83%defattr(-, root, root)
84
85%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
86%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +000087%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +000088
89%files devel
90%defattr(-, root, root)
91
92%{prefix}/lib/lib*.so
93%{prefix}/lib/*a
94%{prefix}/lib/*.sh
95%{prefix}/include/*