Files
perl-Exporter/perl-Exporter.spec

73 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Exporter
#
# 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 Exporter
Name: perl-Exporter
Version: 5.780.0
Release: 0
%define cpan_version 5.78
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Implements default import method for modules
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:13:57 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp) >= 1.05
Requires: perl(Carp) >= 1.05
Provides: perl(Exporter) = %{version}
Provides: perl(Exporter::Heavy) = %{version}
%undefine __perllib_provides
Recommends: perl(Test::Pod) >= 1.18
Recommends: perl(Test::Pod::Coverage) >= 1.04
%{perl_requires}
%description
The Exporter module implements an 'import' method which allows a module to
export functions and variables to its users' namespaces. Many modules use
Exporter rather than implementing their own 'import' method because
Exporter provides a highly flexible interface, with an implementation
optimised for the common case.
Perl automatically calls the 'import' method when processing a 'use'
statement for a module. Modules and 'use' are documented in perlfunc and
perlmod. Understanding the concept of modules and how the 'use' statement
operates is important to understanding the Exporter.
%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