[svn] r5811 - trunk/rpms/perl-Test-Inline
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Mon Sep 3 21:04:38 CEST 2007
Author: dries
Date: 2007-09-03 21:04:36 +0200 (Mon, 03 Sep 2007)
New Revision: 5811
Modified:
trunk/rpms/perl-Test-Inline/perl-Test-Inline.spec
Log:
perlreq filter added which removes perl(script)
Modified: trunk/rpms/perl-Test-Inline/perl-Test-Inline.spec
===================================================================
--- trunk/rpms/perl-Test-Inline/perl-Test-Inline.spec 2007-09-03 17:34:20 UTC (rev 5810)
+++ trunk/rpms/perl-Test-Inline/perl-Test-Inline.spec 2007-09-03 19:04:36 UTC (rev 5811)
@@ -2,6 +2,8 @@
# Authority: dag
# Upstream: Adam Kennedy <adamk at cpan.org>
+%{?dist: %{expand: %%define %dist 1}}
+
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
@@ -10,7 +12,7 @@
Summary: Inlining your tests next to the code being tested
Name: perl-Test-Inline
Version: 2.205
-Release: 1
+Release: 2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Test-Inline/
@@ -34,6 +36,7 @@
BuildRequires: perl(Pod::Tests) >= 0.18
Requires: perl
+
%description
Test::Inline is a way to embed tests in the same file as your source
code rather than in a seperate file. The idea is, the closer your
@@ -42,6 +45,12 @@
%prep
%setup -n %{real_name}-%{version}
+%{__cat} <<EOF >%{_tmppath}/perl-Test-Inline-filter-requirements.sh
+#!/bin/bash
+%{__perl_requires} $* | perl -pe 's/perl\(script\)//g'
+EOF
+%{__chmod} +x %{_tmppath}/perl-Test-Inline-filter-requirements.sh
+%define __perl_requires %{_tmppath}/perl-Test-Inline-filter-requirements.sh
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
@@ -68,6 +77,9 @@
%{perl_vendorlib}/Test/Inline.pm
%changelog
+* Mon Sep 3 2007 Dries Verachtert <dries at ulyssis.org> - 2.205-2
+- Remove the automatic perl(script) requirement, thanks to Kanwar Ranbir Sandhu.
+
* Tue Aug 07 2007 Dag Wieers <dag at wieers.com> - 2.205-1
- Updated to release 2.205.
More information about the svn-commits
mailing list