forked from pool/perl-XML-LibXML
- STRLEN has 64 bits here and int has 32, so the (int*) cast in XML::LibXML::Document::toStringHTML() makes htmlDocDumpMemory() store the 32-bit length of the result into a 64-bit variable. Depending on the endianness, it either works OK (LE) or corrupts the variable (BE) Just use an 'int' instead, and cast it to an STRLEN later in the newSVpvn() call. OBS-URL: https://build.opensuse.org/request/show/122259 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-LibXML?expand=0&rev=36
78 lines
2.4 KiB
RPMSpec
78 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-XML-LibXML
|
|
#
|
|
# 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: perl-XML-LibXML
|
|
Version: 1.95
|
|
Release: 0
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
%define cpan_name XML-LibXML
|
|
Summary: Perl Binding for libxml2
|
|
Url: http://search.cpan.org/dist/XML-LibXML/
|
|
Group: Development/Libraries/Perl
|
|
Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
|
BuildRequires: perl
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.56
|
|
BuildRequires: perl(XML::NamespaceSupport) >= 1.07
|
|
BuildRequires: perl(XML::SAX) >= 0.11
|
|
BuildRequires: perl-macros
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.16
|
|
Requires: perl(XML::NamespaceSupport) >= 1.07
|
|
Requires: perl(XML::SAX) >= 0.11
|
|
Provides: perl-XML-LibXML-Common = %{version}
|
|
Obsoletes: perl-XML-LibXML-Common < %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch: perl-XML-LibXML-bigendian.patch
|
|
%{perl_requires}
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
%patch -p1
|
|
|
|
%build
|
|
# [2,7,1,0], # broken release, broken utf-16
|
|
%if 0%{?suse_version} == 1110
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall" FORCE=1
|
|
%else
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
|
%endif
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root)
|
|
%doc Changes LICENSE README
|
|
|
|
%changelog
|