forked from pool/perl-XML-LibXML-Simple
0.15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-LibXML-Simple?expand=0&rev=1
This commit is contained in:
57
perl-XML-LibXML-Simple.spec
Normal file
57
perl-XML-LibXML-Simple.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
|
||||
Name: perl-XML-LibXML-Simple
|
||||
Version: 0.15
|
||||
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: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{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}
|
||||
|
Reference in New Issue
Block a user