From 3a444432cea9142a9ae23d5e273f64be0b258e98 Mon Sep 17 00:00:00 2001 From: Grooooot Date: Sat, 11 Jan 2020 18:52:58 +0800 Subject: [PATCH] perl-XML-XPath: spec update Signed-off-by: Grooooot --- perl-XML-XPath.spec | 54 +++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/perl-XML-XPath.spec b/perl-XML-XPath.spec index 2f932dd..9cb3ba7 100644 --- a/perl-XML-XPath.spec +++ b/perl-XML-XPath.spec @@ -1,53 +1,62 @@ +#Global marco %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$ +#Basic Information Name: perl-XML-XPath Version: 1.42 Release: 5 -Summary: Parse and evaluate XPath statements +Summary: XPath parser and evaluator for Perl License: Artistic 2.0 and (GPL+ or Artistic) URL: https://metacpan.org/release/XML-XPath Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-%{version}.tar.gz - BuildArch: noarch -BuildRequires: coreutils make perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 -BuildRequires: perl(warnings) perl(Carp) perl(Data::Dumper) perl(Exporter) perl(IO::File) perl(overload) -BuildRequires: perl(Scalar::Util) perl(vars) perl(XML::Parser) >= 2.23 perl(lib) perl(open) -BuildRequires: perl(Path::Tiny) >= 0.076 perl(Test) perl(Test::More) perl(utf8) perl(CPAN::Meta) -BuildRequires: perl(Test::CPAN::Meta) perl(Test::CPAN::Meta::JSON) perl(POSIX) perl(strict) + +#Dependency +BuildRequires: coreutils make +BuildRequires: perl-generators perl-interpreter +BuildRequires: perl(lib) perl(open) perl(overload) +BuildRequires: perl(strict) perl(utf8) perl(vars) perl(warnings) +BuildRequires: perl(Carp) perl(CPAN::Meta) perl(Data::Dumper) +BuildRequires: perl(Exporter) perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(IO::File) perl(Path::Tiny) >= 0.076 +BuildRequires: perl(POSIX) perl(Scalar::Util) perl(Test) +BuildRequires: perl(Test::CPAN::Meta) perl(Test::CPAN::Meta::JSON) +BuildRequires: perl(Test::More) perl(XML::Parser) >= 2.23 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(POSIX) perl(warnings) perl(XML::Parser) >= 2.23 %description -This module is designed to fully comply with the XPath specification in the following areas: -http://www.w3.org/TR/xpath, but allows extensions to be added to Functional form.Modules such as -XSLT and XPointer may need to be executed,this is because they support features other than XPath. +This module aims to comply exactly to the XPath specification at +http://www.w3.org/TR/xpath and yet allow extensions to be added in the +form of functions. Modules such as XSLT and XPointer may need to do +this as they support functionality beyond XPath. +%package_help -%package help -Summary: Help document for the perl-XML-XPath package - -%description help -Help document for the perl-XML-XPath package. - +#Build sections %prep -%autosetup -n XML-XPath-%{version} -p1 +%setup -q -n XML-XPath-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -%make_build +make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT %{_fixperms} $RPM_BUILD_ROOT/* -install -d $RPM_BUILD_ROOT/%{_mandir}/man1/ -echo .so man3/XML::XPath.3pm >> $RPM_BUILD_ROOT/%{_mandir}/man1/xpath.1 +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/ +cat >> $RPM_BUILD_ROOT/%{_mandir}/man1/xpath.1 << EOF +.so man3/XML::XPath.3pm +EOF %check make test +#Files list %files -%doc Changes README TODO LICENSE +%license LICENSE +%doc Changes README TODO %{_bindir}/xpath %{perl_vendorlib}/XML @@ -56,5 +65,6 @@ make test %{_mandir}/man3/*.3* %changelog -* Tue Nov 19 2019 wangzhishun - 1.42.5 +* Wed Jan 08 2020 openEuler Buildteam - 1.42.0-5 - Package init +