1 |
kekepower |
1222253 |
%define upstream_name Dist-Zilla-Plugin-DynamicPrereqs |
2 |
|
|
%define upstream_version 0.034 |
3 |
|
|
|
4 |
|
|
%{?perl_default_filter} |
5 |
|
|
|
6 |
|
|
Name: perl-%{upstream_name} |
7 |
|
|
Version: %perl_convert_version %{upstream_version} |
8 |
umeabot |
1283006 |
Release: %mkrel 2 |
9 |
kekepower |
1222253 |
|
10 |
|
|
Summary: Specify dynamic (user-side) prerequisites for your distribution |
11 |
|
|
License: GPLv1+ or Artistic |
12 |
|
|
Group: Development/Perl |
13 |
|
|
Url: http://metacpan.org/release/%{upstream_name} |
14 |
|
|
Source0: http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz |
15 |
|
|
|
16 |
|
|
BuildRequires: perl(CPAN) |
17 |
|
|
BuildRequires: perl(CPAN::Meta::Requirements) |
18 |
|
|
BuildRequires: perl(Capture::Tiny) |
19 |
|
|
BuildRequires: perl(Dist::Zilla) |
20 |
|
|
BuildRequires: perl(Dist::Zilla::Plugin::MakeMaker) |
21 |
|
|
BuildRequires: perl(Dist::Zilla::Role::AfterBuild) |
22 |
|
|
BuildRequires: perl(Dist::Zilla::Role::FileGatherer) |
23 |
|
|
BuildRequires: perl(Dist::Zilla::Role::FileMunger) |
24 |
|
|
BuildRequires: perl(Dist::Zilla::Role::MetaProvider) |
25 |
|
|
BuildRequires: perl(Dist::Zilla::Role::ModuleMetadata) |
26 |
|
|
BuildRequires: perl(Dist::Zilla::Role::PrereqSource) |
27 |
|
|
BuildRequires: perl(Dist::Zilla::Role::TextTemplate) |
28 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
29 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
30 |
|
|
BuildRequires: perl(File::ShareDir) |
31 |
|
|
BuildRequires: perl(File::ShareDir::Install) |
32 |
|
|
BuildRequires: perl(File::Spec) |
33 |
|
|
BuildRequires: perl(File::pushd) |
34 |
|
|
BuildRequires: perl(List::Util) |
35 |
|
|
BuildRequires: perl(Module::CoreList) |
36 |
|
|
BuildRequires: perl(Module::Metadata) |
37 |
|
|
BuildRequires: perl(Module::Runtime) |
38 |
|
|
BuildRequires: perl(Moose) |
39 |
|
|
BuildRequires: perl(PadWalker) |
40 |
|
|
BuildRequires: perl(Path::Tiny) |
41 |
|
|
BuildRequires: perl(Term::ANSIColor) |
42 |
|
|
BuildRequires: perl(Test::DZil) |
43 |
|
|
BuildRequires: perl(Test::Deep) |
44 |
|
|
BuildRequires: perl(Test::Deep::JSON) |
45 |
|
|
BuildRequires: perl(Test::Fatal) |
46 |
|
|
BuildRequires: perl(Test::File::ShareDir) |
47 |
|
|
BuildRequires: perl(Test::More) |
48 |
|
|
BuildRequires: perl(Test::Needs) |
49 |
|
|
BuildRequires: perl(Try::Tiny) |
50 |
|
|
BuildRequires: perl(if) |
51 |
|
|
BuildRequires: perl(lib) |
52 |
|
|
BuildRequires: perl(namespace::autoclean) |
53 |
|
|
BuildRequires: perl(strict) |
54 |
|
|
BuildRequires: perl(warnings) |
55 |
|
|
BuildArch: noarch |
56 |
|
|
|
57 |
|
|
%description |
58 |
|
|
This is a the Dist::Zilla manpage plugin that inserts code into your |
59 |
|
|
_Makefile.PL_ to indicate dynamic (installer-side) prerequisites. |
60 |
|
|
|
61 |
|
|
Code is inserted immediately after the declarations for |
62 |
|
|
'%WriteMakefileArgs' and '%FallbackPrereqs', before they are conditionally |
63 |
|
|
modified (when an older the ExtUtils::MakeMaker manpage is installed). This |
64 |
|
|
gives you an opportunity to add to the 'WriteMakefile' arguments: |
65 |
|
|
'PREREQ_PM', 'BUILD_REQUIRES', and 'TEST_REQUIRES', and therefore modify |
66 |
|
|
the prerequisites in the user's _MYMETA.yml_ and _MYMETA.json_ based on |
67 |
|
|
conditions found on the user's system. |
68 |
|
|
|
69 |
|
|
The 'dynamic_config' field in CPAN::Meta::Spec/dynamic_config is already |
70 |
|
|
set for you. |
71 |
|
|
|
72 |
|
|
%prep |
73 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
74 |
|
|
|
75 |
|
|
%build |
76 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor |
77 |
|
|
|
78 |
|
|
%make |
79 |
|
|
|
80 |
|
|
%check |
81 |
|
|
%__make test |
82 |
|
|
|
83 |
|
|
%install |
84 |
|
|
%make_install |
85 |
|
|
|
86 |
|
|
%files |
87 |
|
|
%doc Changes CONTRIBUTING INSTALL LICENCE META.json META.yml README |
88 |
|
|
%{_mandir}/man3/* |
89 |
|
|
%perl_vendorlib/* |
90 |
|
|
|
91 |
|
|
|