# # spec file for package perl-CHI-Driver-Memcached # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name CHI-Driver-Memcached Name: perl-CHI-Driver-Memcached Version: 0.160.0 Release: 0 # 0.16 -> normalize -> 0.160.0 %define cpan_version 0.16 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Use Memcached for cache storage URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CHI) >= 0.33 BuildRequires: perl(Moose) >= 0.66 BuildRequires: perl(Test::Class) Requires: perl(CHI) >= 0.33 Requires: perl(Moose) >= 0.66 Provides: perl(CHI::Driver::Memcached) = %{version} Provides: perl(CHI::Driver::Memcached::Base) = %{version} Provides: perl(CHI::Driver::Memcached::Fast) = %{version} Provides: perl(CHI::Driver::Memcached::Test::Driver) = %{version} Provides: perl(CHI::Driver::Memcached::Test::Driver::Base) = %{version} Provides: perl(CHI::Driver::Memcached::Test::Driver::Fast) = %{version} Provides: perl(CHI::Driver::Memcached::Test::Driver::Memcached) = %{version} Provides: perl(CHI::Driver::Memcached::Test::Driver::libmemcached) = %{version} Provides: perl(CHI::Driver::Memcached::libmemcached) = %{version} Provides: perl(CHI::Driver::Memcached::t::CHIDriverTests::Base) = %{version} Provides: perl(CHI::Driver::Memcached::t::CHIDriverTests::Fast) = %{version} Provides: perl(CHI::Driver::Memcached::t::CHIDriverTests::Memcached) = %{version} Provides: perl(CHI::Driver::Memcached::t::CHIDriverTests::libmemcached) = %{version} %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN BuildRequires: perl(Test::Deep) BuildRequires: perl(Date::Parse) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Warn) # MANUAL END %description A CHI driver that uses Cache::Memcached to store data in the specified memcached server(s). CHI::Driver::Memcached::Fast and CHI::Driver::Memcached::libmemcached are also available as part of this distribution. They work with other Memcached clients and support a similar feature set. Documentation for all three modules is presented below. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog