2011-03-18 13:29:51 +00:00
|
|
|
#
|
2011-03-18 13:30:04 +00:00
|
|
|
# spec file for package perl-HTML-Form
|
2011-03-18 13:29:51 +00:00
|
|
|
#
|
2020-02-21 10:32:06 +00:00
|
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-03-18 13:29:51 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-02 05:56:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-18 13:29:51 +00:00
|
|
|
#
|
|
|
|
|
2011-03-18 13:30:04 +00:00
|
|
|
|
2011-03-18 13:29:51 +00:00
|
|
|
Name: perl-HTML-Form
|
2020-02-24 14:54:48 +00:00
|
|
|
Version: 6.07
|
2012-03-01 16:23:13 +00:00
|
|
|
Release: 0
|
2011-03-18 13:29:51 +00:00
|
|
|
%define cpan_name HTML-Form
|
|
|
|
Summary: Class that represents an HTML form element
|
2019-04-02 05:56:44 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-03-18 13:29:51 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2019-04-02 05:56:44 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2012-03-01 16:23:13 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-03-18 13:29:51 +00:00
|
|
|
BuildRequires: perl(HTML::TokeParser)
|
|
|
|
BuildRequires: perl(HTTP::Request) >= 6
|
2013-07-24 07:55:38 +00:00
|
|
|
BuildRequires: perl(HTTP::Request::Common) >= 6.03
|
2019-04-02 05:56:44 +00:00
|
|
|
BuildRequires: perl(HTTP::Response)
|
2011-03-18 13:29:51 +00:00
|
|
|
BuildRequires: perl(URI) >= 1.10
|
|
|
|
Requires: perl(HTML::TokeParser)
|
|
|
|
Requires: perl(HTTP::Request) >= 6
|
2013-07-24 07:55:38 +00:00
|
|
|
Requires: perl(HTTP::Request::Common) >= 6.03
|
2011-03-18 13:29:51 +00:00
|
|
|
Requires: perl(URI) >= 1.10
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%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
|
2020-02-21 10:32:06 +00:00
|
|
|
be tweaked and it can then be asked to provide HTTP::Request objects that
|
|
|
|
can be passed to the request() method of LWP::UserAgent.
|
2011-03-18 13:29:51 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2020-02-21 10:32:06 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-03-18 13:29:51 +00:00
|
|
|
|
|
|
|
%build
|
2019-04-02 05:56:44 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2011-03-18 13:29:51 +00:00
|
|
|
|
|
|
|
%check
|
2019-04-02 05:56:44 +00:00
|
|
|
make test
|
2011-03-18 13:29:51 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2012-03-01 16:23:13 +00:00
|
|
|
%defattr(-,root,root,755)
|
2019-10-08 12:10:55 +00:00
|
|
|
%doc Changes
|
2019-04-02 05:56:44 +00:00
|
|
|
%license LICENSE
|
2011-03-18 13:29:51 +00:00
|
|
|
|
|
|
|
%changelog
|