Files
perl-File-ConfigDir/perl-File-ConfigDir.spec

80 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-File-ConfigDir
#
# 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-File-ConfigDir
Version: 0.021
Release: 0
%define cpan_name File-ConfigDir
Summary: Get directories of configuration files
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-ConfigDir/
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Path) >= 2.000000
BuildRequires: perl(Test::More) >= 0.9
BuildRequires: perl(Test::Without::Module)
Requires: perl(File::Path) >= 2.000000
Recommends: perl(File::HomeDir) >= 0.50
Recommends: perl(List::MoreUtils) >= v0.0.419
Recommends: perl(List::MoreUtils::XS) >= v0.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
%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 GPL-1 README.md
%license ARTISTIC-1.0 LICENSE
%changelog