2015-02-13 11:11:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-File-Share
|
|
|
|
#
|
2022-08-16 12:24:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2015-02-13 11:11:33 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-08-16 12:24:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-13 11:11:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-08-16 12:24:26 +00:00
|
|
|
%define cpan_name File-Share
|
2015-02-13 11:11:33 +00:00
|
|
|
Name: perl-File-Share
|
2022-08-16 12:24:26 +00:00
|
|
|
Version: 0.27
|
2015-02-13 11:11:33 +00:00
|
|
|
Release: 0
|
2022-08-16 12:24:26 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2015-02-13 11:11:33 +00:00
|
|
|
Summary: Extend File::ShareDir to Local Libraries
|
2022-08-16 12:24:26 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:09 +02:00
|
|
|
Source100: README.md
|
2015-02-13 11:11:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(File::ShareDir) >= 1.03
|
2022-08-16 12:24:26 +00:00
|
|
|
BuildRequires: perl(Readonly) >= 2.05
|
2015-02-13 11:11:33 +00:00
|
|
|
Requires: perl(File::ShareDir) >= 1.03
|
2022-08-16 12:24:26 +00:00
|
|
|
Requires: perl(Readonly) >= 2.05
|
2015-02-13 11:11:33 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2022-08-16 12:24:26 +00:00
|
|
|
This module is a dropin replacement for File::ShareDir. It supports the
|
|
|
|
'dist_dir' and 'dist_file' functions, except these functions have been
|
|
|
|
enhanced to understand when the developer's local './share/' directory
|
|
|
|
should be used.
|
2015-02-13 11:11:33 +00:00
|
|
|
|
|
|
|
NOTE: module_dist and module_file are not yet supported, because (afaik)
|
|
|
|
there is no well known way to populate per-module share files. This may
|
|
|
|
change in the future. Please contact me if you know how to do this.
|
|
|
|
|
|
|
|
%prep
|
2022-08-16 12:24:26 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2015-02-13 11:11:33 +00:00
|
|
|
|
|
|
|
%build
|
2022-08-16 12:24:26 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2015-02-13 11:11:33 +00:00
|
|
|
|
|
|
|
%check
|
2022-08-16 12:24:26 +00:00
|
|
|
make test
|
2015-02-13 11:11:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2022-08-16 12:24:26 +00:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENSE
|
2015-02-13 11:11:33 +00:00
|
|
|
|
|
|
|
%changelog
|