# # spec file for package perl-File-ConfigDir # # 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-ConfigDir Name: perl-File-ConfigDir Version: 0.21.0 Release: 0 # 0.021 -> normalize -> 0.21.0 %define cpan_version 0.021 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Get directories of configuration files URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Path) >= 2.00 BuildRequires: perl(Test::More) >= 0.9 BuildRequires: perl(Test::Without::Module) Requires: perl(File::Path) >= 2.00 Provides: perl(File::ConfigDir) = %{version} %undefine __perllib_provides Recommends: perl(File::HomeDir) >= 0.50 Recommends: perl(List::MoreUtils) >= 0.0.419 Recommends: perl(List::MoreUtils::XS) >= 0.0.418 %{perl_requires} %description This module is a helper for installing, reading and finding configuration file locations. It's intended to work in every supported Perl5 environment and will always try to Do The Right Thing(TM). 'File::ConfigDir' is a module to help out when perl modules (especially applications) need to read and store configuration files from more than one location. Writing user configuration is easy thanks to File::HomeDir, but what when the system administrator needs to place some global configuration or there will be system related configuration (in '/etc' on UNIX(TM) or '$ENV{windir}' on Windows(TM)) and some network configuration in NFS mapped '/etc/p5-app' or '$ENV{ALLUSERSPROFILE} . "\\Application Data\\p5-app"', respectively. 'File::ConfigDir' has no "do what I mean" mode - it's entirely up to the user to pick the right directory for each particular application. %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.md %license ARTISTIC-1.0 GPL-1 LICENSE %changelog