1 |
jquelin |
406014 |
%define upstream_name MooX-Options |
2 |
sander85 |
478460 |
%define upstream_version 3.84 |
3 |
jquelin |
406014 |
|
4 |
|
|
Name: perl-%{upstream_name} |
5 |
|
|
Version: %perl_convert_version %{upstream_version} |
6 |
|
|
Release: %mkrel 1 |
7 |
|
|
|
8 |
|
|
Summary: Role that is apply to your object |
9 |
|
|
License: GPL+ or Artistic |
10 |
|
|
Group: Development/Perl |
11 |
|
|
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
|
|
Source0: http://www.cpan.org/modules/by-module/MooX/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
|
|
14 |
jquelin |
406025 |
BuildRequires: perl(Carp) |
15 |
|
|
BuildRequires: perl(Data::Record) |
16 |
jquelin |
441671 |
BuildRequires: perl(English) |
17 |
jquelin |
406025 |
BuildRequires: perl(File::Find) |
18 |
|
|
BuildRequires: perl(File::Temp) |
19 |
|
|
BuildRequires: perl(FindBin) |
20 |
|
|
BuildRequires: perl(Getopt::Long) >= 2.380.0 |
21 |
|
|
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.91.0 |
22 |
jquelin |
441671 |
BuildRequires: perl(JSON) |
23 |
jquelin |
406025 |
BuildRequires: perl(MRO::Compat) |
24 |
|
|
BuildRequires: perl(Module::Build) >= 0.360.100 |
25 |
|
|
BuildRequires: perl(Module::Load::Conditional) >= 0.540.0 |
26 |
|
|
BuildRequires: perl(Module::Metadata) >= 1.0.11 |
27 |
|
|
BuildRequires: perl(Moo) >= 1.0.3 |
28 |
|
|
BuildRequires: perl(Regexp::Common) |
29 |
|
|
BuildRequires: perl(Role::Tiny::With) |
30 |
|
|
BuildRequires: perl(Scalar::Util) |
31 |
|
|
BuildRequires: perl(Test::More) >= 0.940.0 |
32 |
jquelin |
441671 |
BuildRequires: perl(Test::Requires) |
33 |
jquelin |
406025 |
BuildRequires: perl(Test::Trap) |
34 |
|
|
BuildRequires: perl(Try::Tiny) |
35 |
|
|
BuildRequires: perl(namespace::clean) |
36 |
|
|
BuildRequires: perl(strict) |
37 |
|
|
BuildRequires: perl(warnings) |
38 |
|
|
BuildArch: noarch |
39 |
jquelin |
406014 |
|
40 |
|
|
%description |
41 |
jquelin |
406025 |
Use Getopt::Long::Descritive to provide command line option for your |
42 |
|
|
Mo/Moo/Moose Object. |
43 |
jquelin |
406014 |
|
44 |
jquelin |
406025 |
This module will add "option" which act as "has" but support additional |
45 |
|
|
feature for getopt. |
46 |
jquelin |
406014 |
|
47 |
jquelin |
406025 |
You will have "new_with_options" to instanciate new object for command |
48 |
|
|
line. |
49 |
|
|
|
50 |
jquelin |
406014 |
%prep |
51 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
52 |
|
|
|
53 |
|
|
%build |
54 |
|
|
%{__perl} Build.PL installdirs=vendor |
55 |
|
|
|
56 |
|
|
./Build |
57 |
|
|
|
58 |
|
|
%check |
59 |
|
|
./Build test |
60 |
|
|
|
61 |
|
|
%install |
62 |
|
|
./Build install destdir=%{buildroot} |
63 |
|
|
|
64 |
|
|
%files |
65 |
jquelin |
406025 |
%doc Changes LICENSE META.json META.yml MYMETA.yml README |
66 |
jquelin |
406014 |
%{_mandir}/man3/* |
67 |
jquelin |
406025 |
%perl_vendorlib/* |