perl-XML-XPath: spec update

Signed-off-by: Grooooot <isula@huawei.com>
This commit is contained in:
Grooooot 2020-01-11 18:52:58 +08:00
parent 0a90feac47
commit 3a444432ce

View File

@ -1,53 +1,62 @@
#Global marco
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$ %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$
#Basic Information
Name: perl-XML-XPath Name: perl-XML-XPath
Version: 1.42 Version: 1.42
Release: 5 Release: 5
Summary: Parse and evaluate XPath statements Summary: XPath parser and evaluator for Perl
License: Artistic 2.0 and (GPL+ or Artistic) License: Artistic 2.0 and (GPL+ or Artistic)
URL: https://metacpan.org/release/XML-XPath URL: https://metacpan.org/release/XML-XPath
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-%{version}.tar.gz
BuildArch: noarch 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) #Dependency
BuildRequires: perl(Scalar::Util) perl(vars) perl(XML::Parser) >= 2.23 perl(lib) perl(open) BuildRequires: coreutils make
BuildRequires: perl(Path::Tiny) >= 0.076 perl(Test) perl(Test::More) perl(utf8) perl(CPAN::Meta) BuildRequires: perl-generators perl-interpreter
BuildRequires: perl(Test::CPAN::Meta) perl(Test::CPAN::Meta::JSON) perl(POSIX) perl(strict) 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(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(POSIX) perl(warnings) perl(XML::Parser) >= 2.23 Requires: perl(POSIX) perl(warnings) perl(XML::Parser) >= 2.23
%description %description
This module is designed to fully comply with the XPath specification in the following areas: This module aims to comply exactly to the XPath specification at
http://www.w3.org/TR/xpath, but allows extensions to be added to Functional form.Modules such as http://www.w3.org/TR/xpath and yet allow extensions to be added in the
XSLT and XPointer may need to be executed,this is because they support features other than XPath. form of functions. Modules such as XSLT and XPointer may need to do
this as they support functionality beyond XPath.
%package_help
%package help #Build sections
Summary: Help document for the perl-XML-XPath package
%description help
Help document for the perl-XML-XPath package.
%prep %prep
%autosetup -n XML-XPath-%{version} -p1 %setup -q -n XML-XPath-%{version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
install -d $RPM_BUILD_ROOT/%{_mandir}/man1/ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
echo .so man3/XML::XPath.3pm >> $RPM_BUILD_ROOT/%{_mandir}/man1/xpath.1 cat >> $RPM_BUILD_ROOT/%{_mandir}/man1/xpath.1 << EOF
.so man3/XML::XPath.3pm
EOF
%check %check
make test make test
#Files list
%files %files
%doc Changes README TODO LICENSE %license LICENSE
%doc Changes README TODO
%{_bindir}/xpath %{_bindir}/xpath
%{perl_vendorlib}/XML %{perl_vendorlib}/XML
@ -56,5 +65,6 @@ make test
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Tue Nov 19 2019 wangzhishun <wangzhishun1@huawei.com> - 1.42.5 * Wed Jan 08 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.42.0-5
- Package init - Package init