forked from pool/perl-HTML-FillInForm
- updated to 2.11
* Updated tests so that they pass with Perl 5.18 (Mark Stosberg) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-FillInForm?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
d531283a60
commit
bc0658d0db
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-FillInForm (Version 2.00)
|
||||
# spec file for package perl-HTML-FillInForm
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,53 +15,57 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-HTML-FillInForm
|
||||
BuildRequires: perl-HTML-Parser
|
||||
BuildRequires: perl-macros
|
||||
Version: 2.1
|
||||
Release: 74
|
||||
Requires: perl-HTML-Parser >= 3.26
|
||||
AutoReqProv: on
|
||||
Version: 2.11
|
||||
Release: 0
|
||||
%define cpan_name HTML-FillInForm
|
||||
Summary: Populates HTML Forms with data.
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
License: GPL-1.0+ or Artistic
|
||||
Url: http://cpan.org/modules/by-module/HTML/
|
||||
Summary: Perl module HTML::FillInForm
|
||||
Source: HTML-FillInForm-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/HTML-FillInForm/
|
||||
Source: http://www.cpan.org/authors/id/M/MA/MARKSTOS/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(HTML::Parser) >= 3.26
|
||||
BuildRequires: perl(HTML::TokeParser) >= 3.26
|
||||
#BuildRequires: perl(HTML::FillInForm)
|
||||
Requires: perl(HTML::Parser) >= 3.26
|
||||
Requires: perl(HTML::TokeParser) >= 3.26
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module automatically inserts data from a previous HTML form into
|
||||
the HTML input and select tags. It is a subclass of HTML::Parser and
|
||||
uses it to parse the HTML and insert the values into the form tags.
|
||||
This module fills in an HTML form with data from a Perl data structure,
|
||||
allowing you to keep the HTML and Perl separate.
|
||||
|
||||
Here are two common use cases:
|
||||
|
||||
1. A user submits an HTML form without filling out a required field. You
|
||||
want to redisplay the form with all the previous data in it, to make it
|
||||
easy for the user to see and correct the error.
|
||||
|
||||
2. You have just retrieved a record from a database and need to display it
|
||||
in an HTML form.
|
||||
|
||||
%prep
|
||||
%setup -n HTML-FillInForm-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/HTML
|
||||
%{perl_vendorarch}/auto/HTML
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user