87 lines
2.3 KiB
RPMSpec
87 lines
2.3 KiB
RPMSpec
%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
|