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\\)$
#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 <wangzhishun1@huawei.com> - 1.42.5
* Wed Jan 08 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.42.0-5
- Package init