1 |
%define upstream_name Metabase-Fact |
2 |
%define upstream_version 0.024 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 4 |
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) |
19 |
BuildRequires: perl(File::Spec) |
20 |
BuildRequires: perl(File::Spec::Functions) |
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(List::Util) |
26 |
BuildRequires: perl(Pod::Usage) |
27 |
BuildRequires: perl(Test::Fatal) |
28 |
BuildRequires: perl(Test::More) >= 0.880.0 |
29 |
BuildRequires: perl(lib) |
30 |
BuildRequires: perl(overload) |
31 |
BuildRequires: perl(strict) |
32 |
BuildRequires: perl(version) |
33 |
BuildRequires: perl(warnings) |
34 |
BuildArch: noarch |
35 |
|
36 |
%description |
37 |
the Metabase manpage is a framework for associating content and metadata |
38 |
with arbitrary resources. A Metabase can be used to store test reports, |
39 |
reviews, coverage analysis reports, reports on static analysis of coding |
40 |
style, or anything else for which datatypes are constructed. |
41 |
|
42 |
Metabase::Fact is a base class for Facts (really opinions or analyses) that |
43 |
can be sent to or retrieved from a Metabase repository. |
44 |
|
45 |
Structure of a Fact object |
46 |
A Fact object associates a 'content' attribute with a 'resource' |
47 |
attribute and a 'creator' attribute. |
48 |
|
49 |
%prep |
50 |
%setup -q -n %{upstream_name}-%{upstream_version} |
51 |
|
52 |
%build |
53 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
54 |
|
55 |
%make |
56 |
|
57 |
%check |
58 |
%make test |
59 |
|
60 |
%install |
61 |
%makeinstall_std |
62 |
|
63 |
%files |
64 |
%doc CONTRIBUTING Changes LICENSE META.json META.yml MYMETA.yml README |
65 |
%{_mandir}/man3/* |
66 |
%perl_vendorlib/* |
67 |
/usr/bin/metabase-profile |
68 |
/usr/share/man/man1/metabase-profile.1.xz |