]> git.pld-linux.org Git - packages/perl-Redis.git/blame - perl-Redis.spec
- new, created with pldcpan
[packages/perl-Redis.git] / perl-Redis.spec
CommitLineData
0dce1606
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define pdir Redis
6%include /usr/lib/rpm/macros.perl
7Summary: Redis - Perl binding for Redis database
8Name: perl-Redis
9Version: 1.904
10Release: 1
11# note if it is "same as perl"
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/Redis/%{pdir}-%{version}.tar.gz
15# Source0-md5: 1c023390a5de0187a208ead7ade3d0a6
16URL: http://search.cpan.org/dist/Redis/
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
19%if %{with tests}
20BuildRequires: perl-IO-String
21BuildRequires: perl-Test-Deep
22BuildRequires: perl-Test-Exception
23BuildRequires: perl-Test-Simple >= 0.96
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Pure Perl bindings for <http://redis.io/>
30
31This version supports protocol 2.x (multi-bulk) or later of Redis
32available at <https://github.com/antirez/redis/>.
33
34%prep
35%setup -q -n %{pdir}-%{version}
36
37%build
38%{__perl} Makefile.PL \
39 INSTALLDIRS=vendor
40%{__make}
41
42%{?with_tests:%{__make} test}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46%{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc Changes README
55%{perl_vendorlib}/Redis.pm
56%{perl_vendorlib}/Redis
57%{_mandir}/man3/*
This page took 0.104633 seconds and 4 git commands to generate.