File libxml2-python.spec of Package libxml2
#
# spec file for package libxml2-python (Version 2.7.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libxml2-python
BuildRequires: libxml2-devel python-devel
License: X11/MIT
Group: Development/Libraries/Python
AutoReqProv: on
Summary: Python Bindings for libxml2
Version: 2.7.1
Release: 9
Source: libxml2-%{version}.tar.bz2
Source1: libxml2-python-rpmlintrc
%py_requires
Requires: libxml2 = %{version}
# Uncomment to save space:
#NoSource: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://xmlsoft.org
%description
The libxml2-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libxml2 library to manipulate XML files.
This library allows manipulation of XML files. It includes support for
reading, modifying, and writing XML and HTML files. There is DTD
support that includes parsing and validation even with complex DTDs,
either at parse time or later once the document has been modified.
Authors:
--------
Daniel Veillard <daniel@veillard.com>
Bjorn Reese <breese@users.sourceforge.net>
William Brack <wbrack@mmm.com.hk>
Igor Zlatkovic <igor@stud.fh-frankfurt.de>
%prep
%setup -q -n libxml2-%{version}
%build
# workaround for 310196
%ifarch s390 s390x
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-O2/-O1}
%endif
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
--with-fexceptions \
--with-history \
--enable-ipv6
# use libxml2 as built by libxml2 source package
mkdir .libs
cp -v %{_libdir}/libxml2.la .
make -C python
%install
make -C python install \
DESTDIR=$RPM_BUILD_ROOT \
pythondir=%{py_sitedir} \
PYTHON_SITE_PACKAGES=%{py_sitedir}
# Unwanted doc stuff
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc
rm -f python/tests/Makefile*
# #223696
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc python/TODO
%doc python/libxml2class.txt
%doc python/tests
%{py_sitedir}/*
%changelog
* Tue Dec 09 2008 ro@suse.de
- remove ix86 from ifarch statement obsoleting 32bit package
* Wed Sep 03 2008 prusnak@suse.cz
- updated to 2.7.1
* Portability fix: Borland C fix (Moritz Both)
* Bug fixes: python serialization wrappers, XPath QName corner
case handking and leaks (Martin)
* Improvement: extend the xmlSave to handle HTML documents and trees
* Cleanup: python serialization wrappers
* Wed Sep 03 2008 prusnak@suse.cz
- updated to 2.7.0
* Documentation: switch ChangeLog to UTF-8, improve mutithreads and
xmlParserCleanup docs
* Portability fixes: Older Win32 platforms (Rob Richards), MSVC
porting fix (Rob Richards), Mac OS X regression tests (Sven Herzberg),
non GNUCC builds (Rob Richards), compilation on Haiku (Andreas Färber)
* Bug fixes: various realloc problems (Ashwin), potential double-free
(Ashwin), regexp crash, icrash with invalid whitespace facets (Rob
Richards), pattern fix when streaming (William Brack), various XML
parsing and validation fixes based on the W3C regression tests, reader
tree skipping function fix (Ashwin), Schemas regexps escaping fix
(Volker Grabsch), handling of entity push errors (Ashwin), fix a slowdown
when encoder cant serialize characters on output
* Code cleanup: compilation fix without the reader, without the output
(Robert Schwebel), python whitespace (Martin), many space/tabs cleanups,
serious cleanup of the entity handling code
* Improvement: switch parser to XML-1.0 5th edition, add parsing flags
for old versions, switch URI parsing to RFC 3986,
add xmlSchemaValidCtxtGetParserCtxt (Holger Kaelberer),
new hashing functions for dictionnaries (based on Stefan Behnel work),
improve handling of misplaced html/head/body in HTML parser, better
regression test tools and code coverage display, better algorithms
to detect various versions of the billion laughts attacks, make
arbitrary parser limits avoidable as a parser option
- dropped obsoleted patches:
* billion-laughs.patch (included in update)
* Wed Aug 13 2008 prusnak@suse.cz
- fixed billion laughs vulnerability (billion-laughs.patch) [bnc#415371]
* Fri Apr 11 2008 prusnak@suse.cz
- updated to 2.6.32
* Documentation:
- returning heap memory to kernel (Wolfram Sang)
- trying to clarify xmlCleanupParser() use
- xmlXPathContext improvement (Jack Jansen)
- improve the *Recover* functions documentation
- XmlNodeType doc link fix (Martijn Arts)
* Bug fixes:
- internal subset memory leak (Ashwin)
- avoid problem with paths starting with // (Petr Sumbera)
- streaming XSD validation callback patches (Ashwin)
- fix redirection on port other than 80 (William Brack)
- SAX2 leak (Ashwin)
- XInclude fragment of own document (Chris Ryan)
- regexp bug with '.' (Andrew Tosh)
- flush the writer at the end of the document (Alfred Mickautsch)
- output I/O bug fix (William Brack)
- writer CDATA output after a text node (Alex Khesin)
- UTF-16 encoding detection (William Brack)
- fix handling of empty CDATA nodes for Safari team
- python binding problem with namespace nodes
- improve HTML parsing (Arnold Hendriks)
- regexp automata build bug
- memory leak fix (Vasily Chekalkin)
- XSD test crash
- weird system parameter entity parsing problem
- allow save to file:///X/ windows paths
- various attribute normalisation problems
- externalSubsetSplit fix (Ashwin)
- attribute redefinition in the DTD (Ashwin)
- fix in char ref parsing check (Alex Khesin)
- many out of memory handling fixes (Ashwin)
- XPath out of memory handling fixes (Alvaro Herrera)
- various realloc problems (Ashwin)
- UCS4 encoding conversion buffer size (Christian Fruth)
- problems with EatName functions on memory errors
- BOM handling in external parsed entities (Mark Rowe)
* Code cleanup:
- fix build under VS 2008 (David Wimsey)
- remove useless mutex in xmlDict (Florent Guilian)
- Mingw32 compilation fix (Carlo Bramini)
- Win and MacOS EOL cleanups (Florent Guiliani)
- iconv need a const detection (Roumen Petrov)
- simplify xmlSetProp (Julien Charbon)
- cross compilation fixes for Mingw (Roumen Petrov)
- SCO Openserver build fix (Florent Guiliani)
- iconv uses const on Win32 (Rob Richards)
- duplicate code removal (Ashwin)
- missing malloc test and error reports (Ashwin)
- VMS makefile fix (Tycho Hilhorst)
* improvements:
- better plug of schematron in the normal error handling (Tobias Minich)
* Thu Jan 24 2008 prusnak@suse.cz
- rename rpmlintrc-libxml2-python to libxml2-python-rpmlintrc :)
* Tue Jan 22 2008 prusnak@suse.cz
- rename rpmlintrc to rpmlintrc-libxml2-python
* Tue Jan 15 2008 prusnak@suse.cz
- updated to 2.6.31
o security fix:
* missing of checks in UTF-8 parsing
o bug fixes:
* regexp bug
* dump attribute from XHTML document
* fix xmlFree(NULL) to not crash in debug mode
* Schematron parsing crash
* XSD crash due to double free
* indentation fix in xmlTextWriterFullEndElement
* error in attribute type parsing if attribute redeclared
* avoid crash in hash list scanner if deleting elements, column counter bug fix
* HTML embed element saving fix
* avoid -L/usr/lib output from xml2-config
* avoid an xmllint crash
* don't stop HTML parsing on out of range chars
o code cleanup:
* fix open() call third argument,
* regexp cut'n paste copy error,
* unused variable in __xmlGlobalInitMutexLock
* some make distcheck realted fixes
o improvements:
* HTTP Header: includes port number
* testURI --debug option
* Tue Sep 18 2007 sbrabec@suse.cz
- Updated to version 2.6.30:
* Portability: Solaris crash on error handling, windows path
fixes, mingw build
* Bugfixes: xmlXPathNodeSetSort problem, leak when reusing a
writer for a new document, Schemas xsi:nil handling patch,
relative URI build problem, crash in xmlDocFormatDump, invalid
char in comment detection bug, fix disparity with
xmlSAXUserParseMemory, automata generation for complex regexp
counts problems, Schemas IDC import problems, xpath predicate
evailation error handling
* Thu Sep 13 2007 dmueller@suse.de
- build on s390x
* Mon Aug 20 2007 sbrabec@suse.cz
- Commented out NoSource to provide comfortable rebuild.
* Tue Jun 05 2007 prusnak@suse.cz
- suppress spurious-executable-perm for test scripts using rpmlintrc
* Thu May 31 2007 prusnak@suse.cz
- moved tests to tests subdirectory in docdir
- cleaned spec file
* Tue Apr 24 2007 prusnak@suse.cz
- updated to 2.6.28:
* fix the big string memory leak
* fix whitespace usage
- dropped obsoleted patches:
* tabs-spaces.patch (included in update)
* Thu Feb 22 2007 prusnak@suse.cz
- fixed inconsistent use of tabs and spaces in indentation
(tabs-spaces.patch) by Andreas Hanke [#246203]
* Mon Dec 11 2006 ke@suse.de
- 2.6.27.
* Tue Nov 28 2006 ke@suse.de
- Do not install static Python module; reported by Andreas Hanke
[#223696].
* Fri Jun 16 2006 ke@suse.de
- 2.6.26.
* Tue May 16 2006 ke@suse.de
- Version 2.6.24.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 09 2006 ke@suse.de
- Update to version 2.6.23.
* Fri Sep 16 2005 ke@suse.de
- Update to version 2.6.22.
- Remove misleading link flag statement; thanks for advise to Dirk
Mueller.
* Tue Aug 09 2005 ke@suse.de
- Add missing require statement; reported by Ludwig Nussel [# 95216].
* Mon Jul 11 2005 ke@suse.de
- Update to version 2.6.20.
* Mon Apr 04 2005 ke@suse.de
- Update to version 2.6.18.
* Mon Jan 17 2005 ke@suse.de
- Update to version 2.6.17.
* Wed Nov 24 2004 mcihar@suse.cz
- use rpm macros to build correcly with current python
* Thu Nov 11 2004 ke@suse.de
- Update to version 2.6.16.
* Thu Oct 28 2004 ke@suse.de
- Update to version 2.6.15.
* Thu Oct 07 2004 ke@suse.de
- Update to version 2.6.14.
* Mon Aug 23 2004 ke@suse.de
- Update to version 2.6.12; for more info cf. the libxml2 changelog.
* Wed Jul 14 2004 ke@suse.de
- Update to version 2.6.11; for more info cf. the libxml2 changelog.
* Mon Apr 19 2004 ke@suse.de
- Update to version 2.6.9; for more info cf. the libxml2 changelog.
* Tue Feb 24 2004 ke@suse.de
- Update to version 2.6.7; for more info cf. the libxml2 changelog.
* Fri Feb 13 2004 ke@suse.de
- Update to version 2.6.6; for more info cf. the libxml2 changelog.
* Mon Jan 26 2004 ke@suse.de
- Update to version 2.6.5; for more info cf. the libxml2 changelog.
* Wed Jan 07 2004 ke@suse.de
- Update to version 2.6.4; for more info cf. the libxml2 changelog.
* Thu Dec 11 2003 ke@suse.de
- Update to version 2.6.3; for more info cf. the libxml2 changelog.
* Wed Nov 05 2003 ke@suse.de
- Update to version 2.6.2; for more info cf. the libxml2 changelog.
* Fri Aug 29 2003 mcihar@suse.cz
- require same python version as it was built with
* Fri Aug 15 2003 ke@suse.de
- Update to version 2.5.10; for more info cf. the libxml2 changelog.
* Thu Aug 14 2003 ke@suse.de
- Update to version 2.5.9; for more info cf. the libxml2 changelog.
* Tue Jul 08 2003 ke@suse.de
- Update to version 2.5.8; for more info cf. the libxml2 changelog.
* Mon May 26 2003 ke@suse.de
- Remove unwanted files from $RPM_BUILD_ROOT.
* Mon Apr 28 2003 ke@suse.de
- Update to version 2.5.7; for more info cf. the libxml2 changelog.
* Wed Apr 02 2003 ke@suse.de
- Update to version 2.5.6; for more info cf. the libxml2 changelog.
* Wed Mar 26 2003 ke@suse.de
- Update to version 2.5.5; for more info cf. the libxml2 changelog.
* Tue Feb 11 2003 ke@suse.de
- Update to version 2.5.3; for more info cf. the libxml2 changelog.
* Thu Feb 06 2003 ke@suse.de
- Update to version 2.5.2; for more info cf. the libxml2 changelog.
* Thu Jan 09 2003 ke@suse.de
- Update to version 2.5.1.
* Thu Dec 12 2002 ke@suse.de
- Update to version 2.4.30.
* Tue Nov 26 2002 ro@suse.de
- split specfile to get rid of python dependencies in the main tree