blob: 16c9888ccf69566cbf843fd352996931c00cf775 [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 Veillard6f7e24b2003-05-14 19:45:50 +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 Veillardda3336f2004-08-26 22:14:34 +00009BuildRequires: python python-devel zlib-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}
Daniel Veillardc6924812002-05-24 11:10:43 +000029Requires: zlib-devel
Michael Fulbright62e8e801998-09-25 16:58:38 +000030
31%description devel
Daniel Veillard6db58192000-10-30 09:27:53 +000032Libraries, include files, etc you can use to develop XML applications.
33This library allows to manipulate XML files. It includes support
34to read, modify and write XML and HTML files. There is DTDs support
35this includes parsing and validation even with complex DtDs, either
36at parse time or later once the document has been modified. The output
37can be a simple SAX stream or and in-memory DOM like representations.
38In this case one can use the built-in XPath and XPointer implementation
39to select subnodes or ranges. A flexible Input/Output mechanism is
40available, with existing HTTP and FTP modules and combined to an
41URI library.
Michael Fulbright62e8e801998-09-25 16:58:38 +000042
Daniel Veillard253aa2c2002-02-02 09:17:16 +000043%package python
44Summary: Python bindings for the libxml2 library
45Group: Development/Libraries
46Requires: libxml2 = %{version}
Daniel Veillardf70f7b22004-04-18 22:09:47 +000047Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
Daniel Veillard253aa2c2002-02-02 09:17:16 +000048
49%description python
50The libxml2-python package contains a module that permits applications
51written in the Python programming language to use the interface
52supplied by the libxml2 library to manipulate XML files.
53
54This library allows to manipulate XML files. It includes support
55to read, modify and write XML and HTML files. There is DTDs support
56this includes parsing and validation even with complex DTDs, either
57at parse time or later once the document has been modified.
Daniel Veillard366a9152002-10-23 20:43:53 +000058
Daniel Veillardea898282001-11-04 22:13:45 +000059%prep
60%setup -q
61
62%build
Daniel Veillard577d1452004-06-27 14:07:43 +000063#
64# try to use compiler profiling, based on Arjan van de Ven <arjanv@redhat.com>
Daniel Veillard0f59a342004-06-27 14:29:36 +000065# initial test spec. This really doesn't work okay for most tests done.
Daniel Veillard577d1452004-06-27 14:07:43 +000066#
Daniel Veillardbaad7882005-08-25 22:52:51 +000067# Well except it's just broken most of the time.
68#GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'`
69#if [ $GCC_VERSION -ge 34 ]
70#then
71# PROF_GEN='-fprofile-generate'
72# PROF_USE='-fprofile-use'
73#fi
74#
75#if [ "$PROF_GEN" != "" ]
76#then
77# # First generate a profiling version
78# CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure
79# make
80# # Run a few sampling
81# make dba100000.xml
82# ./xmllint --noout dba100000.xml
83# ./xmllint --stream dba100000.xml
84# ./xmllint --noout --valid test/valid/REC-xml-19980210.xml
85# ./xmllint --stream --valid test/valid/REC-xml-19980210.xml
86# # Then generate code based on profile
87# CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure
88# make
89#else
90# %configure
91# make
92#fi
93%configure
94make
Daniel Veillardee1d6922004-04-18 14:58:57 +000095gzip -9 ChangeLog
Daniel Veillardea898282001-11-04 22:13:45 +000096
97%install
Daniel Veillard366a9152002-10-23 20:43:53 +000098rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +000099
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000100%makeinstall
Daniel Veillard771971f2005-04-02 10:49:51 +0000101(cd doc/examples ; make clean ; rm -rf .deps)
102gzip -9 doc/libxml2-api.xml
Daniel Veillard9fcb4912005-03-16 12:57:31 +0000103rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
Daniel Veillardea898282001-11-04 22:13:45 +0000104
105%clean
Daniel Veillard366a9152002-10-23 20:43:53 +0000106rm -fr %{buildroot}
Daniel Veillardea898282001-11-04 22:13:45 +0000107
Daniel Veillard366a9152002-10-23 20:43:53 +0000108%post
109/sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +0000110
Daniel Veillard366a9152002-10-23 20:43:53 +0000111%postun
112/sbin/ldconfig
Daniel Veillardea898282001-11-04 22:13:45 +0000113
114%files
115%defattr(-, root, root)
116
Daniel Veillardee1d6922004-04-18 14:58:57 +0000117%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
Daniel Veillardea898282001-11-04 22:13:45 +0000118%doc %{_mandir}/man1/xmllint.1*
119%doc %{_mandir}/man1/xmlcatalog.1*
Daniel Veillarde915b2d2002-03-06 18:42:40 +0000120%doc %{_mandir}/man3/libxml.3*
Daniel Veillardea898282001-11-04 22:13:45 +0000121
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000122%{_libdir}/lib*.so.*
Daniel Veillardea898282001-11-04 22:13:45 +0000123%{prefix}/bin/xmllint
124%{prefix}/bin/xmlcatalog
125
126%files devel
127%defattr(-, root, root)
128
129%doc %{_mandir}/man1/xml2-config.1*
Daniel Veillardee1d6922004-04-18 14:58:57 +0000130%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
Daniel Veillardf5a457a2002-03-07 10:25:29 +0000131%doc doc/*.html doc/html doc/*.gif doc/*.png
Daniel Veillard771971f2005-04-02 10:49:51 +0000132%doc doc/tutorial doc/libxml2-api.xml.gz
Daniel Veillard8d7b5c72003-11-15 18:24:36 +0000133%doc doc/examples
Daniel Veillard1db4a662005-09-12 13:10:09 +0000134%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
135%doc %{_datadir}/gtk-doc/html/libxml2/*.html
136%doc %{_datadir}/gtk-doc/html/libxml2/*.png
137%doc %{_datadir}/gtk-doc/html/libxml2/*.css
Daniel Veillardea898282001-11-04 22:13:45 +0000138
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000139%{_libdir}/lib*.so
140%{_libdir}/*a
141%{_libdir}/*.sh
Daniel Veillardea898282001-11-04 22:13:45 +0000142%{prefix}/include/*
143%{prefix}/bin/xml2-config
144%{prefix}/share/aclocal/libxml.m4
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000145%{_libdir}/pkgconfig/libxml-2.0.pc
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000146%files python
147%defattr(-, root, root)
148
Daniel Veillardee1d6922004-04-18 14:58:57 +0000149%doc AUTHORS ChangeLog.gz NEWS README Copyright
Daniel Veillard8240f512005-09-04 23:04:44 +0000150%{_libdir}/python*/site-packages/libxml2.py*
151%{_libdir}/python*/site-packages/drv_libxml2.py*
Daniel Veillard366a9152002-10-23 20:43:53 +0000152%{_libdir}/python*/site-packages/libxml2mod*
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000153%doc python/TODO
154%doc python/libxml2class.txt
155%doc python/tests/*.py
Daniel Veillardf9c4cad2002-11-22 15:57:07 +0000156%doc doc/*.py
157%doc doc/python.html
Michael Fulbright62e8e801998-09-25 16:58:38 +0000158
159%changelog
Daniel Veillard9715c172002-11-25 16:33:40 +0000160* @RELDATE@ Daniel Veillard <veillard@redhat.com>
161- upstream release @VERSION@ see http://xmlsoft.org/news.html
162
Daniel Veillard4f860202003-01-02 13:00:02 +0000163* Thu Jan 2 2003 Daniel Veillard <veillard@redhat.com>
164- integrated drv_libxml2 xml.sax driver from Stéphane Bidoul
165- provides the new XmlTextReader interfaces based on C# XML APIs
166
Daniel Veillard366a9152002-10-23 20:43:53 +0000167* Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com>
168- revamped the spec file, cleaned up some rpm building problems
169
170* Fri Oct 4 2002 Jeremy Katz <katzj@redhat.com>
171- build with 'make LIBTOOL=/usr/bin/libtool' to use system libtool
172
Daniel Veillard5643b5a2002-09-04 12:27:06 +0000173* Wed Sep 4 2002 Daniel Veillard <veillard@redhat.com>
174
175- library paths fixed for x86-64
176
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000177* Fri Feb 1 2002 Daniel Veillard <veillard@redhat.com>
178
179- Added the python package
Michael Fulbright62e8e801998-09-25 16:58:38 +0000180
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000181* Sun Nov 4 2001 Daniel Veillard <veillard@redhat.com>
182
Daniel Veillardea898282001-11-04 22:13:45 +0000183- cleaned up the specfile
Daniel Veillardcd21dc72001-11-04 20:03:38 +0000184- 2.4.7 broke SGML catalogs badly. this fixes it.
185
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000186* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
Daniel Veillard1a123612001-09-19 08:06:23 +0000187
188[2.3.7]
Daniel Veillard2913e4c2001-04-26 19:29:02 +0000189- Added libxml.m4 to the distribution file list
190- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
191- Moved programmer documentation into the devel package
192
Daniel Veillardc5d64342001-06-24 12:13:24 +0000193* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000194
195- corrected the spec file alpha stuff
196- switched to version 1.7.1
197- Added validation, XPath, nanohttp, removed memory leaks
198- Renamed CHAR to xmlChar
199
Daniel Veillardc5d64342001-06-24 12:13:24 +0000200* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
Daniel Veillard011b63c1999-06-02 17:44:04 +0000201
202- Switched to version 1.1: SAX extensions, better entities support, lots of
203 bug fixes.
204
Daniel Veillardc5d64342001-06-24 12:13:24 +0000205* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
Daniel Veillard8631b781998-10-04 14:50:58 +0000206
207- Added xml-config to the package
208
Michael Fulbright62e8e801998-09-25 16:58:38 +0000209* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
210
211- Built release 0.30
Daniel Veillard1a123612001-09-19 08:06:23 +0000212