diff --git a/.gitignore b/.gitignore index fc90db8..65d907b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ Gearman-Server-1.11.tar.gz /Gearman-Server-1.12.tar.gz +/Gearman-Server-v1.130.0.tar.gz diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..31ba2a0 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (Async|balancer)"); diff --git a/Gearman-Server-v1.130.0-Do-not-use-usr-bin-env.patch b/Gearman-Server-v1.130.0-Do-not-use-usr-bin-env.patch new file mode 100644 index 0000000..10c92a2 --- /dev/null +++ b/Gearman-Server-v1.130.0-Do-not-use-usr-bin-env.patch @@ -0,0 +1,26 @@ +From fb5ab8d3ebd3f9792ba69215a3e93bad5788daf4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 12 Jul 2016 10:41:43 +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ř +--- + bin/gearmand | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/gearmand b/bin/gearmand +index 6046a99..cca8678 100755 +--- a/bin/gearmand ++++ b/bin/gearmand +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!perl + + =head1 NAME + +-- +2.5.5 + diff --git a/perl-Gearman-Server.spec b/perl-Gearman-Server.spec index ace1d16..1333f67 100644 --- a/perl-Gearman-Server.spec +++ b/perl-Gearman-Server.spec @@ -1,18 +1,45 @@ Name: perl-Gearman-Server -Version: 1.12 -Release: 5%{?dist} -Summary: Function call "router" and load balancer +Version: 1.130.0 +Release: 1%{?dist} +Summary: Function call router and load balancer License: GPL+ or Artistic Group: System Environment/Daemons URL: http://search.cpan.org/dist/Gearman-Server/ -Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO/Gearman-Server-%{version}.tar.gz +Source0: http://search.cpan.org/CPAN/authors/id/P/PA/PALIK/Gearman-Server-v%{version}.tar.gz +# Use absolute interpreter +Patch0: Gearman-Server-v1.130.0-Do-not-use-usr-bin-env.patch BuildArch: noarch - +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Danga::Socket) >= 1.52 +BuildRequires: perl(Errno) +BuildRequires: perl(fields) +BuildRequires: perl(Gearman::Util) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IO::Socket::INET) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(POSIX) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Socket) +BuildRequires: perl(strict) +BuildRequires: perl(Sys::Hostname) +BuildRequires: perl(vars) +BuildRequires: perl(version) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Script) >= 1.12 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Danga::Socket\\)\s*$ +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Danga::Socket\\)$ %description You run a Gearman server (or more likely, many of them for both high- @@ -23,7 +50,8 @@ Gearman::Client, Gearman::Client::Async, etc) request work to be done from one of the Gearman servers. %prep -%setup -q -n Gearman-Server-%{version} +%setup -q -n Gearman-Server-v%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -31,20 +59,23 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name .packlist -delete %{_fixperms} %{buildroot}/* %check make test %files -%doc CHANGES +%doc CHANGES README.md %{_bindir}/gearmand %{perl_vendorlib}/Gearman %{_mandir}/man1/gearmand.* %{_mandir}/man3/Gearman::*.* %changelog +* Tue Jul 12 2016 Petr Pisar - 1.130.0-1 +- 1.130.0 bump + * Sun May 15 2016 Jitka Plesnikova - 1.12-5 - Perl 5.24 rebuild diff --git a/sources b/sources index 50d49f0..203b579 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -47ddfceaef24132828e66a45671cc54d Gearman-Server-1.12.tar.gz +24265c3748236e095e9d1cfd277f59a0 Gearman-Server-v1.130.0.tar.gz