Files
perl-Gearman-Server/perl-Gearman-Server.spec

77 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Gearman-Server
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Gearman-Server
Version: 1.130.1
Release: 0
%define cpan_name Gearman-Server
Summary: Function Call "Router" and Load Balancer
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Gearman-Server/
Source0: http://www.cpan.org/authors/id/P/PA/PALIK/%{cpan_name}-v%{version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:14:19 +02:00
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Danga::Socket) >= 1.52
BuildRequires: perl(Gearman::Util)
BuildRequires: perl(Test::Script) >= 1.12
BuildRequires: perl(version)
Requires: perl(Danga::Socket) >= 1.52
Requires: perl(Gearman::Util)
Requires: perl(version)
%{perl_requires}
%description
You run a Gearman server (or more likely, many of them for both
high-availability and load balancing), then have workers (using
Gearman::Worker from the Gearman module, or libraries for other languages)
register their ability to do certain functions to all of them, and then
clients (using Gearman::Client, Gearman::Client::Async, etc) request work
to be done from one of the Gearman servers.
The servers connect them, routing function call requests to the appropriate
workers, multiplexing responses to duplicate requests as requested, etc.
More than likely, you want to use the provided bin/gearmand wrapper script,
and not use Gearman::Server directly.
%prep
%setup -q -n %{cpan_name}-v%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README.md
%changelog