]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Summary: Redis - Perl binding for Redis database | |
8 | Name: perl-Redis | |
9 | Version: 1.904 | |
10 | Release: 1 | |
11 | # note if it is "same as perl" | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/Redis/%{pdir}-%{version}.tar.gz | |
15 | # Source0-md5: 1c023390a5de0187a208ead7ade3d0a6 | |
16 | URL: http://search.cpan.org/dist/Redis/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-IO-String | |
21 | BuildRequires: perl-Test-Deep | |
22 | BuildRequires: perl-Test-Exception | |
23 | BuildRequires: perl-Test-Simple >= 0.96 | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Pure Perl bindings for <http://redis.io/> | |
30 | ||
31 | This version supports protocol 2.x (multi-bulk) or later of Redis | |
32 | available 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 | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | %{__make} pure_install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -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/* |