Name: perl-Validator-Custom Version: 1.0201 Release: 1%{?dist} Summary: HTML form validation. Simple and good flexibility License: GPL+ or Artistic URL: https://metacpan.org/pod/Validator/Custom Source0: https://cpan.metacpan.org/authors/id/K/KI/KIMOTO/Validator-Custom-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(strict) BuildRequires: perl(ExtUtils::MakeMaker) # For tests. BuildRequires: perl(Test::Simple) BuildRequires: perl(Object::Simple) BuildRequires: perl(FindBin) %{?perl_default_filter} %description This is a validator for HTML form. - Checking functions: ascii_graphic, int, number, in. You can also add your checking function. - Filtering functions: trim, remove_blank. You can also add your filtering function. - Validation object: Save each validation result and check if all data is valid. #------------------------------------------------------------------------------. %prep #------------------------------------------------------------------------------. %setup -q -n Validator-Custom-%{version} #------------------------------------------------------------------------------. %build #------------------------------------------------------------------------------. %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} #------------------------------------------------------------------------------. %install #------------------------------------------------------------------------------. make pure_install DESTDIR="${RPM_BUILD_ROOT}" %{_fixperms} "${RPM_BUILD_ROOT}"/* #------------------------------------------------------------------------------. %check #------------------------------------------------------------------------------. make test #------------------------------------------------------------------------------. %files #------------------------------------------------------------------------------. %doc Changes %{perl_vendorlib}/Validator* %{_mandir}/man3/Validator* #------------------------------------------------------------------------------. %changelog #------------------------------------------------------------------------------. * Sat Jul 8 2023 Patrick Monnerat 1.0201-1 - Initial packaging.