From 9342d88af42d1532af8fc89089dd5c2eeafcf1ac Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Sat, 1 Jul 2017 22:17:55 +0200
Subject: Update to 0.45
---
.gitignore | 1 +
perl-App-CLI.spec | 36 ++++++++++++++++--------------------
sources | 2 +-
3 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/.gitignore b/.gitignore
index f3b0adf..1b497cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
App-CLI-0.07.tar.gz
/App-CLI-0.313.tar.gz
+/App-CLI-0.45.tar.gz
diff --git a/perl-App-CLI.spec b/perl-App-CLI.spec
index b5830c5..1cd1cd8 100644
--- a/perl-App-CLI.spec
+++ b/perl-App-CLI.spec
@@ -1,11 +1,12 @@
+%global cpan_version 0.45
Name: perl-App-CLI
-Version: 0.313
-Release: 16%{?dist}
+Version: 0.450
+Release: 1%{?dist}
Summary: Dispatcher module for command line interface programs
License: GPL+ or Artistic
URL:
http://search.cpan.org/dist/App-CLI/
-Source0:
http://search.cpan.org/CPAN/authors/id/C/CO/CORNELIUS/App-CLI-%{version}....
+Source0:
http://search.cpan.org/CPAN/authors/id/P/PT/PTC/App-CLI-%{cpan_version}.t...
BuildArch: noarch
BuildRequires: coreutils
@@ -13,10 +14,8 @@ BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
-BuildRequires: perl(inc::Module::Install)
-BuildRequires: perl(Module::Install::AutoInstall)
-BuildRequires: perl(Module::Install::Metadata)
-BuildRequires: perl(Module::Install::WriteAll)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
+
# Run-time
BuildRequires: perl(base)
BuildRequires: perl(Carp)
@@ -42,22 +41,14 @@ App::CLI dispatches CLI (command line interface) based commands into
command classes. It also supports subcommand and per-command options.
%prep
-%setup -q -n App-CLI-%{version}
-
-# Remove bundled libraries
-rm -r inc
-sed -i -e '/^inc\// d' MANIFEST
+%setup -q -n App-CLI-%{cpan_version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -delete
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@@ -65,10 +56,15 @@ make test
%files
%doc Changes
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/App*
+%{_mandir}/man3/App*
%changelog
+* Sat Jul 01 2017 Emmanuel Seyman <emmanuel(a)seyman.fr> - 0.450-1
+- Update to 0.45
+- Move to ExtUtils::MakeMaker
+- Tighten file listing
+
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik(a)redhat.com> - 0.313-16
- Perl 5.26 rebuild
diff --git a/sources b/sources
index fa4e923..8f6a27e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-efe1a2287c8447fb46e9f43594c3ce28 App-CLI-0.313.tar.gz
+SHA512 (App-CLI-0.45.tar.gz) =
0295a2922ddfa33aa48755babbc21dcbed6f2b4cb552541623fcd4a9bad7a92635321fd8121c4d6a2229dfd93d45911dc461fad465b379b88bc26832924483ce
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-App-CLI.git/commit/?h=master&...