Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
16827e6578 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
Gearman-1.11.tar.gz
|
||||
/Gearman-1.12.tar.gz
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: perl-Gearman
|
||||
Version: 1.11
|
||||
Release: 11%{?dist}
|
||||
Version: 1.12
|
||||
Release: 1%{?dist}
|
||||
Summary: Distributed job system
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
@ -8,54 +8,67 @@ URL: http://danga.com/gearman/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO/Gearman-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(String::CRC32)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(Errno)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(fields)
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(IO::Socket::INET)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(List::Util)
|
||||
BuildRequires: perl(POSIX)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Socket)
|
||||
BuildRequires: perl(Storable)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(String::CRC32)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Time::HiRes)
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(warnings)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Gearman::Client\\)$
|
||||
|
||||
%description
|
||||
Gearman is a system to farm out work to other machines,
|
||||
dispatching function calls to machines that are better suited to do work,
|
||||
to do work in parallel, to load balance lots of function calls,
|
||||
or to call functions between languages.
|
||||
Gearman provides a generic application framework to farm out work to other
|
||||
machines or processes that are better suited to do the work. It allows you
|
||||
to do work in parallel, to load balance processing, and to call functions
|
||||
between languages.
|
||||
|
||||
%prep
|
||||
%setup -q -n Gearman-%{version}
|
||||
|
||||
# Filter double proved for Gearman::Client:
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(Gearman::Client)$/d'
|
||||
EOF
|
||||
|
||||
%define __perl_provides %{_builddir}/Gearman-%{version}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES HACKING TODO
|
||||
%{perl_vendorlib}/Gearman
|
||||
%{_mandir}/man3/Gearman::*.*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 18 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-1
|
||||
- 1.12 bump
|
||||
- Modernize spec file
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user