From ce1493bfdea0c1d82fbc2b845d8d124e535ad1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com Date: Tue, 22 Sep 2015 15:24:07 +0200 Subject: 4.200000 bump
diff --git a/.gitignore b/.gitignore index 7bbca18..2629f41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /Net-Appliance-Session-3.122100.tar.gz /Net-Appliance-Session-4.131260.tar.gz +/Net-Appliance-Session-4.200000.tar.gz diff --git a/Net-Appliance-Session-4.200000-Do-not-use-usr-bin-env.patch b/Net-Appliance-Session-4.200000-Do-not-use-usr-bin-env.patch new file mode 100644 index 0000000..78a6353 --- /dev/null +++ b/Net-Appliance-Session-4.200000-Do-not-use-usr-bin-env.patch @@ -0,0 +1,26 @@ +From 941ffea3b51d4e759ae4be5052166c1f9d5fefd8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com +Date: Tue, 22 Sep 2015 15:18:17 +0200 +Subject: [PATCH] Do not use /usr/bin/env +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař ppisar@redhat.com +--- + bin/nas | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/nas b/bin/nas +index 9a0bea0..094d749 100755 +--- a/bin/nas ++++ b/bin/nas +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!perl + + use strict; + use warnings FATAL => 'all'; +-- +2.4.3 + diff --git a/Net-Appliance-Session-4.200000-Remove-dangerous-use-lib.patch b/Net-Appliance-Session-4.200000-Remove-dangerous-use-lib.patch new file mode 100644 index 0000000..da65148 --- /dev/null +++ b/Net-Appliance-Session-4.200000-Remove-dangerous-use-lib.patch @@ -0,0 +1,28 @@ +From 4d468dc7245ca842ae1a59bd9645d56201bab6ef Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com +Date: Tue, 22 Sep 2015 15:17:53 +0200 +Subject: [PATCH] Remove dangerous use lib +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař ppisar@redhat.com +--- + bin/nas | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/bin/nas b/bin/nas +index cac1882..9a0bea0 100755 +--- a/bin/nas ++++ b/bin/nas +@@ -3,7 +3,6 @@ + use strict; + use warnings FATAL => 'all'; + +-use lib './lib'; + use Net::Appliance::Session::Scripting; + + Net::Appliance::Session::Scripting::run(); +-- +2.4.3 + diff --git a/perl-Net-Appliance-Session.spec b/perl-Net-Appliance-Session.spec index 2b4b72a..fcf5de3 100644 --- a/perl-Net-Appliance-Session.spec +++ b/perl-Net-Appliance-Session.spec @@ -1,32 +1,49 @@ Name: perl-Net-Appliance-Session -Version: 4.131260 -Release: 6%{?dist} +Version: 4.200000 +Release: 1%{?dist} Summary: Run command-line sessions to network appliances License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Net-Appliance-Session/ Source0: http://www.cpan.org/authors/id/O/OL/OLIVER/Net-Appliance-Session-%%7Bversion... +# Remove insecure "use lib", CPAN RT#107243 +Patch0: Net-Appliance-Session-4.200000-Remove-dangerous-use-lib.patch +# Use bare perl in shell bang, CPAN RT#107244 +Patch1: Net-Appliance-Session-4.200000-Do-not-use-usr-bin-env.patch BuildArch: noarch
+BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: BuildRequires: perl(Class::Load) -BuildRequires: perl(Cwd) -BuildRequires: perl(Data::Dumper) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(IO::Prompt::Tiny) +# Cwd not used at tests +# Data::Dumper not used at tests +# Getopt::Long not used at tests +# IO::Handle not used at tests +# IO::Prompt::Tiny not used at tests BuildRequires: perl(Moo) BuildRequires: perl(Moo::Role) BuildRequires: perl(MooX::Types::MooseLike::Base) -BuildRequires: perl(Net::CLI::Interact) >= 2.131260 +BuildRequires: perl(Net::CLI::Interact) >= 2.200000 BuildRequires: perl(Sub::Quote) -BuildRequires: perl(Term::ReadPassword) -BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Text::Glob) -BuildRequires: perl(Text::ParseWords) +# Term::ANSIColor not used at tests +# Term::ReadPassword not used at tests +# Text::Glob not used at tests +# Text::ParseWords not used at tests BuildRequires: perl(Try::Tiny) +# Tests: +BuildRequires: perl(Test::More) >= 0.88 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Class::Load) -Requires: perl(Net::CLI::Interact) >= 1.122100 +Requires: perl(Net::CLI::Interact) >= 2.200000 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\(Net::CLI::Interact\)$
%description Use this module to establish an interactive command-line session with a @@ -36,30 +53,32 @@ connected device and retrieve returned output.
%prep %setup -q -n Net-Appliance-Session-%{version} +%patch0 -p1 +%patch1 -p1
%build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags}
%install -make pure_install PERL_INSTALL_ROOT=%{buildroot} - +make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ; - %{_fixperms} %{buildroot}/*
%check make test
%files -%doc Changes examples LICENSE README +%doc Changes examples %{perl_vendorlib}/* %{_bindir}/nas %{_mandir}/man1/* %{_mandir}/man3/*
%changelog +* Tue Sep 22 2015 Petr Pisar ppisar@redhat.com - 4.200000-1 +- 4.200000 bump + * Thu Jun 18 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 4.131260-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources index 55b26ef..ae7ecd5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8c4a00e2fb8c455dd9ffac2867379908 Net-Appliance-Session-4.131260.tar.gz +67bcac9abde564748667ad30af32a87a Net-Appliance-Session-4.200000.tar.gz
perl-devel@lists.fedoraproject.org