rpms/perl-Catalyst-Action-RenderView/devel perl-Catalyst-Action-RenderView.spec, NONE, 1.1 pod_fix.patch, NONE, 1.1 test_pod_cover.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Chris Weyl (cweyl)
fedora-extras-commits at redhat.com
Wed Jul 25 00:19:46 UTC 2007
Author: cweyl
Update of /cvs/extras/rpms/perl-Catalyst-Action-RenderView/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14972/devel
Modified Files:
.cvsignore sources
Added Files:
perl-Catalyst-Action-RenderView.spec pod_fix.patch
test_pod_cover.patch
Log Message:
initial commit
--- NEW FILE perl-Catalyst-Action-RenderView.spec ---
Name: perl-Catalyst-Action-RenderView
Version: 0.04
Release: 2%{?dist}
Summary: Sensible default end action for view renders
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Catalyst-Action-RenderView/
Source0: http://www.cpan.org/authors/id/M/MR/MRAMBERG/Catalyst-Action-RenderView-%{version}.tar.gz
Patch0: pod_fix.patch
Patch1: test_pod_cover.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# core
BuildRequires: perl(Test::More)
# cpan
BuildRequires: perl(Module::Build) >= 0
BuildRequires: perl(Catalyst) >= 5.7
# test
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
BuildRequires: perl(HTTP::Request::AsCGI)
# use base
Requires: perl(Catalyst::Action)
# not picked up automatically
Requires: perl(Catalyst) >= 5.7
%description
This action implements a sensible default end action, which will forward to
the first available view, unless status is set to 3xx, or there is a
response body. It also allows you to pass dump_info=1 to the url in order
to force a debug screen, while in debug mode.
%prep
%setup -q -n Catalyst-Action-RenderView-%{version}
# correct pod syntax error
%patch0
# allow the pod syntax test to be invoked distinct from the pod coverage test
%patch1
# Filter unwanted Provides:
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/perl(TestApp.*)/d'
EOF
%define __perl_provides %{_builddir}/Catalyst-Action-RenderView-%{version}/%{name}-prov
chmod +x %{__perl_provides}
# Filter unwanted Requires: (may as well keep rpmlint happy)
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(strict)/d'
EOF
%define __perl_requires %{_builddir}/Catalyst-Action-RenderView-%{version}/%{name}-req
chmod +x %{__perl_requires}
# correct line encoding and an errant interperter setting
find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|; s/\r//' {} +
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
# pod coverage tests fail at the moment (TEST_POD_COVER)
export TEST_POD=1
./Build test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Jun 05 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.04-2
- add t/ to doc
- fix pod syntax (patch0)
- allow pod coverage test to be skipped independently of pod syntax test
* Fri Apr 27 2007 Chris Weyl <cweyl at alumni.drew.edu> 0.04-1
- Specfile autogenerated by cpanspec 1.71.
pod_fix.patch:
--- NEW FILE pod_fix.patch ---
--- lib/Catalyst/Action/RenderView.pm.orig 2007-06-05 19:39:20.306890672 -0700
+++ lib/Catalyst/Action/RenderView.pm 2007-06-05 19:42:07.274328217 -0700
@@ -52,6 +52,8 @@
The default C<end> action. You can override this as required in your
application class; normal inheritance applies.
+=back
+
=head1 EXTENDING
To add something to an C<end> action that is called before rendering,
@@ -73,8 +75,6 @@
# do stuff here
}
-=back
-
=head1 AUTHOR
Marcus Ramberg <marcus at thefeed.no>
test_pod_cover.patch:
--- NEW FILE test_pod_cover.patch ---
--- t/03podcoverage.t.orig 2007-06-05 19:46:28.436269199 -0700
+++ t/03podcoverage.t 2007-06-05 19:46:52.918919882 -0700
@@ -2,6 +2,6 @@
eval "use Test::Pod::Coverage 1.04";
plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+plan skip_all => 'set TEST_POD_COVER to enable this test' unless $ENV{TEST_POD_COVER};
all_pod_coverage_ok();
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Catalyst-Action-RenderView/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 24 Jul 2007 17:35:05 -0000 1.1
+++ .cvsignore 25 Jul 2007 00:19:14 -0000 1.2
@@ -0,0 +1 @@
+Catalyst-Action-RenderView-0.04.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Catalyst-Action-RenderView/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 24 Jul 2007 17:35:05 -0000 1.1
+++ sources 25 Jul 2007 00:19:14 -0000 1.2
@@ -0,0 +1 @@
+95f0e438c073efa5e0930eda00304136 Catalyst-Action-RenderView-0.04.tar.gz
More information about the scm-commits
mailing list