blob: c895cf3f6d691240f4a2508010f112fb861912f5 [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
Daniel Veillard6db58192000-10-30 09:27:53 +00005Summary: Library providing XML and HTML support
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
Daniel Veillard6db58192000-10-30 09:27:53 +000018This library allows to manipulate XML files. It includes support
19to read, modify and write XML and HTML files. There is DTDs support
20this includes parsing and validation even with complex DtDs, either
21at parse time or later once the document has been modified. The output
22can be a simple SAX stream or and in-memory DOM like representations.
23In this case one can use the built-in XPath and XPointer implementation
24to select subnodes or ranges. A flexible Input/Output mechanism is
25available, with existing HTTP and FTP modules and combined to an
26URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000027
28%package devel
Daniel Veillard6db58192000-10-30 09:27:53 +000029Summary: Libraries, includes, etc. to develop XML and HTML applications
Daniel Veillard49703262000-07-10 10:27:46 +000030Group: Development/Libraries
31Requires: libxml2 = %{version}
Michael Fulbright62e8e801998-09-25 16:58:38 +000032
33%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000034Libraries, include files, etc you can use to develop XML applications.
35This library allows to manipulate XML files. It includes support
36to read, modify and write XML and HTML files. There is DTDs support
37this includes parsing and validation even with complex DtDs, either
38at parse time or later once the document has been modified. The output
39can be a simple SAX stream or and in-memory DOM like representations.
40In this case one can use the built-in XPath and XPointer implementation
41to select subnodes or ranges. A flexible Input/Output mechanism is
42available, with existing HTTP and FTP modules and combined to an
43URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000044
45
46%changelog
47
Daniel Veillarddd6b3671999-09-23 22:19:22 +000048* Thu Sep 23 1999 Daniel Veillard <Daniel.Veillard@w3.org>
49
50- corrected the spec file alpha stuff
51- switched to version 1.7.1
52- Added validation, XPath, nanohttp, removed memory leaks
53- Renamed CHAR to xmlChar
54
Daniel Veillard011b63c1999-06-02 17:44:04 +000055* Wed Jun 2 1999 Daniel Veillard <Daniel.Veillard@w3.org>
56
57- Switched to version 1.1: SAX extensions, better entities support, lots of
58 bug fixes.
59
Martin Baulige8cc5b31999-01-16 19:15:56 +000060* Sun Oct 4 1998 Daniel Veillard <Daniel.Veillard@w3.org>
Daniel Veillard8631b781998-10-04 14:50:58 +000061
62- Added xml-config to the package
63
Michael Fulbright62e8e801998-09-25 16:58:38 +000064* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
65
66- Built release 0.30
67
68%prep
69%setup
70
71%build
72# Needed for snapshot releases.
73if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000074%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000075 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000076%else
77 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc"
78%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000079else
Gregory McLean04743431999-02-28 02:38:48 +000080%ifarch alpha
Daniel Veillarddd6b3671999-09-23 22:19:22 +000081 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc"
Gregory McLean04743431999-02-28 02:38:48 +000082%else
83 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc"
84%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000085fi
86
87if [ "$SMP" != "" ]; then
88 (make "MAKE=make -k -j $SMP"; exit 0)
89 make
90else
91 make
92fi
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
Daniel Veillard979e55e2000-08-19 16:48:54 +000097install -d $RPM_BUILD_ROOT/usr/man/man1
98install -d $RPM_BUILD_ROOT/usr/man/man4
Michael Fulbright62e8e801998-09-25 16:58:38 +000099make prefix=$RPM_BUILD_ROOT%{prefix} install
Michael Fulbright62e8e801998-09-25 16:58:38 +0000100
101%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +0000102rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +0000103
104%post -p /sbin/ldconfig
105
106%postun -p /sbin/ldconfig
107
108%files
109%defattr(-, root, root)
110
111%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
Daniel Veillard04698d92000-09-17 16:00:22 +0000112%doc /usr/man/man1/xmllint.1*
Daniel Veillard47c02452000-10-11 13:04:36 +0000113%doc /usr/man/man1/xml-config.1*
Daniel Veillard04698d92000-09-17 16:00:22 +0000114%doc /usr/man/man4/libxml.4*
Daniel Veillard979e55e2000-08-19 16:48:54 +0000115
Michael Fulbright62e8e801998-09-25 16:58:38 +0000116%{prefix}/lib/lib*.so.*
Daniel Veillard361d8452000-04-03 19:48:13 +0000117%{prefix}/bin/xmllint
Michael Fulbright62e8e801998-09-25 16:58:38 +0000118
119%files devel
120%defattr(-, root, root)
121
122%{prefix}/lib/lib*.so
123%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000124%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000125%{prefix}/include/*
Daniel Veillard361d8452000-04-03 19:48:13 +0000126%{prefix}/bin/xml-config