forked from pool/libxml2
Accepting request 106624 from home:coolo:branches:openSUSE:Factory
- update to today's GIT snapshot:
include XZ support
- split libxml2-2 according to shared library policy
- renamed to python-libxml2 to follow python naming expectations
- do not require python but let rpm figure it out
- Remove redundant tags/sections
- update to libxml-2.7.8+git20110708
- several important bugfixes
- buildrequire python-xml to fix build
- update to libxml-2.7.8
- number of bufixes, documentation and portability fixes
- update language ID parser to RFC 5646
- sort python generated stubs
- add an HTML parser option to avoid a default doctype
- see http://xmlsoft.org/news.html for exact details
- clean up specfile
- fix build
- update to 2.7.7
- add extra options to ./configure for scribus features and avoid a crash
- updates from 2.7.3 > 2.7.7 include a number of portability, correctness
memory leaks and build fixes including some CVE
- see http://xmlsoft.org/news.html for exact details
OBS-URL: https://build.opensuse.org/request/show/106624
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxml2?expand=0&rev=46
This commit is contained in:
committed by
Git OBS Bridge
parent
73b56ba389
commit
3a7abef0cf
90
python-libxml2.spec
Normal file
90
python-libxml2.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package python-libxml2
|
||||
#
|
||||
# Copyright (c) 2012 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/
|
||||
#
|
||||
|
||||
|
||||
Name: python-libxml2
|
||||
Version: 2.7.8+git20110223
|
||||
Release: 0
|
||||
Summary: Python Bindings for libxml2
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://xmlsoft.org
|
||||
Source: ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-xml
|
||||
Requires: libxml2-2 = %{version}
|
||||
# Uncomment to save space:
|
||||
#NoSource: 0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: libxml2-python = %{version}
|
||||
Obsoletes: libxml2-python < 2.7.8+git20110223
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n libxml2-2.7.8
|
||||
|
||||
%build
|
||||
# workaround for bnc#310196
|
||||
%ifarch s390 s390x
|
||||
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-O2/-O1}
|
||||
%endif
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%configure \
|
||||
--with-fexceptions \
|
||||
--with-history \
|
||||
--enable-ipv6 \
|
||||
--with-sax1 \
|
||||
--with-regexps \
|
||||
--with-threads \
|
||||
--with-reader \
|
||||
--with-http
|
||||
|
||||
# use libxml2 as built by libxml2 source package
|
||||
mkdir .libs
|
||||
cp -v %{_libdir}/libxml2.la .
|
||||
make -C python %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make -C python install \
|
||||
DESTDIR=%{buildroot} \
|
||||
pythondir=%{py_sitedir} \
|
||||
PYTHON_SITE_PACKAGES=%{py_sitedir}
|
||||
chmod a-x python/tests/*.py
|
||||
# Unwanted doc stuff
|
||||
rm -fr %{buildroot}%{_datadir}/doc
|
||||
rm -f python/tests/Makefile*
|
||||
# #223696
|
||||
rm -f %{buildroot}%{py_sitedir}/*.{la,a}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc python/TODO
|
||||
%doc python/libxml2class.txt
|
||||
%doc python/tests
|
||||
%{py_sitedir}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user