Chris Weyl f4a0db3
Name:           perl-CGI-Compile
Chris Weyl f4a0db3
Summary:        Compile .cgi scripts to a code reference like ModPerl::Registry
31ef340
Version:        0.21
def32ff
Release:        3%{?dist}
Chris Weyl f4a0db3
License:        GPL+ or Artistic
8976a2e
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
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl f4a0db3
BuildArch:      noarch
Chris Weyl f4a0db3
c266920
BuildRequires:  perl
c266920
BuildRequires:  perl(Module::Build::Tiny) >= 0.034
c266920
BuildRequires:  perl(strict)
c266920
BuildRequires:  perl(warnings)
c266920
BuildRequires:  sed
c266920
# Run-time:
c266920
BuildRequires:  perl(Cwd)
c266920
BuildRequires:  perl(File::Basename)
c266920
BuildRequires:  perl(File::Path)
Chris Weyl f4a0db3
BuildRequires:  perl(File::pushd)
c266920
BuildRequires:  perl(File::Spec)
c266920
BuildRequires:  perl(File::Spec::Functions)
c266920
BuildRequires:  perl(File::Temp)
c266920
# Tests:
c266920
BuildRequires:  perl(base)
c266920
BuildRequires:  perl(Exporter)
c266920
BuildRequires:  perl(lib)
31ef340
BuildRequires:  perl(Switch)
Chris Weyl f4a0db3
BuildRequires:  perl(Test::More)
b90796a
BuildRequires:  perl(Test::NoWarnings)
Chris Weyl f4a0db3
BuildRequires:  perl(Test::Requires)
c266920
# Optional tests:
c266920
BuildRequires:  perl(CGI)
91d75f8
%if !%{defined perl_bootstrap}
91d75f8
# Break build-cycle: perl-Plack → perl-CGI-Compile → perl-Plack
c266920
BuildRequires:  perl(CGI::Emulate::PSGI)
c266920
BuildRequires:  perl(HTTP::Request::Common)
c266920
BuildRequires:  perl(Plack::Test)
91d75f8
%endif
c266920
# Test::Pod 1.41 not used
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%{?perl_default_filter}
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}
8976a2e
sed -i 's/\r//' t/data_crlf.cgi t/end_crlf.cgi
2ff7efc
sed -i -e '1s,#!.*perl,#!%{__perl},' t/*.t
8976a2e
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%build
1f752f0
%{__perl} Build.PL --installdirs vendor
1f752f0
./Build
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%install
c11cf2b
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
Chris Weyl f4a0db3
%{_fixperms} %{buildroot}/*
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%check
1f752f0
./Build test
Chris Weyl f4a0db3
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%files
162015d
%doc Changes README t/
Chris Weyl f4a0db3
%{perl_vendorlib}/*
Chris Weyl f4a0db3
%{_mandir}/man3/*.3*
Chris Weyl f4a0db3
Chris Weyl f4a0db3
%changelog
def32ff
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-3
def32ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
def32ff
c266920
* Mon Jan 11 2016 Petr Pisar <ppisar@redhat.com> - 0.21-2
c266920
- Specify all dependencies
91d75f8
- Break build-cycle: perl-Plack → perl-CGI-Compile → perl-Plack
c266920
31ef340
* Sat Jan 02 2016 Emmanuel Seyman <emmanuel@seyman.fr> - 0.21-1
31ef340
- Update to 0.21
31ef340
c11cf2b
* Sat Oct 31 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 0.20-1
c11cf2b
- Update to 0.20
c11cf2b
0a2dfdb
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
0a2dfdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0a2dfdb
b57634b
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-2
b57634b
- Perl 5.22 rebuild
b57634b
2ff7efc
* Sun Mar 08 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 0.19-1
2ff7efc
- Update to 0.19
2ff7efc
c9d459e
* Sun Nov 02 2014 Emmanuel Seyman <emmanuel@seyman.fr> - 0.18-1
c9d459e
- Update to 0.18
c9d459e
5bf04f8
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.17-3
5bf04f8
- Perl 5.20 rebuild
5bf04f8
2968300
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
2968300
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2968300
1f752f0
* Sun May 25 2014 Emmanuel Seyman <emmanuel@seyman.fr> - 0.17-1
1f752f0
- Update to 0.17
1f752f0
8644f95
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
8644f95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8644f95
53dd773
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 0.16-2
53dd773
- Perl 5.18 rebuild
53dd773
8976a2e
* Sun Mar 17 2013 Emmanuel Seyman <emmanuel@seyman.fr> - 0.16-1
8976a2e
- Update to 0.16
8976a2e
5676edc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-6
5676edc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5676edc
2b78914
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-5
2b78914
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2b78914
d8e1bbd
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.15-4
d8e1bbd
- Perl 5.16 rebuild
d8e1bbd
162015d
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 0.15-3
162015d
- drop tests subpackage; move tests to main package documentation
162015d
fc5cf3b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-2
fc5cf3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fc5cf3b
b90796a
* Sun Oct 02 2011 Iain Arnell <iarnell@gmail.com> 0.15-1
b90796a
- update to latest upstream version
b90796a
- clean up spec for modern rpmbuild
b90796a
Marcela Mašláňová 12db9b6
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-5
Marcela Mašláňová 12db9b6
- Perl mass rebuild
Marcela Mašláňová 12db9b6
3d8e41f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
3d8e41f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3d8e41f
eddaacb
* Wed Dec 08 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.11-3
eddaacb
- Add BR: perl(CGI) (Fix FTBFS: BZ 660891).
eddaacb
949a424
* Tue Jun 22 2010 Petr Pisar <ppisar@redhat.com> - 0.11-2
949a424
- Rebuild against perl-5.12
949a424
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