perl-HTML-Form/perl-HTML-Form.spec
2020-11-05 19:58:27 +08:00

93 lines
3.0 KiB
RPMSpec

%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