1 |
jquelin |
148489 |
%define upstream_name MooseX-AuthorizedMethods |
2 |
|
|
%define upstream_version 0.006 |
3 |
|
|
|
4 |
|
|
Name: perl-%{upstream_name} |
5 |
|
|
Version: %perl_convert_version %{upstream_version} |
6 |
umeabot |
513117 |
Release: %mkrel 3 |
7 |
jquelin |
148489 |
|
8 |
|
|
Summary: Check roles of the user |
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/MooseX/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
|
|
14 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
|
|
BuildRequires: perl(Moose) |
16 |
|
|
BuildRequires: perl(aliased) |
17 |
|
|
BuildArch: noarch |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
This method exports the "authorized" declarator that makes a verification |
21 |
|
|
if the user has the required permissions before the acual invocation. The |
22 |
|
|
default verification method will take the "user" method result and call |
23 |
|
|
"roles" to list the roles given to that user. |
24 |
|
|
|
25 |
|
|
%prep |
26 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
27 |
|
|
|
28 |
|
|
%build |
29 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor |
30 |
|
|
|
31 |
|
|
%make |
32 |
|
|
|
33 |
|
|
%check |
34 |
|
|
%make test |
35 |
|
|
|
36 |
|
|
%install |
37 |
|
|
%makeinstall_std |
38 |
|
|
|
39 |
|
|
%files |
40 |
|
|
%doc README META.yml |
41 |
|
|
%{_mandir}/man3/* |
42 |
|
|
%perl_vendorlib/* |
43 |
|
|
|
44 |
|
|
|