[perl-ZMQ-LibZMQ3] Fix local build from dist-git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 80b0b7d784b41c56e3d6cb4a6ccb1973ee9de43d
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Oct 30 16:51:56 2014 +0100

    Fix local build from dist-git

 ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch |   29 +++++++++++++++++++++++++
 perl-ZMQ-LibZMQ3.spec                         |    8 ++++++-
 2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch b/ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch
new file mode 100644
index 0000000..dcbdc3f
--- /dev/null
+++ b/ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch
@@ -0,0 +1,29 @@
+From 4d0f54d073fe8dab8059e34efcaa986b5f84aaf1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@xxxxxxxxxx>
+Date: Thu, 30 Oct 2014 16:49:59 +0100
+Subject: [PATCH] Correct check for .git
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar@xxxxxxxxxx>
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index c83c9c7..a9bcb56 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -3,7 +3,7 @@
+ # plugins and such, so run a separate script to detect it.
+ # Otherwise, do the usual.
+ BEGIN {
+-    if (-e '../.git') {
++    if (-e '.git') {
+         do 'tools/check_mi_mods.pl';
+     } else {
+         unshift @INC, 'inc';
+-- 
+1.9.3
+
diff --git a/perl-ZMQ-LibZMQ3.spec b/perl-ZMQ-LibZMQ3.spec
index 58ed3f3..ab5d91c 100644
--- a/perl-ZMQ-LibZMQ3.spec
+++ b/perl-ZMQ-LibZMQ3.spec
@@ -1,12 +1,14 @@
 Name:           perl-ZMQ-LibZMQ3
 Version:        1.16
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Perl wrapper for the libzmq 3.x library
 
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/ZMQ-LibZMQ3/
 Source0:        http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/ZMQ-LibZMQ3-%{version}.tar.gz
+# Fix local build from dist-git
+Patch0:         ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch
 
 BuildRequires:  perl(AnyEvent)
 BuildRequires:  perl(Carp)
@@ -34,6 +36,7 @@ for more details on 0MQ.
 
 %prep
 %setup -q -n ZMQ-LibZMQ3-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@@ -59,6 +62,9 @@ make test
 
 
 %changelog
+* Thu Oct 30 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 1.16-4
+- Fix local build from dist-git
+
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.16-3
 - Perl 5.20 rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux