perl-HTML-FillInForm-vl.spec 2.1 KB

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