]> git.pld-linux.org Git - packages/perl-Redis.git/blame - perl-Redis.spec
- release 2 (by relup.sh)
[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
0dce1606
ER
6Summary: Redis - Perl binding for Redis database
7Name: perl-Redis
1dbaf44c 8Version: 1.998
ab10773d 9Release: 2
0dce1606
ER
10# note if it is "same as perl"
11License: GPL v1+ or Artistic
12Group: Development/Languages/Perl
13Source0: http://www.cpan.org/modules/by-module/Redis/%{pdir}-%{version}.tar.gz
1dbaf44c 14# Source0-md5: 187d464968fdca58eec675856a8cd0fe
0dce1606
ER
15URL: http://search.cpan.org/dist/Redis/
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18%if %{with tests}
1dbaf44c 19BuildRequires: perl-IO-Socket-Timeout
0dce1606
ER
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
f5160d16
ER
28# Tie::StdHash is present in Tie/Hash.pm package
29%define _noautoreq perl(Tie::StdHash)
30
0dce1606
ER
31%description
32Pure Perl bindings for <http://redis.io/>
33
34This version supports protocol 2.x (multi-bulk) or later of Redis
35available at <https://github.com/antirez/redis/>.
36
37%prep
38%setup -q -n %{pdir}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43%{__make}
44
45%{?with_tests:%{__make} test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README
58%{perl_vendorlib}/Redis.pm
59%{perl_vendorlib}/Redis
60%{_mandir}/man3/*
This page took 0.071797 seconds and 4 git commands to generate.