# # spec file for package perl-Tie-Cache-LRU # # Copyright (c) 2018 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-Tie-Cache-LRU Version: 20150301 Release: 0 %define cpan_name Tie-Cache-LRU Summary: Least-Recently Used cache License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Tie-Cache-LRU/ Source0: Tie-Cache-LRU-20150301.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Carp::Assert) BuildRequires: perl(Class::Data::Inheritable) BuildRequires: perl(Class::Virtual) BuildRequires: perl(Test::More) >= 0.82 BuildRequires: perl(enum) Requires: perl(Carp::Assert) Requires: perl(Class::Data::Inheritable) Requires: perl(Class::Virtual) Requires: perl(Test::More) >= 0.82 Requires: perl(enum) %{perl_requires} %description *NOTE* There are no plans to update this module. Please consider using the CHI manpage or other caching framework. This is an implementation of a least-recently used (LRU) cache keeping the cache in RAM. A LRU cache is similar to the kind of cache used by a web browser. New items are placed into the top of the cache. When the cache grows past its size limit, it throws away items off the bottom. The trick is that whenever an item is -accessed-, it is pulled back to the top. The end result of all this is that items which are frequently accessed tend to stay in the cache. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %changelog