From aae945ab9257103b4abba2be1de3793a52616dab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Tue, 18 Apr 2017 16:15:58 +0200
Subject: 1.08 bump

---
 .gitignore                                         |  1 +
 ...Lucid-1.08-Remove-shellbang-from-examples.patch | 27 ++++++++++++++++++++++
 perl-Getopt-Lucid.spec                             | 17 +++++++++-----
 sources                                            |  2 +-
 4 files changed, 40 insertions(+), 7 deletions(-)
 create mode 100644 Getopt-Lucid-1.08-Remove-shellbang-from-examples.patch

diff --git a/.gitignore b/.gitignore
index a8bb81d..dba11c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /Getopt-Lucid-1.05.tar.gz
 /Getopt-Lucid-1.06.tar.gz
 /Getopt-Lucid-1.07.tar.gz
+/Getopt-Lucid-1.08.tar.gz
diff --git a/Getopt-Lucid-1.08-Remove-shellbang-from-examples.patch 
b/Getopt-Lucid-1.08-Remove-shellbang-from-examples.patch
new file mode 100644
index 0000000..cd8bb19
--- /dev/null
+++ b/Getopt-Lucid-1.08-Remove-shellbang-from-examples.patch
@@ -0,0 +1,27 @@
+From d6ca09c46472181cfc80e749d7c97f9c828d49d7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Tue, 18 Apr 2017 16:18:33 +0200
+Subject: [PATCH] Remove shellbang from examples
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+It uses /usr/bin/env.
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ examples/cpanget | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/examples/cpanget b/examples/cpanget
+index 886c9a5..30cdc3c 100755
+--- a/examples/cpanget
++++ b/examples/cpanget
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env perl
+ use strict;
+ use warnings;
+ 
+-- 
+2.7.4
+
diff --git a/perl-Getopt-Lucid.spec b/perl-Getopt-Lucid.spec
index 7e0776e..b4bca08 100644
--- a/perl-Getopt-Lucid.spec
+++ b/perl-Getopt-Lucid.spec
@@ -1,18 +1,18 @@
 Name:           perl-Getopt-Lucid
-Version:        1.07
+Version:        1.08
 Release:        1%{?dist}
 Summary:        Clear, readable syntax for command line processing
 License:        ASL 2.0
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Getopt-Lucid/
 Source0:        
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Getopt-Lucid-%{version}.tar.gz
+# Do not use /usr/bin/env in example's shellbang
+Patch0:         Getopt-Lucid-1.08-Remove-shellbang-from-examples.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
-BuildRequires:  findutils
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-generators
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.17
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
 # Run-time:
@@ -27,6 +27,7 @@ BuildRequires:  perl(Storable) >= 2.16
 BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(Exception::Class::TryCatch) >= 1.10
 BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More) >= 0.62
 BuildRequires:  perl(vars)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -42,14 +43,15 @@ specification as compared against the more symbolic 
approach of Getopt::Long.
 
 %prep
 %setup -q -n Getopt-Lucid-%{version}
+%patch0 -p1
+chmod -x examples/cpanget
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -62,6 +64,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Apr 18 2017 Petr Pisar <ppi...@redhat.com> - 1.08-1
+- 1.08 bump
+
 * Fri Sep 02 2016 Petr Pisar <ppi...@redhat.com> - 1.07-1
 - 1.07 bump
 
diff --git a/sources b/sources
index 3378135..a141cf4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4537736b7ee2b670e2e872f42bbf1cc7  Getopt-Lucid-1.07.tar.gz
+SHA512 (Getopt-Lucid-1.08.tar.gz) = 
223e67295924525441ab9ea3593843b016e3487c3733629a0c7b9ec37f2958437cc8e5c8dacff187c7573dd5e958834818471c738a42865f6a02342157d7fe63
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Getopt-Lucid.git/commit/?h=f24&id=aae945ab9257103b4abba2be1de3793a52616dab
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to