# # spec file for package perl-App-Cache # # 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 App-Cache Name: perl-App-Cache Version: 0.370.0 Release: 0 # 0.37 -> normalize -> 0.370.0 %define cpan_version 0.37 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Easy application-level caching URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/L/LB/LBROCARD/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Accessor::Chained::Fast) BuildRequires: perl(File::Find::Rule) BuildRequires: perl(File::HomeDir) BuildRequires: perl(HTTP::Cookies) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Path::Class) Requires: perl(Class::Accessor::Chained::Fast) Requires: perl(File::Find::Rule) Requires: perl(File::HomeDir) Requires: perl(HTTP::Cookies) Requires: perl(LWP::UserAgent) Requires: perl(Path::Class) Provides: perl(App::Cache) = %{version} %undefine __perllib_provides %{perl_requires} %description The App::Cache module lets an application cache data locally. There are a few times an application would need to cache data: when it is retrieving information from the network or when it has to complete a large calculation. For example, the Parse::BACKPAN::Packages module downloads a file off the net and parses it, creating a data structure. Only then can it actually provide any useful information for the programmer. Parse::BACKPAN::Packages uses App::Cache to cache both the file download and data structures, providing much faster use when the data is cached. This module stores data in the home directory of the user, in a dot directory. For example, the Parse::BACKPAN::Packages cache is actually stored underneath "~/.parse_backpan_packages/cache/". This is so that permisssions are not a problem - it is a per-user, per-application cache. %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 %changelog