]> git.pld-linux.org Git - packages/perl-Gearman-Server.git/blame - perl-Gearman-Server.spec
use generic url
[packages/perl-Gearman-Server.git] / perl-Gearman-Server.spec
CommitLineData
ef7ba231
MP
1#
2# Conditional build:
ef7ba231 3%bcond_without tests # do not perform "make test"
8a7b5d17 4
ef7ba231
MP
5%define pdir Gearman
6%define pnam Server
8a7b5d17 7%include /usr/lib/rpm/macros.perl
ef7ba231 8Summary: Gearman::Server - function call "router" and load balancer
ef7ba231
MP
9Name: perl-Gearman-Server
10Version: 1.09
11Release: 1
8a7b5d17 12# same as perl
ef7ba231
MP
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
8a7b5d17 15Source0: http://www.cpan.org/modules/by-authors/id/B/BR/BRADFITZ/Gearman-Server-%{version}.tar.gz
ef7ba231 16# Source0-md5: 3d107089f7266ab91d66d9a7bd90430f
8a7b5d17 17URL: http://search.cpan.org/dist/Gearman-Server/
ef7ba231
MP
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24You run a Gearman server (or more likely, many of them for both
25high-availability and load balancing), then have workers (using
26Gearman::Worker from the Gearman module, or libraries for other
27languages) register their ability to do certain functions to all of
8a7b5d17
ER
28them, and then clients (using Gearman::Client, Gearman::Client::Async,
29etc) request work to be done from one of the Gearman servers.
ef7ba231
MP
30
31The servers connect them, routing function call requests to the
32appropriate workers, multiplexing responses to duplicate requests as
33requested, etc.
34
35More than likely, you want to use the provided gearmand wrapper
36script, and not use Gearman::Server directly.
37
ef7ba231
MP
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make}
45
46%{?with_tests:%{__make} test}
47
48%install
49rm -rf $RPM_BUILD_ROOT
ef7ba231
MP
50%{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc CHANGES
59%{perl_vendorlib}/Gearman/*.pm
60%{perl_vendorlib}/Gearman/Server
61%{_mandir}/man3/*
62%attr(755,root,root) %{_bindir}/gearmand
63%{_mandir}/man1/*
This page took 0.475389 seconds and 4 git commands to generate.