!1 package init

From: @caodongxia
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2020-11-05 23:36:06 +08:00 committed by Gitee
commit 2e4164a62d
3 changed files with 96 additions and 0 deletions

BIN
HTML-Form-6.07.tar.gz Normal file

Binary file not shown.

92
perl-HTML-Form.spec Normal file
View File

@ -0,0 +1,92 @@
%global _empty_manifest_terminate_build 0
Name: perl-HTML-Form
Version: 6.07
Release: 1
Summary: Class that represents an HTML form element
License: Perl_5 and GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/HTML-Form/
Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/HTML-Form-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl >= 0:5.008001
BuildRequires: perl(Carp)
BuildRequires: perl(Encode) >= 2
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTML::TokeParser)
BuildRequires: perl(HTTP::Request) >= 6
BuildRequires: perl(HTTP::Request::Common) >= 6.03
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI) >= 1.10
BuildRequires: perl(warnings)
Requires: perl(Carp)
Requires: perl(Encode) >= 2
Requires: perl(HTML::TokeParser)
Requires: perl(HTTP::Request) >= 6
Requires: perl(HTTP::Request::Common) >= 6.03
Requires: perl(strict)
Requires: perl(URI) >= 1.10
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Objects of the HTML::Form class represents a single HTML <form> ... </form>
instance. A form consists of a sequence of inputs that usually have names,
and which can take on various values. The state of a form can be tweaked
and it can then be asked to provide HTTP::Request objects that can be
passed to the request() method of LWP::UserAgent.
%package help
Summary : Class that represents an HTML form element
Provides: perl-HTML-Form-doc
%description help
Objects of the HTML::Form class represents a single HTML <form> ... </form>
instance. A form consists of a sequence of inputs that usually have names,
and which can take on various values. The state of a form can be tweaked
and it can then be asked to provide HTTP::Request objects that can be
passed to the request() method of LWP::UserAgent.
%prep
%setup -q -n HTML-Form-%{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
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes cpanfile dist.ini LICENSE META.json
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Tue Jun 09 2020 Perl_Bot <Perl_Bot@openeuler.org> 6.07-1
- Specfile autogenerated by Perl_Bot

4
perl-HTML-Form.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: metacpan
src_repo: HTML-Form
mag_prefix: "^v"
seperator: "."