%define pkg_name Params-CallbackRequest %define pkg_version 1.15 %define rpm_pkg_version 1.15 %define rpm_pkg_release 1.n0i.3 Summary: Functional and object-oriented callback architecture Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/D/DW/DWHEELER/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) %description Params::CallbackRequest provides functional and object-oriented callbacks to method and function parameters. Callbacks may be either code references provided to the "new()" constructor, or methods defined in subclasses of Params::Callback. Callbacks are triggered either for every call to the Params::CallbackRequest "request()" method, or by specially named keys in the parameters to "request()". The idea behind this module is to provide a sort of plugin architecture for Perl templating systems. Callbacks are triggered by the contents of a request to the Perl templating server, before the templating system itself executes. This approach allows you to carry out logical processing of data submitted from a form, to affect the contents of the request parameters before they're passed to the templating system for processing, and even to redirect or abort the request before the templating system handles it. %prep %setup -n %{pkg_name}-%{pkg_version} find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Sun May 28 2006 Marius Feraru - 1.15-1.n0i.3 - version 1.15 * Sat Mar 04 2006 Marius Feraru - 1.14-1.n0i.2 - version 1.14 * Thu Jul 28 2005 Marius Feraru 1.13-3.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Thu Mar 31 2005 Marius Feraru 0:1.13-2.n0i.3 - automatic rebuild (perl 5.8.6) * Sat Dec 04 2004 Marius Feraru 0:1.13-2.n0i.2 - automatic rebuild (perl 5.8.6) * Thu May 06 2004 Marius Feraru 0:1.13-1.n0i.1 - version 1.13 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 * Sat Mar 20 2004 Marius Feraru 0:1.12-1.n0i.1 - version 1.12 - spec file (re?)created using N0i::CPAN::RPMizer/2004032001 * Fri Jan 30 2004 Marius FERARU 0:1.11-0.n0i.1 - version 1.11 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001