1 |
%define upstream_name Metabase-Fact |
2 |
%define upstream_version 0.022 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Class for Metabase resources |
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/Metabase/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(CPAN::DistnameInfo) |
15 |
BuildRequires: perl(Carp) |
16 |
BuildRequires: perl(Cwd) |
17 |
BuildRequires: perl(Data::GUID) |
18 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0 |
19 |
BuildRequires: perl(File::Find) |
20 |
BuildRequires: perl(File::Spec) |
21 |
BuildRequires: perl(File::Temp) >= 0.200.0 |
22 |
BuildRequires: perl(Getopt::Long) |
23 |
BuildRequires: perl(IO::Prompt::Tiny) |
24 |
BuildRequires: perl(JSON) >= 2.0.0 |
25 |
BuildRequires: perl(Pod::Usage) |
26 |
BuildRequires: perl(Test::Exception) |
27 |
BuildRequires: perl(Test::More) >= 0.880.0 |
28 |
BuildRequires: perl(overload) |
29 |
BuildRequires: perl(strict) |
30 |
BuildRequires: perl(warnings) |
31 |
BuildArch: noarch |
32 |
|
33 |
%description |
34 |
the Metabase manpage is a framework for associating content and metadata |
35 |
with arbitrary resources. A Metabase can be used to store test reports, |
36 |
reviews, coverage analysis reports, reports on static analysis of coding |
37 |
style, or anything else for which datatypes are constructed. |
38 |
|
39 |
Metabase::Fact is a base class for Facts (really opinions or analyses) that |
40 |
can be sent to or retrieved from a Metabase repository. |
41 |
|
42 |
Structure of a Fact object |
43 |
A Fact object associates a 'content' attribute with a 'resource' |
44 |
attribute and a 'creator' attribute. |
45 |
|
46 |
%prep |
47 |
%setup -q -n %{upstream_name}-%{upstream_version} |
48 |
|
49 |
%build |
50 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
51 |
|
52 |
%make |
53 |
|
54 |
%check |
55 |
%make test |
56 |
|
57 |
%install |
58 |
%makeinstall_std |
59 |
|
60 |
%files |
61 |
%doc Changes LICENSE META.json META.yml MYMETA.yml README |
62 |
%{_mandir}/man3/* |
63 |
%perl_vendorlib/* |
64 |
/usr/bin/metabase-profile |
65 |
/usr/share/man/man1/metabase-profile.1.xz |