Init package
This commit is contained in:
parent
70c3bdbb63
commit
3753b3fb19
BIN
WWW-Mechanize-2.07.tar.gz
Normal file
BIN
WWW-Mechanize-2.07.tar.gz
Normal file
Binary file not shown.
131
perl-WWW-Mechanize.spec
Normal file
131
perl-WWW-Mechanize.spec
Normal file
@ -0,0 +1,131 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
|
||||
Name: perl-WWW-Mechanize
|
||||
Version: 2.07
|
||||
Release: 1
|
||||
Summary: Automates web page form & link interaction
|
||||
License: GPL+ or Artistic
|
||||
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))
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
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(HTML::HeadParser)
|
||||
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(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)
|
||||
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(lib)
|
||||
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::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::Warnings)
|
||||
BuildRequires: perl(URI) >= 1.36
|
||||
BuildRequires: perl(URI::Escape)
|
||||
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.
|
||||
|
||||
%package help
|
||||
Summary: Handy web browsing in a Perl object
|
||||
Provides: perl-WWW-Mechanize-doc
|
||||
|
||||
%description help
|
||||
WWW::Mechanize, or Mech for short, is a Perl module for stateful
|
||||
programmatic web browsing, used for automating interaction with websites.
|
||||
|
||||
%prep
|
||||
%setup -q -n WWW-Mechanize-%{version}
|
||||
|
||||
%build
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%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 .
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%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
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* 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