blob: 08dbef8a585fe2aaf95aa50ddc6937991487907f [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 Veillardcd21dc72001-11-04 20:03:38 +000049* Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com>
50
51- 2.4.7 broke SGML catalogs badly. this fixes it.
52
Daniel Veillard2913e4c2001-04-26 19:29:02 +000053* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Daniel Veillard1a123612001-09-19 08:06:23 +000054
55[2.3.7]
Daniel Veillard2913e4c2001-04-26 19:29:02 +000056- Added libxml.m4 to the distribution file list
57- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
58- Moved programmer documentation into the devel package
59
Daniel Veillardc5d64342001-06-24 12:13:24 +000060* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillarddd6b3671999-09-23 22:19:22 +000061
62- corrected the spec file alpha stuff
63- switched to version 1.7.1
64- Added validation, XPath, nanohttp, removed memory leaks
65- Renamed CHAR to xmlChar
66
Daniel Veillardc5d64342001-06-24 12:13:24 +000067* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillard011b63c1999-06-02 17:44:04 +000068
69- Switched to version 1.1: SAX extensions, better entities support, lots of
70 bug fixes.
71
Daniel Veillardc5d64342001-06-24 12:13:24 +000072* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
Daniel Veillard8631b781998-10-04 14:50:58 +000073
74- Added xml-config to the package
75
Michael Fulbright62e8e801998-09-25 16:58:38 +000076* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
77
78- Built release 0.30
Daniel Veillard1a123612001-09-19 08:06:23 +000079
80%prep
81%setup
82
83%build
84# Needed for snapshot releases.
85if [ ! -f configure ]; then
86%ifarch alpha
87 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
88%else
89 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
90%endif
91else
92%ifarch alpha
93 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
94%else
95 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
96%endif
97fi
98
99if [ "$SMP" != "" ]; then
100 (make "MAKE=make -k -j $SMP"; exit 0)
101 make
102else
103 make
104fi
105
106%install
107rm -rf $RPM_BUILD_ROOT
108
109install -d $RPM_BUILD_ROOT%{datadir}/man/man1
110install -d $RPM_BUILD_ROOT%{datadir}/man/man4
111make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{datadir}/man install
112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116%post -p /sbin/ldconfig
117
118%postun -p /sbin/ldconfig
119
120%files
121%defattr(-, root, root)
122
123%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
124%doc %{prefix}/share/man/man1/xmllint.1*
125%doc %{prefix}/share/man/man1/xmlcatalog.1*
126%doc %{prefix}/share/man/man4/libxml.4*
127
128%{prefix}/lib/lib*.so.*
129%{prefix}/bin/xmllint
130%{prefix}/bin/xmlcatalog
131
132%files devel
133%defattr(-, root, root)
134
135%doc /usr/share/man/man1/xml2-config.1*
136%doc doc/*.html doc/html
137
138%{prefix}/lib/lib*.so
139%{prefix}/lib/*a
140%{prefix}/lib/*.sh
141%{prefix}/include/*
142%{prefix}/bin/xml2-config
143%{prefix}/share/aclocal/libxml.m4
144%{prefix}/lib/pkgconfig/libxml-2.0.pc