!3 Upgrade to version 2.17
From: @chen-jan Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
8703fd9ae0
Binary file not shown.
BIN
WWW-Mechanize-2.17.tar.gz
Normal file
BIN
WWW-Mechanize-2.17.tar.gz
Normal file
Binary file not shown.
@ -1,7 +1,5 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
|
||||
Name: perl-WWW-Mechanize
|
||||
Version: 2.07
|
||||
Version: 2.17
|
||||
Release: 1
|
||||
Summary: Automates web page form & link interaction
|
||||
License: GPL+ or Artistic
|
||||
@ -9,61 +7,58 @@ URL: https://metacpan.org/release/WWW-Mechanize
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
|
||||
# build requirements
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# runtime requirements
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(CGI)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(HTML::Form) >= 1.038
|
||||
BuildRequires: perl(Compress::Zlib)
|
||||
BuildRequires: perl(HTML::Form) >= 6.08
|
||||
BuildRequires: perl(HTML::HeadParser)
|
||||
BuildRequires: perl(HTML::TokeParser)
|
||||
BuildRequires: perl(HTML::TreeBuilder)
|
||||
BuildRequires: perl(HTML::TokeParser) >= 2.28
|
||||
BuildRequires: perl(HTTP::Daemon) >= 6.05
|
||||
BuildRequires: perl(HTTP::Request) >= 1.3
|
||||
BuildRequires: perl(HTTP::Response::Encoding) >= 0.05
|
||||
BuildRequires: perl(IO::Socket::SSL)
|
||||
BuildRequires: perl(LWP) >= 6.45
|
||||
BuildRequires: perl(LWP::UserAgent) >= 6.45
|
||||
BuildRequires: perl(Pod::Usage)
|
||||
BuildRequires: perl(HTTP::Request::Common)
|
||||
BuildRequires: perl(LWP::UserAgent)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Tie::RefHash)
|
||||
BuildRequires: perl(Test::More) >= 0.34
|
||||
BuildRequires: perl(URI::file)
|
||||
BuildRequires: perl(URI::URL)
|
||||
BuildRequires: perl(warnings)
|
||||
# test requirements
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(HTTP::Request::Common)
|
||||
BuildRequires: perl(HTTP::Response)
|
||||
BuildRequires: perl(HTTP::Server::Simple) >= 0.35
|
||||
BuildRequires: perl(HTTP::Server::Simple::CGI)
|
||||
BuildRequires: perl(HTTP::Daemon) >= 6.12
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(LWP)
|
||||
BuildRequires: perl(LWP::Simple)
|
||||
BuildRequires: perl(Path::Tiny)
|
||||
BuildRequires: perl(Test::Deep)
|
||||
BuildRequires: perl(Test::Exception)
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::Memory::Cycle)
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(Test::NoWarnings) >= 1.04
|
||||
BuildRequires: perl(Test::Output)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
BuildRequires: perl(Test::RequiresInternet)
|
||||
BuildRequires: perl(Test::Taint)
|
||||
BuildRequires: perl(Test::Warn) >= 0.11
|
||||
BuildRequires: perl(Test::Taint) >= 1.08
|
||||
BuildRequires: perl(Test::Warn)
|
||||
BuildRequires: perl(Test::Warnings)
|
||||
BuildRequires: perl(URI) >= 1.36
|
||||
BuildRequires: perl(URI)
|
||||
BuildRequires: perl(URI::Escape)
|
||||
BuildRequires: perl(URI::file)
|
||||
# $mech->content( format => 'text' ) requires HTML::TreeBuilder to be installed
|
||||
# https://metacpan.org/pod/WWW::Mechanize#$mech-%3Econtent(...)
|
||||
Requires: perl(HTML::TreeBuilder)
|
||||
|
||||
|
||||
|
||||
%description
|
||||
WWW::Mechanize, or Mech for short, is a Perl module for stateful
|
||||
programmatic web browsing, used for automating interaction with websites.
|
||||
@ -80,52 +75,31 @@ programmatic web browsing, used for automating interaction with websites.
|
||||
%setup -q -n WWW-Mechanize-%{version}
|
||||
|
||||
%build
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
export PERL_MM_OPT=""
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
pushd %{buildroot}
|
||||
touch filelist.lst
|
||||
if [ -d usr/bin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ];then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib ];then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
%{make_install}
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
make test TEST_VERBOSE=1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes CONTRIBUTORS cpanfile dist.ini LICENSE META.json perlcriticrc perltidyrc README.md tidyall.ini
|
||||
%files
|
||||
%doc Changes etc/www-mechanize-logo.png
|
||||
%{_bindir}/mech-dump
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Sep 08 2023 chenchen <chen_aka_jan@163.com> - 2.17-1
|
||||
- Upgrade to version 2.17
|
||||
|
||||
* Sun Oct 09 2022 Perl_Bot <Perl_Bot@openeuler.org> 2.07-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user