%define pkg_name Catalyst-Plugin-Authorization-ACL %define pkg_version 0.07 %define rpm_pkg_version 0.07 %define rpm_pkg_release 1.n0i.2 Summary: ACL support for Catalyst applications Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release}%{?dist} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _)%{?dist} %endif Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/N/NU/NUFFIN/%{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')) Requires: perl(Catalyst) >= 5.49 BuildRequires: perl(Module::Build) %{!?_without_test:BuildRequires: perl(Class::Throwable)} %{!?_without_test:BuildRequires: perl(Tree::Simple::Visitor::FindByPath)} %{!?_without_test:BuildRequires: perl(Catalyst) >= 5.49} %{!?_without_test:BuildRequires: perl(Class::Data::Inheritable)} %{!?_without_test:BuildRequires: perl(Tree::Simple::Visitor::GetAllDescendents)} %description This module provides Access Control List style path protection, with arbitrary rules for Catalyst applications. %prep %setup -n %{pkg_name}-%{pkg_version} find lib -type f | xargs -r -l1 %{__sed} -i 's@^#!/usr/.*/perl.*$@@' %build %{__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,go-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 * Sat Jul 08 2006 Marius Feraru - 0.07-1.n0i.2 - version 0.07 * Sun Apr 09 2006 Marius Feraru 0.06-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.0 - rebuild on perl 5.8.8