diff --git a/Geo-IP-1.40-Fix-shebangs-in-example-files.patch b/Geo-IP-1.40-Fix-shebangs-in-example-files.patch deleted file mode 100644 index ed7c779..0000000 --- a/Geo-IP-1.40-Fix-shebangs-in-example-files.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 796fb7e692b0778d3fda02b6a5ed14591d10c667 Mon Sep 17 00:00:00 2001 -From: Mathieu Bridon -Date: Wed, 24 Oct 2012 17:01:52 +0800 -Subject: [PATCH] Fix shebangs in example files - ---- - example/netspeed.pl | 2 +- - example/netspeedcell.pl | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/example/netspeed.pl b/example/netspeed.pl -index a68c010..890e480 100755 ---- a/example/netspeed.pl -+++ b/example/netspeed.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - use Geo::IP; - -diff --git a/example/netspeedcell.pl b/example/netspeedcell.pl -index 74905c9..c9d2928 100755 ---- a/example/netspeedcell.pl -+++ b/example/netspeedcell.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - use Geo::IP; - --- -1.7.7.6 - diff --git a/perl-Geo-IP.spec b/perl-Geo-IP.spec index c59c47f..7447dd5 100644 --- a/perl-Geo-IP.spec +++ b/perl-Geo-IP.spec @@ -1,14 +1,12 @@ Name: perl-Geo-IP Summary: Efficient Perl bindings for the GeoIP location database Version: 1.50 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://search.cpan.org/dist/Geo-IP/ License: GPL+ or Artistic Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAXMIND/Geo-IP-%{version}.tar.gz -Patch1: Geo-IP-1.40-Fix-shebangs-in-example-files.patch - BuildRequires: GeoIP-devel BuildRequires: perl-devel BuildRequires: perl-generators @@ -29,8 +27,7 @@ similar modules. %prep %setup -q -n Geo-IP-%{version} - -%patch1 -p1 +sed -i -e '1s,#!.*perl,#!%{__perl},' example/netspeed.pl %build @@ -57,6 +54,9 @@ make test %changelog +* Sat Jul 23 2016 Emmanuel Seyman - 1.50-2 +- Use inline sed instead of patch + * Sat Jul 23 2016 Emmanuel Seyman - 1.50-1 - Update to 1.50 - Pass NO_PACKLIST to Makefile.PL