126 lines
4.7 KiB
RPMSpec
126 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Dist-Zilla-Plugin-DynamicPrereqs
|
|
#
|
|
# 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 Dist-Zilla-Plugin-DynamicPrereqs
|
|
Name: perl-Dist-Zilla-Plugin-DynamicPrereqs
|
|
Version: 0.40.0
|
|
Release: 0
|
|
# 0.040 -> normalize -> 0.40.0
|
|
%define cpan_version 0.040
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Specify dynamic (user-side) prerequisites for your distribution
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Capture::Tiny)
|
|
BuildRequires: perl(Dist::Zilla::Plugin::MakeMaker) >= 5.022
|
|
BuildRequires: perl(Dist::Zilla::Role::AfterBuild)
|
|
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
|
|
BuildRequires: perl(Dist::Zilla::Role::FileMunger)
|
|
BuildRequires: perl(Dist::Zilla::Role::MetaProvider)
|
|
BuildRequires: perl(Dist::Zilla::Role::ModuleMetadata)
|
|
BuildRequires: perl(Dist::Zilla::Role::PrereqSource)
|
|
BuildRequires: perl(Dist::Zilla::Role::TextTemplate)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
|
BuildRequires: perl(File::ShareDir)
|
|
BuildRequires: perl(File::ShareDir::Install) >= 0.06
|
|
BuildRequires: perl(File::pushd)
|
|
BuildRequires: perl(List::Util) >= 1.45
|
|
BuildRequires: perl(Module::CoreList) >= 3.06
|
|
BuildRequires: perl(Module::Runtime)
|
|
BuildRequires: perl(Moose)
|
|
BuildRequires: perl(PadWalker)
|
|
BuildRequires: perl(Path::Tiny)
|
|
BuildRequires: perl(Term::ANSIColor) >= 3.00
|
|
BuildRequires: perl(Test::DZil)
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Deep::JSON)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::File::ShareDir)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
BuildRequires: perl(Test::Needs)
|
|
BuildRequires: perl(Try::Tiny)
|
|
BuildRequires: perl(namespace::autoclean)
|
|
Requires: perl(Dist::Zilla::Plugin::MakeMaker) >= 5.022
|
|
Requires: perl(Dist::Zilla::Role::AfterBuild)
|
|
Requires: perl(Dist::Zilla::Role::FileGatherer)
|
|
Requires: perl(Dist::Zilla::Role::FileMunger)
|
|
Requires: perl(Dist::Zilla::Role::MetaProvider)
|
|
Requires: perl(Dist::Zilla::Role::ModuleMetadata)
|
|
Requires: perl(Dist::Zilla::Role::PrereqSource)
|
|
Requires: perl(Dist::Zilla::Role::TextTemplate)
|
|
Requires: perl(File::ShareDir)
|
|
Requires: perl(List::Util) >= 1.45
|
|
Requires: perl(Module::Runtime)
|
|
Requires: perl(Moose)
|
|
Requires: perl(Path::Tiny)
|
|
Requires: perl(Term::ANSIColor) >= 3.00
|
|
Requires: perl(Try::Tiny)
|
|
Requires: perl(namespace::autoclean)
|
|
Provides: perl(Dist::Zilla::Plugin::DynamicPrereqs) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This is a Dist::Zilla plugin that inserts code into your _Makefile.PL_ to
|
|
indicate dynamic (installer-side) prerequisites.
|
|
|
|
Code is inserted immediately after the declarations for
|
|
'%WriteMakefileArgs' and '%FallbackPrereqs', before they are conditionally
|
|
modified (when an older ExtUtils::MakeMaker is installed). This gives you
|
|
an opportunity to add to the 'WriteMakefile' arguments: 'PREREQ_PM',
|
|
'BUILD_REQUIRES', and 'TEST_REQUIRES', and therefore modify the
|
|
prerequisites in the user's _MYMETA.yml_ and _MYMETA.json_ based on
|
|
conditions found on the user's system.
|
|
|
|
The 'dynamic_config' field in metadata is already set for you.
|
|
|
|
You could potentially use this plugin for performing other modifications in
|
|
_Makefile.PL_ other than user-side prerequisite modifications, but I can't
|
|
think of a situation where this makes sense. Contact me if you have any
|
|
ideas!
|
|
|
|
Only _Makefile.PL_ modification is supported at this time. This author
|
|
considers the use of Module::Build to be questionable in all circumstances,
|
|
and Module::Build::Tiny does not (yet?) support dynamic configuration.
|
|
|
|
%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 CONTRIBUTING README
|
|
%license LICENCE
|
|
|
|
%changelog
|