psabata pushed to perl-Git-CPAN-Patch (master). "Do not use /usr/bin/env to interpret git-cpan"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Jun 4 15:27:36 UTC 2015
From 2b455e9d411f33908fd48426e1ae384d4b70f7fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Thu, 4 Jun 2015 17:27:27 +0200
Subject: Do not use /usr/bin/env to interpret git-cpan
diff --git a/.gitignore b/.gitignore
index 47751d4..9f5944b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ Git-CPAN-Patch-0.2.1.tar.gz
/Git-CPAN-Patch-0.7.0.tar.gz
/Git-CPAN-Patch-0.8.0.tar.gz
/Git-CPAN-Patch-2.0.3.tar.gz
+/Git-CPAN-Patch-2.1.0.tar.gz
diff --git a/perl-Git-CPAN-Patch.spec b/perl-Git-CPAN-Patch.spec
index 2344d6b..ae97ac3 100644
--- a/perl-Git-CPAN-Patch.spec
+++ b/perl-Git-CPAN-Patch.spec
@@ -1,6 +1,6 @@
Name: perl-Git-CPAN-Patch
Summary: Patch CPAN modules using Git
-Version: 2.0.3
+Version: 2.1.0
Release: 10%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
@@ -9,8 +9,7 @@ URL: http://search.cpan.org/dist/Git-CPAN-Patch/
BuildArch: noarch
# Build
BuildRequires: perl
-BuildRequires: perl(Git::Repository::Plugin::AUTOLOAD)
-BuildRequires: perl(Module::Build) >= 0.3601
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
@@ -38,6 +37,7 @@ BuildRequires: perl(List::Pairwise)
# BuildRequires: perl(LWP::Simple)
# BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MetaCPAN::API)
+BuildRequires: perl(MetaCPAN::Client)
BuildRequires: perl(Method::Signatures::Simple) >= 1.07
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
@@ -47,11 +47,15 @@ BuildRequires: perl(MooseX::App::Role)
BuildRequires: perl(MooseX::Role::Tempdir)
BuildRequires: perl(MooseX::SemiAffordanceAccessor)
BuildRequires: perl(Path::Class)
+BuildRequires: perl(Path::Tiny)
# BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Test::More)
# Tests only
BuildRequires: git
+BuildRequires: perl(Carp)
+BuildRequires: perl(DDP)
BuildRequires: perl(File::Spec)
+BuildRequires: perl(Git::Repository::Plugin::AUTOLOAD)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::MockObject)
@@ -96,11 +100,11 @@ sending back patches to its maintainer.
sed -i -e '1 s|^#!/usr/bin/env perl|#!perl|' bin/git-cpan
%build
-perl Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
+make %{?_smp_mflags}
%install
-./Build install destdir=%{buildroot} create_packlist=0
+make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
# upstream now installs to /usr/bin; we still prefer /usr/libexec/git-core
install -d -m 0755 %{buildroot}%{_libexecdir}/git-core
@@ -109,7 +113,7 @@ mv %{buildroot}/%{_bindir}/* %{buildroot}%{_libexecdir}/git-core/
%check
git config --global user.email "perl-Git-CPAN-Patch-owner at fedoraproject.org"
git config --global user.name "Git-CPAN-Patch Owner"
-./Build test
+make test
%files
%license LICENSE
diff --git a/sources b/sources
index 7a0a66d..961eca9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-38fd1c6a78c0e3f090ddd90b9d374e48 Git-CPAN-Patch-2.0.3.tar.gz
+52f78e98e2edbc9cd2f08c734e0fafb0 Git-CPAN-Patch-2.1.0.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Git-CPAN-Patch.git/commit/?h=master&id=2b455e9d411f33908fd48426e1ae384d4b70f7fd
More information about the perl-devel
mailing list