3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
7 %define pnam Client-Async
8 %include /usr/lib/rpm/macros.perl
9 Summary: Gearman::Client::Async - Asynchronous client module for Gearman for Danga::Socket applications
10 Name: perl-Gearman-Client-Async
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/B/BR/BRADFITZ/Gearman-Client-Async-%{version}.tar.gz
17 # Source0-md5: 71dcadfb434202dbdf4798f2ec93b32f
18 URL: http://search.cpan.org/dist/Gearman-Client-Async/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-Danga-Socket >= 1.52
23 BuildRequires: perl-Gearman >= 1.05
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Asynchronous client module for Gearman for Danga::Socket applications.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc CHANGES README.txt TODO
53 %{perl_vendorlib}/Gearman/Client/*.pm
54 %{perl_vendorlib}/Gearman/Client/Async