blob: ec6745678a9e6c4e246ddf4839900fe065734362 [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
6Name: libxml
7Version: %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
Daniel Veillardb05deb71999-08-10 19:04:08 +000013Provides: libxml.so.0
Michael Fulbright63dc42c1999-02-21 21:20:12 +000014
Daniel Veillard2f4dfc41999-09-24 14:03:48 +000015URL: http://rpmfind.net/veillard/XML/
Michael Fulbright62e8e801998-09-25 16:58:38 +000016Prereq: /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 Veillarddd6b3671999-09-23 22:19:22 +000033* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
34
35- corrected the spec file alpha stuff
36- switched to version 1.7.1
37- Added validation, XPath, nanohttp, removed memory leaks
38- Renamed CHAR to xmlChar
39
Daniel Veillard011b63c1999-06-02 17:44:04 +000040* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
41
42- Switched to version 1.1: SAX extensions, better entities support, lots of
43 bug fixes.
44
Martin Baulige8cc5b31999-01-16 19:15:56 +000045* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000046
47- Added xml-config to the package
48
Michael Fulbright62e8e801998-09-25 16:58:38 +000049* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
50
51- Built release 0.30
52
53%prep
54%setup
55
56%build
57# Needed for snapshot releases.
58if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000059%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000060 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000061%else
62 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
63%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000064else
Gregory McLean04743431999-02-28 02:38:48 +000065%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000066 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000067%else
68 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
69%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000070fi
71
72if [ "$SMP" != "" ]; then
73 (make "MAKE=make -k -j $SMP"; exit 0)
74 make
75else
76 make
77fi
78
79%install
80rm -rf $RPM_BUILD_ROOT
81
82make prefix=$RPM_BUILD_ROOT%{prefix} install
Daniel Veillardb05deb71999-08-10 19:04:08 +000083#
84# hack to get libxml.so.0 too !
85# Get rid of it once deps to libxml.so.0 have disapeared.
86#
87if [ -f $RPM_BUILD_ROOT/%{prefix}/lib/libxml.so.@VERSION@ ]
88then
89 (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)
90fi
Michael Fulbright62e8e801998-09-25 16:58:38 +000091
92
93%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +000094rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +000095
96%post -p /sbin/ldconfig
97
98%postun -p /sbin/ldconfig
99
100%files
101%defattr(-, root, root)
102
103%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
104%{prefix}/lib/lib*.so.*
Daniel Veillard213c1781998-10-04 14:48:06 +0000105%{prefix}/bin/xml-config
Michael Fulbright62e8e801998-09-25 16:58:38 +0000106
107%files devel
108%defattr(-, root, root)
109
110%{prefix}/lib/lib*.so
111%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000112%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000113%{prefix}/include/*