blob: 56aadadf3e2857ca63030d1067bc665947bc5806 [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
Daniel Veillard2913e4c2001-04-26 19:29:02 +00004%define datadir %{prefix}/share
Michael Fulbright62e8e801998-09-25 16:58:38 +00005
Daniel Veillard6db58192000-10-30 09:27:53 +00006Summary: Library providing XML and HTML support
Daniel Veillardcf461992000-03-14 18:30:20 +00007Name: libxml2
Michael Fulbright62e8e801998-09-25 16:58:38 +00008Version: %ver
Daniel Veillardda07c342000-01-25 18:31:22 +00009Release: 1
Michael Fulbright62e8e801998-09-25 16:58:38 +000010Copyright: LGPL
Daniel Veillard49703262000-07-10 10:27:46 +000011Group: Development/Libraries
12Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz
Daniel Veillardedfb29b2000-03-14 19:59:05 +000013BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root
Michael Fulbright63dc42c1999-02-21 21:20:12 +000014
Daniel Veillardedfb29b2000-03-14 19:59:05 +000015URL: http://xmlsoft.org/
Daniel Veillard2913e4c2001-04-26 19:29:02 +000016Docdir: %{datadir}/doc
Michael Fulbright62e8e801998-09-25 16:58:38 +000017
18%description
Daniel Veillard6db58192000-10-30 09:27:53 +000019This library allows to manipulate XML files. It includes support
20to read, modify and write XML and HTML files. There is DTDs support
21this includes parsing and validation even with complex DtDs, either
22at parse time or later once the document has been modified. The output
23can be a simple SAX stream or and in-memory DOM like representations.
24In this case one can use the built-in XPath and XPointer implementation
25to select subnodes or ranges. A flexible Input/Output mechanism is
26available, with existing HTTP and FTP modules and combined to an
27URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000028
29%package devel
Daniel Veillard6db58192000-10-30 09:27:53 +000030Summary: Libraries, includes, etc. to develop XML and HTML applications
Daniel Veillard49703262000-07-10 10:27:46 +000031Group: Development/Libraries
32Requires: libxml2 = %{version}
Michael Fulbright62e8e801998-09-25 16:58:38 +000033
34%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000035Libraries, include files, etc you can use to develop XML applications.
36This library allows to manipulate XML files. It includes support
37to read, modify and write XML and HTML files. There is DTDs support
38this includes parsing and validation even with complex DtDs, either
39at parse time or later once the document has been modified. The output
40can be a simple SAX stream or and in-memory DOM like representations.
41In this case one can use the built-in XPath and XPointer implementation
42to select subnodes or ranges. A flexible Input/Output mechanism is
43available, with existing HTTP and FTP modules and combined to an
44URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000045
46
47%changelog
48
Daniel Veillard2913e4c2001-04-26 19:29:02 +000049* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
50
51[2.3.7]
52- Added libxml.m4 to the distribution file list
53- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
54- Moved programmer documentation into the devel package
55
Daniel Veillardc5d64342001-06-24 12:13:24 +000056* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillarddd6b3671999-09-23 22:19:22 +000057
58- corrected the spec file alpha stuff
59- switched to version 1.7.1
60- Added validation, XPath, nanohttp, removed memory leaks
61- Renamed CHAR to xmlChar
62
Daniel Veillardc5d64342001-06-24 12:13:24 +000063* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillard011b63c1999-06-02 17:44:04 +000064
65- Switched to version 1.1: SAX extensions, better entities support, lots of
66 bug fixes.
67
Daniel Veillardc5d64342001-06-24 12:13:24 +000068* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
Daniel Veillard8631b781998-10-04 14:50:58 +000069
70- Added xml-config to the package
71
Michael Fulbright62e8e801998-09-25 16:58:38 +000072* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
73
74- Built release 0.30
75
76%prep
77%setup
78
79%build
80# Needed for snapshot releases.
81if [ ! -f configure ]; then
Gregory McLean04743431999-02-28 02:38:48 +000082%ifarch alpha
Daniel Veillard2913e4c2001-04-26 19:29:02 +000083 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
Gregory McLean04743431999-02-28 02:38:48 +000084%else
Daniel Veillard2913e4c2001-04-26 19:29:02 +000085 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
Gregory McLean04743431999-02-28 02:38:48 +000086%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000087else
Gregory McLean04743431999-02-28 02:38:48 +000088%ifarch alpha
Daniel Veillard2913e4c2001-04-26 19:29:02 +000089 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
Gregory McLean04743431999-02-28 02:38:48 +000090%else
Daniel Veillard2913e4c2001-04-26 19:29:02 +000091 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
Gregory McLean04743431999-02-28 02:38:48 +000092%endif
Michael Fulbright62e8e801998-09-25 16:58:38 +000093fi
94
95if [ "$SMP" != "" ]; then
96 (make "MAKE=make -k -j $SMP"; exit 0)
97 make
98else
99 make
100fi
101
102%install
103rm -rf $RPM_BUILD_ROOT
104
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000105install -d $RPM_BUILD_ROOT%{datadir}/man/man1
106install -d $RPM_BUILD_ROOT%{datadir}/man/man4
107make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{datadir}/man install
Michael Fulbright62e8e801998-09-25 16:58:38 +0000108
109%clean
Michael Fulbright63dc42c1999-02-21 21:20:12 +0000110rm -rf $RPM_BUILD_ROOT
Michael Fulbright62e8e801998-09-25 16:58:38 +0000111
112%post -p /sbin/ldconfig
113
114%postun -p /sbin/ldconfig
115
116%files
117%defattr(-, root, root)
118
119%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000120%doc /usr/share/man/man1/xmllint.1*
121%doc /usr/share/man/man4/libxml.4*
Daniel Veillard979e55e2000-08-19 16:48:54 +0000122
Michael Fulbright62e8e801998-09-25 16:58:38 +0000123%{prefix}/lib/lib*.so.*
Daniel Veillard361d8452000-04-03 19:48:13 +0000124%{prefix}/bin/xmllint
Michael Fulbright62e8e801998-09-25 16:58:38 +0000125
126%files devel
127%defattr(-, root, root)
128
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000129%doc /usr/share/man/man1/xml2-config.1*
130%doc doc/*.html doc/html
131
Michael Fulbright62e8e801998-09-25 16:58:38 +0000132%{prefix}/lib/lib*.so
133%{prefix}/lib/*a
Daniel Veillardb556eb51999-08-15 17:19:50 +0000134%{prefix}/lib/*.sh
Michael Fulbright62e8e801998-09-25 16:58:38 +0000135%{prefix}/include/*
Daniel Veillardb42042b2001-01-28 07:40:36 +0000136%{prefix}/bin/xml2-config
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000137%{prefix}/share/aclocal/libxml.m4
138# I'm not certain if this should be included in the distribution or not.
139#%{prefix}/lib/pkgconfig/libxml-2.0.pc