Chris Weyl f4a0db3
Name:           perl-CGI-Compile
Chris Weyl f4a0db3
Summary:        Compile .cgi scripts to a code reference like ModPerl::Registry
Chris Weyl f4a0db3
Version:        0.11
Chris Weyl f4a0db3
Release:        1%{?dist}
Chris Weyl f4a0db3
License:        GPL+ or Artistic
Chris Weyl f4a0db3
Group:          Development/Libraries
Chris Weyl f4a0db3
Source0:        http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/CGI-Compile-%{version}.tar.gz 
Chris Weyl f4a0db3
URL:            http://search.cpan.org/dist/CGI-Compile
Chris Weyl f4a0db3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl f4a0db3
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl f4a0db3
BuildArch:      noarch
Chris Weyl f4a0db3
Chris Weyl f4a0db3
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
Chris Weyl f4a0db3
BuildRequires:  perl(File::pushd)
Chris Weyl f4a0db3
BuildRequires:  perl(Filter::Util::Call)
Chris Weyl f4a0db3
BuildRequires:  perl(Test::More)
Chris Weyl f4a0db3
BuildRequires:  perl(Test::Requires)
Chris Weyl f4a0db3
Chris Weyl f4a0db3
Requires:       perl(File::pushd)
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%{?perl_default_filter}
Chris Weyl f4a0db3
%{?perl_default_subpackage_tests}
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%description
Chris Weyl f4a0db3
CGI::Compile is an utility to compile CGI scripts into a code reference
Chris Weyl f4a0db3
that can run many times on its own namespace, as long as the script is
Chris Weyl f4a0db3
ready to run on a persistent environment.
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%prep
Chris Weyl f4a0db3
%setup -q -n CGI-Compile-%{version}
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%build
Chris Weyl f4a0db3
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl f4a0db3
make %{?_smp_mflags}
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%install
Chris Weyl f4a0db3
rm -rf %{buildroot}
Chris Weyl f4a0db3
Chris Weyl f4a0db3
make pure_install DESTDIR=%{buildroot}
Chris Weyl f4a0db3
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
Chris Weyl f4a0db3
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%{_fixperms} %{buildroot}/*
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%check
Chris Weyl f4a0db3
make test
Chris Weyl f4a0db3
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%clean
Chris Weyl f4a0db3
rm -rf %{buildroot}
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%files
Chris Weyl f4a0db3
%defattr(-,root,root,-)
Chris Weyl f4a0db3
%doc Changes README
Chris Weyl f4a0db3
%{perl_vendorlib}/*
Chris Weyl f4a0db3
%{_mandir}/man3/*.3*
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%changelog
Chris Weyl f4a0db3
* Sat Mar 20 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.11-1
Chris Weyl f4a0db3
- specfile by Fedora::App::MaintainerTools 0.006
Chris Weyl f4a0db3
Chris Weyl f4a0db3