diff --git a/XML-LibXML-Simple-1.01.tar.gz b/XML-LibXML-Simple-1.01.tar.gz new file mode 100644 index 0000000..0894cb6 Binary files /dev/null and b/XML-LibXML-Simple-1.01.tar.gz differ diff --git a/perl-XML-LibXML-Simple.spec b/perl-XML-LibXML-Simple.spec new file mode 100644 index 0000000..21fa91f --- /dev/null +++ b/perl-XML-LibXML-Simple.spec @@ -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 1.01-1 +- Package init