# # spec file for package perl-File-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 File-Cache Name: perl-File-Cache Version: 0.160.0 Release: 0 # 0.16 -> normalize -> 0.160.0 %define cpan_version 0.16 License: CHECK(Artistic-1.0 or GPL-1.0-or-later) Summary: Share data between processes via filesystem URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DC/DCLINTON/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(File::Cache) = %{version} %undefine __perllib_provides %{perl_requires} %description *File::Cache* is a perl module that implements an object storage space where data is persisted across process boundaries via the filesystem. File::Cache builds a cache in the file system using a multi-level directory structure that looks like this: ///[D1]/[D2]/.../ CACHE_KEY is the location of the root level of the cache. The cache key defaults to /File::Cache, where is the temporary directory on your system. USERNAME is the user identifier. This value defaults to the userid, if it can be determined from the system, or "nobody" if it can not. defaults to "_default". D1, D2, etc. are subdirectories that are created to hold the cache objects. The number subdirectories depends on the _cache_depth_ value, which defaults to 0. Objects are stored in the cache using a method which depends on the _persistence_mechanism_ value. %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 CREDITS DISCLAIMER README TODO %license COPYING %changelog