2007-01-15 23:32:12 +00:00
|
|
|
#
|
2011-07-01 11:55:33 +00:00
|
|
|
# spec file for package perl-XML-LibXML
|
2007-01-15 23:32:12 +00:00
|
|
|
#
|
2011-07-01 11:55:33 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:32:12 +00:00
|
|
|
#
|
2009-01-22 15:52:24 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:32:12 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-01-22 15:52:24 +00:00
|
|
|
|
2007-01-15 23:32:12 +00:00
|
|
|
Name: perl-XML-LibXML
|
2011-09-22 13:02:16 +00:00
|
|
|
Version: 1.88
|
2011-07-01 11:55:33 +00:00
|
|
|
Release: 1
|
2011-07-01 11:55:18 +00:00
|
|
|
License: GPL-1.0+ or Artistic
|
2011-11-12 08:57:17 +00:00
|
|
|
%define cpan_name XML-LibXML
|
2011-09-22 13:02:16 +00:00
|
|
|
Summary: Perl Binding for libxml2
|
2010-04-03 22:09:30 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML-LibXML/
|
2011-09-22 13:02:16 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-11-12 09:04:53 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
2010-04-03 22:09:30 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(XML::SAX) >= 0.11
|
2011-09-22 13:02:16 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-11-12 09:04:53 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.56
|
|
|
|
BuildRequires: perl(XML::NamespaceSupport) >= 1.07
|
2011-09-22 13:02:16 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.16
|
2011-11-12 09:04:53 +00:00
|
|
|
Requires: perl(XML::NamespaceSupport) >= 1.07
|
2010-04-03 22:09:30 +00:00
|
|
|
Requires: perl(XML::SAX) >= 0.11
|
|
|
|
Provides: perl-XML-LibXML-Common = %{version}
|
|
|
|
Obsoletes: perl-XML-LibXML-Common < %{version}
|
2011-09-22 13:02:16 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{perl_requires}
|
2007-01-15 23:32:12 +00:00
|
|
|
|
|
|
|
%description
|
2010-04-03 22:09:30 +00:00
|
|
|
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.
|
2007-01-15 23:32:12 +00:00
|
|
|
|
|
|
|
%prep
|
2010-04-03 22:09:30 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:32:12 +00:00
|
|
|
|
|
|
|
%build
|
2010-04-03 22:09:30 +00:00
|
|
|
# [2,7,1,0], # broken release, broken utf-16
|
|
|
|
%if 0%{?suse_version} == 1110
|
2011-09-22 13:02:16 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall" FORCE=1
|
2010-04-03 22:09:30 +00:00
|
|
|
%else
|
2011-09-22 13:02:16 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
2010-04-03 22:09:30 +00:00
|
|
|
%endif
|
2011-09-22 13:02:16 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-02-08 19:25:45 +00:00
|
|
|
|
|
|
|
%check
|
2011-09-22 13:02:16 +00:00
|
|
|
make test
|
2007-01-15 23:32:12 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-03 22:09:30 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:32:12 +00:00
|
|
|
%perl_process_packlist
|
2010-04-03 22:09:30 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:32:12 +00:00
|
|
|
|
|
|
|
%clean
|
2011-09-22 13:02:16 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-01-15 23:32:12 +00:00
|
|
|
|
2010-04-03 22:09:30 +00:00
|
|
|
%files -f %{name}.files
|
2007-01-15 23:32:12 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
2007-06-03 20:00:10 +00:00
|
|
|
%changelog
|