perl-XML-XPath/perl-XML-XPath.spec

77 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#Global marco
2019-12-04 12:10:42 +08:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::Parser\\)$
#Basic Information
2019-12-04 12:10:42 +08:00
Name: perl-XML-XPath
2022-06-15 15:45:57 +08:00
Version: 1.47
2021-01-29 11:33:35 +08:00
Release: 1
Summary: Parse and evaluate XPath statementsr
2019-12-04 12:10:42 +08:00
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
#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)
2020-01-15 14:52:32 +08:00
BuildRequires: perl(Test::More) perl(XML::Parser) >= 2.23
2019-12-04 12:10:42 +08:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(POSIX) perl(warnings) perl(XML::Parser) >= 2.23
%description
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.
2019-12-04 12:10:42 +08:00
%package_help
2019-12-04 12:10:42 +08:00
#Build sections
2019-12-04 12:10:42 +08:00
%prep
2022-06-15 15:45:57 +08:00
%autosetup -p1 -n XML-XPath-%{version}
2019-12-04 12:10:42 +08:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
2019-12-04 12:10:42 +08:00
%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 << EOF
2019-12-04 12:10:42 +08:00
%check
make test
#Files list
2019-12-04 12:10:42 +08:00
%files
%license LICENSE
%doc Changes README TODO
2019-12-04 12:10:42 +08:00
%{_bindir}/xpath
%{perl_vendorlib}/XML
%files help
%{_mandir}/man1/xpath*
%{_mandir}/man3/*.3*
%changelog
2022-06-15 15:45:57 +08:00
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.47-1
- Upgrade to version 1.47
2021-01-29 11:33:35 +08:00
* Fri Jan 29 2021 liudabo <liudabo1@huawei.com> - 1.44-1
- upgrade version to 1.44
2020-01-15 14:52:32 +08:00
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.42.0-6
- Remove buildrequires
* Wed Jan 08 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.42.0-5
2019-12-04 12:10:42 +08:00
- Package init