perl-HTML-Form/perl-HTML-Form.spec

99 lines
3.2 KiB
RPMSpec
Raw Normal View History

2020-11-05 19:58:27 +08:00
%global _empty_manifest_terminate_build 0
Name: perl-HTML-Form
2023-09-08 14:07:38 +08:00
Version: 6.11
2020-11-05 19:58:27 +08:00
Release: 1
Summary: Class that represents an HTML form element
License: Perl_5 and GPL+ or Artistic
Group: Development/Libraries
2023-09-08 14:07:38 +08:00
URL: https://metacpan.org/release/HTML-Form
Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/HTML-Form-%{version}.tar.gz
2020-11-05 19:58:27 +08:00
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)
2023-09-08 14:07:38 +08:00
BuildRequires: perl(Test::Warnings)
2020-11-05 19:58:27 +08:00
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
2023-09-08 14:07:38 +08:00
%autosetup -n HTML-Form-%{version} -p1
2020-11-05 19:58:27 +08:00
%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 .
2023-09-08 14:07:38 +08:00
2020-11-05 19:58:27 +08:00
%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
2023-09-08 14:07:38 +08:00
* Fri Sep 08 2023 yaoxin <yao_xin001@hoperun.com> - 6.11-1
- Update to 6.11
2020-11-05 19:58:27 +08:00
* Tue Jun 09 2020 Perl_Bot <Perl_Bot@openeuler.org> 6.07-1
- Specfile autogenerated by Perl_Bot