1 | Summary: Populates HTML Forms with CGI data with Perl |
---|
2 | Name: perl-HTML-FillInForm |
---|
3 | Version: 2.00 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | License: Artistic |
---|
6 | Group: Development/Libraries |
---|
7 | Source0: http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/HTML-FillInForm-%{version}.tar.gz |
---|
8 | Url: http://search.cpan.org/author/TJMATHER/HTML-FillInForm/ |
---|
9 | |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildArch: noarch |
---|
12 | BuildRequires: perl-HTML-Parser >= 3.26 |
---|
13 | Requires: perl-HTML-Parser >= 3.26 |
---|
14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
15 | |
---|
16 | Vendor: Project Vine |
---|
17 | Distribution: Vine Linux |
---|
18 | |
---|
19 | %description |
---|
20 | This module automatically inserts data from a previous HTML form into |
---|
21 | the HTML input and select tags. It is a subclass of HTML::Parser and |
---|
22 | uses it to parse the HTML and insert the values into the form tags. |
---|
23 | |
---|
24 | One useful application is after a user submits an HTML form without |
---|
25 | filling out required field. |
---|
26 | HTML::FillInForm can be used to redisplay the HTML form with all the |
---|
27 | form elements containing the submitted info. |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup -q -n HTML-FillInForm-%{version} |
---|
31 | |
---|
32 | %build |
---|
33 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" |
---|
34 | make |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf $RPM_BUILD_ROOT |
---|
38 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
39 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
40 | |
---|
41 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
42 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
43 | grep -v ^%{_mandir} | |
---|
44 | grep -v perllocal.pod | |
---|
45 | grep -v "\.packlist" > %{name}.files |
---|
46 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
47 | echo "ERROR: EMPTY FILE LIST" |
---|
48 | exit -1 |
---|
49 | fi |
---|
50 | |
---|
51 | %check |
---|
52 | make test |
---|
53 | |
---|
54 | %clean |
---|
55 | rm -rf $RPM_BUILD_ROOT |
---|
56 | |
---|
57 | %files -f %{name}.files |
---|
58 | %defattr(-,root,root) |
---|
59 | %doc README Changes |
---|
60 | %{_mandir}/*/* |
---|
61 | %dir %{perl_vendorlib}/HTML |
---|
62 | |
---|
63 | %changelog |
---|
64 | * Sun May 22 2011 IWAI, Masaharu <iwai@alib.jp> 2.00-2 |
---|
65 | - build with perl 5.12.3 |
---|
66 | |
---|
67 | * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.00-1 |
---|
68 | - applied new versioning policy |
---|
69 | |
---|
70 | * Mon Oct 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.00-0vl1 |
---|
71 | - new upstream release |
---|
72 | - changed Group to Development/Libraries |
---|
73 | |
---|
74 | * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.05-0vl1 |
---|
75 | - updated to 1.05 |
---|
76 | - use vendor_perl dir |
---|
77 | |
---|
78 | * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 1.01-0vl1 |
---|
79 | - first build for Vine Linux |
---|