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

#
# spec file for package perl-XML-LibXML-Simple
#
# 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-Simple
Version:        0.91
Release:        0
Summary:        XML::LibXML based XML::Simple clone
Source:         http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/XML-LibXML-Simple-%{version}.tar.gz
Url:            http://search.cpan.org/dist/XML-LibXML-Simple
Group:          Development/Libraries/Perl
License:        Artistic-1.0 or GPL-1.0+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl-macros
BuildRequires:  make
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More) >= 0.54
BuildRequires:  perl(XML::LibXML) >= 1.64
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(File::Slurp)
Requires:       perl(XML::LibXML) >= 1.64
Requires:       perl(File::Slurp)
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description
This module is a blunt rewrite of XML::Simple (by Grant McLean) to use the
XML::LibXML parser for XML structures, where the original uses plain Perl
or SAX parsers.

%prep
%setup -q -n "XML-LibXML-Simple-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}

%install
%perl_make_install
%perl_process_packlist

%check
%__make test

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc README
%dir %{perl_vendorlib}/XML
%dir %{perl_vendorlib}/XML/LibXML
%{perl_vendorlib}/XML/LibXML/Simple.pm
%doc %{perl_vendorlib}/XML/LibXML/Simple.pod
%doc %{perl_man3dir}/XML::LibXML::Simple.%{perl_man3ext}%{ext_man}

%changelog
openSUSE Build Service is sponsored by