package init

This commit is contained in:
香帅醉花香 2019-12-04 12:10:42 +08:00
parent 753346a050
commit 69b7382ecf
2 changed files with 60 additions and 0 deletions

BIN
XML-XPath-1.42.tar.gz Normal file

Binary file not shown.

60
perl-XML-XPath.spec Normal file
View File

@ -0,0 +1,60 @@
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$
Name: perl-XML-XPath
Version: 1.42
Release: 5
Summary: Parse and evaluate XPath statements
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)
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.
%package help
Summary: Help document for the perl-XML-XPath package
%description help
Help document for the perl-XML-XPath package.
%prep
%autosetup -n XML-XPath-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%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
%check
make test
%files
%doc Changes README TODO LICENSE
%{_bindir}/xpath
%{perl_vendorlib}/XML
%files help
%{_mandir}/man1/xpath*
%{_mandir}/man3/*.3*
%changelog
* Tue Nov 19 2019 wangzhishun <wangzhishun1@huawei.com> - 1.42.5
- Package init