!3 perl-XML-LibXML-Simple软件包引入

From: @WangTsing-Yan
Reviewed-by: @zhu-yuncheng,@shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2021-07-24 02:34:43 +00:00 committed by Gitee
commit f358fca6f2
2 changed files with 86 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,86 @@
%global _empty_manifest_terminate_build 0
Name: perl-XML-LibXML-Simple
Version: 1.01
Release: 1
Summary: XML::LibXML clone of XML::Simple::XMLin()
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/XML-LibXML-Simple/
Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/XML-LibXML-Simple-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 0.54
BuildRequires: perl(XML::LibXML) >= 1.64
Requires: perl(Scalar::Util)
Requires: perl(XML::LibXML) >= 1.64
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%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.
%package help
Summary : XML::LibXML clone of XML::Simple::XMLin()
Provides: perl-XML-LibXML-Simple-doc
%description help
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}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc ChangeLog META.json README README.md
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Jul 21 2021 wangqing <wangqing@uniontech.com> 1.01-1
- Package init