2013-11-26 17:04:47 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-Exporter-Tiny
|
|
|
|
#
|
2023-04-03 15:21:48 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2013-11-26 17:04:47 +01: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.
|
|
|
|
|
2020-04-29 13:50:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-26 17:04:47 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-09-08 21:48:26 +02:00
|
|
|
%define cpan_name Exporter-Tiny
|
2013-11-26 17:04:47 +01:00
|
|
|
Name: perl-Exporter-Tiny
|
2023-04-03 15:21:48 +02:00
|
|
|
Version: 1.006002
|
2013-11-26 17:04:47 +01:00
|
|
|
Release: 0
|
2018-07-21 11:27:18 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-09-08 21:48:26 +02:00
|
|
|
Summary: An exporter with the features of Sub::Exporter but only core dependencies
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-02-14 10:08:47 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-11-26 17:04:47 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Exporter::Tiny supports many of Sub::Exporter's external-facing features
|
|
|
|
including renaming imported functions with the '-as', '-prefix' and
|
|
|
|
'-suffix' options; explicit destinations with the 'into' option; and
|
2017-05-25 17:00:55 +02:00
|
|
|
alternative installers with the 'installer' option. But it's written in
|
2013-11-26 17:04:47 +01:00
|
|
|
only about 40% as many lines of code and with zero non-core dependencies.
|
|
|
|
|
|
|
|
Its internal-facing interface is closer to Exporter.pm, with configuration
|
|
|
|
done through the '@EXPORT', '@EXPORT_OK' and '%EXPORT_TAGS' package
|
|
|
|
variables.
|
|
|
|
|
2017-02-14 10:08:47 +01:00
|
|
|
If you are trying to *write* a module that inherits from Exporter::Tiny,
|
|
|
|
then look at:
|
|
|
|
|
|
|
|
* Exporter::Tiny::Manual::QuickStart
|
|
|
|
|
|
|
|
* Exporter::Tiny::Manual::Exporting
|
|
|
|
|
|
|
|
If you are trying to *use* a module that inherits from Exporter::Tiny, then
|
|
|
|
look at:
|
|
|
|
|
|
|
|
* Exporter::Tiny::Manual::Importing
|
2013-11-26 17:04:47 +01:00
|
|
|
|
|
|
|
%prep
|
2022-09-08 21:48:26 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2013-11-26 17:04:47 +01:00
|
|
|
|
|
|
|
%build
|
2020-04-29 13:50:51 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2022-09-08 21:48:26 +02:00
|
|
|
%make_build
|
2013-11-26 17:04:47 +01:00
|
|
|
|
|
|
|
%check
|
2020-04-29 13:50:51 +02:00
|
|
|
make test
|
2013-11-26 17:04:47 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2022-09-08 21:48:26 +02:00
|
|
|
%doc Changes COPYRIGHT CREDITS doap.ttl examples NEWS README TODO
|
2018-07-21 11:27:18 +02:00
|
|
|
%license LICENSE
|
2013-11-26 17:04:47 +01:00
|
|
|
|
|
|
|
%changelog
|