File perl-XML-LibXML.spec of Package perl-XML-LibXML

# spec file for package perl-XML-LibXML (Version 1.70)
# Copyright (c) 2010 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

# norootforbuild

Name:           perl-XML-LibXML
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary:        Perl Binding for libxml2
Version:        1.70
Release:        8
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License ..
Source:         %{cpan_name}-%{version}.tar.bz2
Patch:          %{name}-utf16.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  libxml2-devel >= 2.6.16
BuildRequires:  perl(XML::SAX) >= 0.11
Requires:       perl(XML::SAX) >= 0.11
Provides:       perl-XML-LibXML-Common = %{version}
Obsoletes:      perl-XML-LibXML-Common < %{version}

This module implements a Perl interface to the Gnome libxml2 library which
provides interfaces for parsing and manipulating XML files. This module allows
Perl programmers to make use of the highly capable validating XML parser and
the high performance DOM implementation.


	Matt Sergeant, Christian Glahn, Petr Pajas

%setup -q -n %{cpan_name}-%{version}

# [2,7,1,0], # broken release, broken utf-16
%if 0%{?suse_version} == 1110
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" FORCE=1
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}

%{__make} test


%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files

openSUSE Build Service is sponsored by