blob: 12c888ad4951dcd2f55de9bf703ba586546f0c22 [file] [log] [blame]
Daniel Veillard1a123612001-09-19 08:06:23 +00001# Note that this is NOT a relocatable package
2%define ver @VERSION@
3%define prefix /usr
4%define datadir %{prefix}/share
5
6Summary: Library providing XML and HTML support
7Name: libxml2
8Version: %ver
9Release: 1
10Copyright: LGPL
11Group: Development/Libraries
12Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz
13BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root
14
15URL: http://xmlsoft.org/
16Docdir: %{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 Veillard1a123612001-09-19 08:06:23 +000030Summary: Libraries, includes, etc. to develop XML and HTML applications
31Group: 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>
Daniel Veillard1a123612001-09-19 08:06:23 +000050
51[2.3.7]
Daniel Veillard2913e4c2001-04-26 19:29:02 +000052- 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
Daniel Veillard1a123612001-09-19 08:06:23 +000075
76%prep
77%setup
78
79%build
80# Needed for snapshot releases.
81if [ ! -f configure ]; then
82%ifarch alpha
83 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
84%else
85 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
86%endif
87else
88%ifarch alpha
89 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
90%else
91 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
92%endif
93fi
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
105install -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
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
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
120%doc %{prefix}/share/man/man1/xmllint.1*
121%doc %{prefix}/share/man/man1/xmlcatalog.1*
122%doc %{prefix}/share/man/man4/libxml.4*
123
124%{prefix}/lib/lib*.so.*
125%{prefix}/bin/xmllint
126%{prefix}/bin/xmlcatalog
127
128%files devel
129%defattr(-, root, root)
130
131%doc /usr/share/man/man1/xml2-config.1*
132%doc doc/*.html doc/html
133
134%{prefix}/lib/lib*.so
135%{prefix}/lib/*a
136%{prefix}/lib/*.sh
137%{prefix}/include/*
138%{prefix}/bin/xml2-config
139%{prefix}/share/aclocal/libxml.m4
140%{prefix}/lib/pkgconfig/libxml-2.0.pc