blob: dd4392b9de4bce0bdd79bdc7dc769d528485cb78 [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 Veillardc575b992002-02-08 13:28:40 +00005License: MIT
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 Veillard253aa2c2002-02-02 09:17:16 +00009BuildRequires: python python-devel
Daniel Veillard1a123612001-09-19 08:06:23 +000010URL: http://xmlsoft.org/
Daniel Veillardea898282001-11-04 22:13:45 +000011Prefix: %{_prefix}
12Docdir: %{_docdir}
Michael Fulbright62e8e801998-09-25 16:58:38 +000013
14%description
Daniel Veillard6db58192000-10-30 09:27:53 +000015This library allows to manipulate XML files. It includes support
16to read, modify and write XML and HTML files. There is DTDs support
17this includes parsing and validation even with complex DtDs, either
18at parse time or later once the document has been modified. The output
19can be a simple SAX stream or and in-memory DOM like representations.
20In this case one can use the built-in XPath and XPointer implementation
21to select subnodes or ranges. A flexible Input/Output mechanism is
22available, with existing HTTP and FTP modules and combined to an
23URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000024
25%package devel
Daniel Veillard1a123612001-09-19 08:06:23 +000026Summary: Libraries, includes, etc. to develop XML and HTML applications
27Group: Development/Libraries
28Requires: libxml2 = %{version}
Michael Fulbright62e8e801998-09-25 16:58:38 +000029
30%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000031Libraries, include files, etc you can use to develop XML applications.
32This library allows to manipulate XML files. It includes support
33to read, modify and write XML and HTML files. There is DTDs support
34this includes parsing and validation even with complex DtDs, either
35at parse time or later once the document has been modified. The output
36can be a simple SAX stream or and in-memory DOM like representations.
37In this case one can use the built-in XPath and XPointer implementation
38to select subnodes or ranges. A flexible Input/Output mechanism is
39available, with existing HTTP and FTP modules and combined to an
40URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000041
Daniel Veillard253aa2c2002-02-02 09:17:16 +000042%package python
43Summary: Python bindings for the libxml2 library
44Group: Development/Libraries
45Requires: libxml2 = %{version}
46Requires: python
47
48%description python
49The libxml2-python package contains a module that permits applications
50written in the Python programming language to use the interface
51supplied by the libxml2 library to manipulate XML files.
52
53This library allows to manipulate XML files. It includes support
54to read, modify and write XML and HTML files. There is DTDs support
55this includes parsing and validation even with complex DTDs, either
56at parse time or later once the document has been modified.
Daniel Veillardea898282001-11-04 22:13:45 +000057%prep
58%setup -q
59
60%build
61# Needed for snapshot releases.
62if [ ! -f configure ]; then
63%ifarch alpha
64 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
65%else
66 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
67%endif
68else
69%ifarch alpha
70 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
71%else
72 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
73%endif
74fi
75
76if [ "$SMP" != "" ]; then
77 (make "MAKE=make -k -j $SMP"; exit 0)
78 make
79else
80 make
81fi
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
86install -d $RPM_BUILD_ROOT%{_mandir}/man1
87install -d $RPM_BUILD_ROOT%{_mandir}/man4
88make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
89
Daniel Veillard9589d452002-02-02 10:28:17 +000090#
91# this is a bit ugly but tries to generate the bindings for all versions
92# of python installed
93for i in %{prefix}/include/python*
94do
95 py_version=`echo $i | sed "s+%{prefix}/include/python++"`
96 if test -x %{prefix}/bin/python$py_version
97 then
98 echo generating bindings for Python $py_version
99 (cd python ; make clean ; \
100 make PYTHON="%{prefix}/bin/python$py_version" \
101 PYTHON_VERSION="$py_version"; \
102 make PYTHON="%{prefix}/bin/python$py_version" \
103 PYTHON_VERSION="$py_version" \
104 prefix=$RPM_BUILD_ROOT%{prefix} \
105 mandir=$RPM_BUILD_ROOT%{_mandir} install)
106 fi
107done
Daniel Veillardea898282001-11-04 22:13:45 +0000108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%post -p /sbin/ldconfig
112
113%postun -p /sbin/ldconfig
114
115%files
116%defattr(-, root, root)
117
Daniel Veillardc575b992002-02-08 13:28:40 +0000118%doc AUTHORS ChangeLog NEWS README Copyright TODO
Daniel Veillardea898282001-11-04 22:13:45 +0000119%doc %{_mandir}/man1/xmllint.1*
120%doc %{_mandir}/man1/xmlcatalog.1*
Daniel Veillarde915b2d2002-03-06 18:42:40 +0000121%doc %{_mandir}/man3/libxml.3*
Daniel Veillardea898282001-11-04 22:13:45 +0000122
123%{prefix}/lib/lib*.so.*
124%{prefix}/bin/xmllint
125%{prefix}/bin/xmlcatalog
126
127%files devel
128%defattr(-, root, root)
129
130%doc %{_mandir}/man1/xml2-config.1*
Daniel Veillardc575b992002-02-08 13:28:40 +0000131%doc AUTHORS ChangeLog NEWS README Copyright TODO
Daniel Veillardf5a457a2002-03-07 10:25:29 +0000132%doc doc/*.html doc/html doc/*.gif doc/*.png
Daniel Veillardea898282001-11-04 22:13:45 +0000133
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
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000141%files python
142%defattr(-, root, root)
143
Daniel Veillardc575b992002-02-08 13:28:40 +0000144%doc AUTHORS ChangeLog NEWS README Copyright
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000145%{prefix}/lib/python*/site-packages/libxml2.py
Daniel Veillard5e5c2d02002-02-09 18:03:01 +0000146%{prefix}/lib/python*/site-packages/libxml2mod.so
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000147%doc python/TODO
148%doc python/libxml2class.txt
149%doc python/tests/*.py
Michael Fulbright62e8e801998-09-25 16:58:38 +0000150
151%changelog
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000152* Fri Feb 1 2002 Daniel Veillard <veillard@redhat.com>
153
154- Added the python package
Michael Fulbright62e8e801998-09-25 16:58:38 +0000155
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000156* Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com>
157
Daniel Veillardea898282001-11-04 22:13:45 +0000158- cleaned up the specfile
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000159- 2.4.7 broke SGML catalogs badly. this fixes it.
160
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000161* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Daniel Veillard1a123612001-09-19 08:06:23 +0000162
163[2.3.7]
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000164- Added libxml.m4 to the distribution file list
165- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
166- Moved programmer documentation into the devel package
167
Daniel Veillardc5d64342001-06-24 12:13:24 +0000168* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000169
170- corrected the spec file alpha stuff
171- switched to version 1.7.1
172- Added validation, XPath, nanohttp, removed memory leaks
173- Renamed CHAR to xmlChar
174
Daniel Veillardc5d64342001-06-24 12:13:24 +0000175* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillard011b63c1999-06-02 17:44:04 +0000176
177- Switched to version 1.1: SAX extensions, better entities support, lots of
178 bug fixes.
179
Daniel Veillardc5d64342001-06-24 12:13:24 +0000180* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
Daniel Veillard8631b781998-10-04 14:50:58 +0000181
182- Added xml-config to the package
183
Michael Fulbright62e8e801998-09-25 16:58:38 +0000184* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
185
186- Built release 0.30
Daniel Veillard1a123612001-09-19 08:06:23 +0000187