# # spec file for package perl-Cache-Memcached-Fast # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define modname Cache-Memcached-Fast Name: perl-Cache-Memcached-Fast Version: 0.19 Release: 1 Url: http://search.cpan.org/~kroki/Cache-Memcached-Fast-%{version} Summary: Cache::Memcached::Fast - Perl client for memcached, in C language BuildRequires: perl BuildRequires: perl-macros # not needed: # BuildRequires: memcached License: GPL/Artistic Group: Development/Libraries/Perl Source: http://search.cpan.org/CPAN/authors/id/K/KR/KROKI/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description Cache::Memcached::Fast is a Perl client for memcached, a memory cache daemon (http://www.danga.com/memcached/). Module core is implemented in C and tries hard to minimize number of system calls and to avoid any key/value copying for speed. As a result, it has very low CPU consumption. API is largely compatible with Cache::Memcached, original pure Perl client, most users of the original module may start using this module by installing it and adding "::Fast" to the old name in their scripts (see "Compatibility with Cache::Memcached" below for full details). Authors: -------- Tomash Brechko, Michael Monashev, %prep %setup -q -n %{modname}-%{version} %build echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make %check make test %install make DESTDIR=$RPM_BUILD_ROOT install_vendor echo perl_vendorarch %{perl_vendorarch} echo perl_vendorlib %{perl_vendorlib} %perl_process_packlist %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc Changes README %doc %{_mandir}/man?/* # %{perl_vendorlib}/* %{perl_vendorarch}/auto/* %{perl_vendorarch}/Cache %{perl_vendorarch}/Cache/* %changelog