File perl-Cache-Memcached-Fast.spec of Package perl-Cache-Memcached-Fast

#
# spec file for package perl-Cache-Memcached-Fast
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           perl-Cache-Memcached-Fast
Version:        0.23
Release:        1.1
%define cpan_name Cache-Memcached-Fast
Summary:        Perl client for B<memcached>, in C language
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Cache-Memcached-Fast/
Source:         http://www.cpan.org/authors/id/K/KR/KROKI/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%{perl_version}) 

%description
*Cache::Memcached::Fast* is a Perl client for *memcached*, a memory cache
daemon (the http://www.memcached.org/ manpage). 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 the
/"Compatibility with Cache::Memcached" manpage below for full details).

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
# OPTIMIZE="%{optflags}"
%{__make} 
#%{?_smp_mflags}

%check
#%{__make} test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor

#if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then
# find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -
#  if [ %{_target_cpu} == noarch ]; then \
#   find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs 
#  fi \
# fi \
rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod

%files 
# -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
/usr/lib64/perl5/vendor_perl/Cache/Memcached/Fast.pm
/usr/lib64/perl5/vendor_perl/auto/Cache/Memcached/Fast/.packlist
/usr/lib64/perl5/vendor_perl/auto/Cache/Memcached/Fast/Fast.bs
/usr/lib64/perl5/vendor_perl/auto/Cache/Memcached/Fast/Fast.so
/usr/share/man/man3/Cache::Memcached::Fast.3pm.gz

%changelog
* Mon Apr 13 2015 coolo@suse.com
- updated to 0.23
  see /usr/share/doc/packages/perl-Cache-Memcached-Fast/Changes
  0.23  2014-11-15
  - add touch and touch_multi commands, speedup for the case
    when application threads have per-thread Perl interpreters
    (multithreaded Apache, etc.).
    Changes since 0.22:
    Alexandr Evstigneev (hurricup@gmail.com) provided patches that
    make querying per-thread Perl state more efficient, and also
    fix compilation warnings on Win64.
    neguse (negcee@gmail.com) provided patches that implement
    "touch" and "touch_multi" commands that appeared in memcached
    1.4.8.
  0.22  2014-04-28
  - warn about UTF-8 strings when utf8 option is disabled.
    Changes since 0.21:
    Fix RT#92678: behaviour with utf8=0.  When utf8 option is
    disabled C::M::F will try to downgrade UTF-8 strings and will
    croak if failed to do so.
    Also updated ppport.h and removed outdated test case
    encoding.t.
  0.21  2013-04-06
  - regenerate distribution archive to include META.json and
    META.yml.  There's no need to upgrade as these files are used
    only by CPAN itself.
    Changes since 0.20:
    There are no changes since 0.20.  CPAN::Meta hasn't been
    installed on the build host and this resulted in creation of
    0.20 distribution missing META.json/META.yml without any
    warning.  Turns out the absence of these files prevents the
    released module from being tested on CPAN tester network.
  0.20  2013-04-03
  - finally fix magic.t failure.  Magic handling introduced in
    0.18 wasn't correct until this release.  Upgrade if you use
    Perl 'tie' feature or its derivatives like Readonly.
    Changes since 0.19:
    Fix RT#57150, RT#67106: magic.t failure.  Thanks to
    <listposter@...> for instructions on how to reproduce the
    problem.
    Fix RT#77254: typo in POD documentation.  Tnanks to Alex
    <alex112358@...>.
    Fix RT#81782: Unnecessary string eval in constructor.  Thanks
    to Andrew Holland for the patch.
* Wed Dec  1 2010 coolo@novell.com
- switch to perl_requires macro
* Mon Nov 29 2010 coolo@novell.com
- remove /var/adm/perl-modules
* Sun Apr 25 2010 jw@novell.com
- update from 0.12 to 0.19 as recommended by CPAN RSS Reader  " <"meissner@novell.com>"