2009-08-06 15:46:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Exporter
|
|
|
|
#
|
2024-01-04 15:15:21 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-11-18 09:21:55 +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.
|
|
|
|
|
2018-09-22 20:21:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-11-18 09:21:55 +00:00
|
|
|
#
|
2009-08-06 15:46:21 +00:00
|
|
|
|
2011-11-18 09:21:55 +00:00
|
|
|
|
2023-01-31 09:58:39 +00:00
|
|
|
%define cpan_name Exporter
|
2011-11-18 09:21:55 +00:00
|
|
|
Name: perl-Exporter
|
2024-01-04 15:15:21 +00:00
|
|
|
Version: 5.780.0
|
2015-04-15 09:28:42 +00:00
|
|
|
Release: 0
|
2024-01-04 15:15:21 +00:00
|
|
|
%define cpan_version 5.78
|
2018-09-22 20:21:44 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-01-31 09:58:39 +00:00
|
|
|
Summary: Implements default import method for modules
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-01-04 15:15:21 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-06-16 05:02:32 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:57 +02:00
|
|
|
Source100: README.md
|
2015-04-15 09:28:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Carp) >= 1.05
|
|
|
|
Requires: perl(Carp) >= 1.05
|
2024-01-04 15:15:21 +00:00
|
|
|
Provides: perl(Exporter) = %{version}
|
|
|
|
Provides: perl(Exporter::Heavy) = %{version}
|
2024-03-08 22:26:54 +00:00
|
|
|
%undefine __perllib_provides
|
2015-04-15 09:28:42 +00:00
|
|
|
Recommends: perl(Test::Pod) >= 1.18
|
|
|
|
Recommends: perl(Test::Pod::Coverage) >= 1.04
|
2010-12-03 14:04:29 +00:00
|
|
|
%{perl_requires}
|
2009-08-06 15:46:21 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-15 09:28:42 +00:00
|
|
|
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.
|
2009-08-06 15:46:21 +00:00
|
|
|
|
2015-04-15 09:28:42 +00:00
|
|
|
Perl automatically calls the 'import' method when processing a 'use'
|
2018-09-22 20:21:44 +00:00
|
|
|
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.
|
2009-08-06 15:46:21 +00:00
|
|
|
|
|
|
|
%prep
|
2024-01-04 15:15:21 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2009-08-06 15:46:21 +00:00
|
|
|
|
|
|
|
%build
|
2020-01-21 14:44:59 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-01-31 09:58:39 +00:00
|
|
|
%make_build
|
2009-08-06 15:46:21 +00:00
|
|
|
|
|
|
|
%check
|
2020-01-21 14:44:59 +00:00
|
|
|
make test
|
2009-08-06 15:46:21 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2015-04-15 09:28:42 +00:00
|
|
|
%doc Changes README
|
2009-08-06 15:46:21 +00:00
|
|
|
|
2011-11-18 09:21:55 +00:00
|
|
|
%changelog
|