[perl-File-Comments] Get rid of pointless in-place edit flag in perl filter invocation

Paul Howarth pghmcfc at fedoraproject.org
Mon Feb 3 12:20:17 UTC 2014


commit 477ce47bba3ed89d2acfe2ae0fc4f7d49c930de2
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Feb 3 12:20:40 2014 +0000

    Get rid of pointless in-place edit flag in perl filter invocation

 perl-File-Comments.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/perl-File-Comments.spec b/perl-File-Comments.spec
index 4ea459f..21506c6 100644
--- a/perl-File-Comments.spec
+++ b/perl-File-Comments.spec
@@ -1,5 +1,5 @@
 # Need to tweak provides filter differently if we have rpm 4.9 onwards
-%global rpm49 %(rpm --version | perl -pi -e 's/^.* (\\d+)\\.(\\d+)\\.(\\d+).*/sprintf("%d.%03d%03d",$1,$2,$3) ge 4.009 ? 1 : 0/e')
+%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+)\\.(\\d+).*/sprintf("%d.%03d%03d",$1,$2,$3) ge 4.009 ? 1 : 0/e')
 
 Summary:	Recognizes file formats and extracts format-specific comments
 Name:		perl-File-Comments



More information about the perl-devel mailing list