8
0
Files
perl-XML-LibXML/perl-XML-LibXML.spec
Vítězslav Čížek 9b3b8a64b2 - update to 1.71
- turn XML_LIBXML_PARSE_DEFAULTS constant to $XML::LibXML::XML_LIBXML_PARSE_DEFAULTS
   - Apply 0001-XML-LibXML-Error-no-need-to-AUTOLOAD-domain.patch from
     https://rt.cpan.org/Public/Bug/Display.html?id=68575 - no need to
     AUTOLOAD 'domain' because a method like that exists.
    - Apply 0002-XML-LibXML-Error-avoid-AUTOLOAD.patch from
      https://rt.cpan.org/Public/Bug/Display.html?id=68575 - get rid of
      AUTOLOAD completely.
    - Apply 0003-XML-LibXML-Error-make-domain-work-for-unknown-domain.patch
      from https://rt.cpan.org/Public/Bug/Display.html?id=68575 - handle
      unknown domains.
    - Apply 0004-XML-LibXML-Error-add-domains-from-newer-libxml2.patch
      from https://rt.cpan.org/Public/Bug/Display.html?id=68575 - add more
      errors.
    - Apply 0005-XML-LibXML-Error-avoid-malformed-UTF-8-warnings.patch
      from https://rt.cpan.org/Public/Bug/Display.html?id=68575
    - In replaceDataString - use 
    http://perldoc.perl.org/functions/quotemeta.html instead of a long (and
    incomplete) list of characters to escape.
        -- With test.
        -- also fix deleteDataString by making it use replaceDataString
        for help.
        -- Fixing https://rt.cpan.org/Ticket/Display.html?id=68564

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-LibXML?expand=0&rev=13
2011-06-16 07:51:16 +00:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-XML-LibXML (Version 1.71)
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-XML-LibXML
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Perl Binding for libxml2
Version: 1.71
Release: 8
AutoReqProv: on
Group: Development/Libraries/Perl
License: GPL-1.0+ or Artistic
Url: http://search.cpan.org/dist/XML-LibXML/
Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{name}-utf16.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
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}
%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
%build
# [2,7,1,0], # broken release, broken utf-16
%if 0%{?suse_version} == 1110
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" FORCE=1
%else
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%endif
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes LICENSE README
%changelog