]> git.pld-linux.org Git - packages/perl-Redis.git/commitdiff
- new, created with pldcpan auto/ac/perl-Redis-1_904-1 auto/th/perl-Redis-1_904-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Dec 2011 13:22:18 +0000 (13:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Redis.spec -> 1.1

perl-Redis.spec [new file with mode: 0644]

diff --git a/perl-Redis.spec b/perl-Redis.spec
new file mode 100644 (file)
index 0000000..b973ee2
--- /dev/null
@@ -0,0 +1,57 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+
+%define                pdir    Redis
+%include       /usr/lib/rpm/macros.perl
+Summary:       Redis - Perl binding for Redis database
+Name:          perl-Redis
+Version:       1.904
+Release:       1
+# note if it is "same as perl"
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Redis/%{pdir}-%{version}.tar.gz
+# Source0-md5: 1c023390a5de0187a208ead7ade3d0a6
+URL:           http://search.cpan.org/dist/Redis/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-IO-String
+BuildRequires: perl-Test-Deep
+BuildRequires: perl-Test-Exception
+BuildRequires: perl-Test-Simple >= 0.96
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pure Perl bindings for <http://redis.io/>
+
+This version supports protocol 2.x (multi-bulk) or later of Redis
+available at <https://github.com/antirez/redis/>.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Redis.pm
+%{perl_vendorlib}/Redis
+%{_mandir}/man3/*
This page took 0.108273 seconds and 4 git commands to generate.