blob: ce4de6ef882cd44885fcc46e00ef19b30c2a04a4 [file] [log] [blame]
Daniel Veillard1a123612001-09-19 08:06:23 +00001Summary: Library providing XML and HTML support
2Name: libxml2
Daniel Veillardea898282001-11-04 22:13:45 +00003Version: @VERSION@
Daniel Veillard1a123612001-09-19 08:06:23 +00004Release: 1
Daniel Veillardea898282001-11-04 22:13:45 +00005License: LGPL
Daniel Veillard1a123612001-09-19 08:06:23 +00006Group: Development/Libraries
Daniel Veillardea898282001-11-04 22:13:45 +00007Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
8BuildRoot: %{_tmppath}/%{name}-%{version}-root
Daniel Veillard1a123612001-09-19 08:06:23 +00009URL: http://xmlsoft.org/
Daniel Veillardea898282001-11-04 22:13:45 +000010Prefix: %{_prefix}
11Docdir: %{_docdir}
Michael Fulbright62e8e801998-09-25 16:58:38 +000012
13%description
Daniel Veillard6db58192000-10-30 09:27:53 +000014This library allows to manipulate XML files. It includes support
15to read, modify and write XML and HTML files. There is DTDs support
16this includes parsing and validation even with complex DtDs, either
17at parse time or later once the document has been modified. The output
18can be a simple SAX stream or and in-memory DOM like representations.
19In this case one can use the built-in XPath and XPointer implementation
20to select subnodes or ranges. A flexible Input/Output mechanism is
21available, with existing HTTP and FTP modules and combined to an
22URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000023
24%package devel
Daniel Veillard1a123612001-09-19 08:06:23 +000025Summary: Libraries, includes, etc. to develop XML and HTML applications
26Group: Development/Libraries
27Requires: libxml2 = %{version}
Michael Fulbright62e8e801998-09-25 16:58:38 +000028
29%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000030Libraries, include files, etc you can use to develop XML applications.
31This library allows to manipulate XML files. It includes support
32to read, modify and write XML and HTML files. There is DTDs support
33this includes parsing and validation even with complex DtDs, either
34at parse time or later once the document has been modified. The output
35can be a simple SAX stream or and in-memory DOM like representations.
36In this case one can use the built-in XPath and XPointer implementation
37to select subnodes or ranges. A flexible Input/Output mechanism is
38available, with existing HTTP and FTP modules and combined to an
39URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000040
Daniel Veillardea898282001-11-04 22:13:45 +000041%prep
42%setup -q
43
44%build
45# Needed for snapshot releases.
46if [ ! -f configure ]; then
47%ifarch alpha
48 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
49%else
50 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
51%endif
52else
53%ifarch alpha
54 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
55%else
56 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
57%endif
58fi
59
60if [ "$SMP" != "" ]; then
61 (make "MAKE=make -k -j $SMP"; exit 0)
62 make
63else
64 make
65fi
66
67%install
68rm -rf $RPM_BUILD_ROOT
69
70install -d $RPM_BUILD_ROOT%{_mandir}/man1
71install -d $RPM_BUILD_ROOT%{_mandir}/man4
72make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%post -p /sbin/ldconfig
78
79%postun -p /sbin/ldconfig
80
81%files
82%defattr(-, root, root)
83
84%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
85%doc %{_mandir}/man1/xmllint.1*
86%doc %{_mandir}/man1/xmlcatalog.1*
87%doc %{_mandir}/man4/libxml.4*
88
89%{prefix}/lib/lib*.so.*
90%{prefix}/bin/xmllint
91%{prefix}/bin/xmlcatalog
92
93%files devel
94%defattr(-, root, root)
95
96%doc %{_mandir}/man1/xml2-config.1*
97%doc doc/*.html doc/html
98
99%{prefix}/lib/lib*.so
100%{prefix}/lib/*a
101%{prefix}/lib/*.sh
102%{prefix}/include/*
103%{prefix}/bin/xml2-config
104%{prefix}/share/aclocal/libxml.m4
105%{prefix}/lib/pkgconfig/libxml-2.0.pc
Michael Fulbright62e8e801998-09-25 16:58:38 +0000106
107%changelog
108
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000109* Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com>
110
Daniel Veillardea898282001-11-04 22:13:45 +0000111- cleaned up the specfile
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000112- 2.4.7 broke SGML catalogs badly. this fixes it.
113
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000114* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Daniel Veillard1a123612001-09-19 08:06:23 +0000115
116[2.3.7]
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000117- Added libxml.m4 to the distribution file list
118- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
119- Moved programmer documentation into the devel package
120
Daniel Veillardc5d64342001-06-24 12:13:24 +0000121* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000122
123- corrected the spec file alpha stuff
124- switched to version 1.7.1
125- Added validation, XPath, nanohttp, removed memory leaks
126- Renamed CHAR to xmlChar
127
Daniel Veillardc5d64342001-06-24 12:13:24 +0000128* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillard011b63c1999-06-02 17:44:04 +0000129
130- Switched to version 1.1: SAX extensions, better entities support, lots of
131 bug fixes.
132
Daniel Veillardc5d64342001-06-24 12:13:24 +0000133* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
Daniel Veillard8631b781998-10-04 14:50:58 +0000134
135- Added xml-config to the package
136
Michael Fulbright62e8e801998-09-25 16:58:38 +0000137* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
138
139- Built release 0.30
Daniel Veillard1a123612001-09-19 08:06:23 +0000140