3 %bcond_without tests # do not perform "make test"
7 Summary: Gearman::Server - function call "router" and load balancer
8 Name: perl-Gearman-Server
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/B/BR/BRADFITZ/Gearman-Server-%{version}.tar.gz
15 # Source0-md5: 3d107089f7266ab91d66d9a7bd90430f
16 URL: http://search.cpan.org/dist/Gearman-Server/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 You run a Gearman server (or more likely, many of them for both
24 high-availability and load balancing), then have workers (using
25 Gearman::Worker from the Gearman module, or libraries for other
26 languages) register their ability to do certain functions to all of
27 them, and then clients (using Gearman::Client, Gearman::Client::Async,
28 etc) request work to be done from one of the Gearman servers.
30 The servers connect them, routing function call requests to the
31 appropriate workers, multiplexing responses to duplicate requests as
34 More than likely, you want to use the provided gearmand wrapper
35 script, and not use Gearman::Server directly.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Gearman/*.pm
59 %{perl_vendorlib}/Gearman/Server
61 %attr(755,root,root) %{_bindir}/gearmand