-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrpmgrill.spec
109 lines (92 loc) · 3.05 KB
/
rpmgrill.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Name: rpmgrill
Version: 0.34
Release: 0%{?dist}
Summary: A utility for catching problems in koji builds
Group: Development/Tools
License: Artistic 2.0
Source0: https://github.com/default-to-open/%{name}/archive/%{version}.tar.gz
URL: https://github.com/default-to-open/rpmgrill
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Module::Pluggable)
# For the antivirus plugin
Requires: clamav
Requires: data(clamav)
# For checking desktop/icon files using /usr/bin/desktop-file-validate
Requires: /usr/bin/desktop-file-validate
# For LibGather, Rpath : need eu-readelf & associated tools
Requires: elfutils
# The SecurityPolicy plugin uses xsltproc to validate polkit files.
Requires: /usr/bin/xsltproc
# The SecurityPolicy plugin checks for vulnerabilities in Ruby gems;
# the database is cached locally using git.
Requires: git
# The SecurityPolicy plugin uses strings
Requires: binutils
# Not strictly necessary for rpmgrill, but rpmgrill-fetch-build uses it
# to download Fedora builds.
Requires: koji
# Test dependencies
BuildRequires: perl(CGI)
BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(File::LibMagic)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(File::Which)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Net::DNS)
BuildRequires: perl(Sort::Versions)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Test::MockModule)
BuildRequires: perl(Test::MockObject)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Simple)
BuildRequires: perl(Time::ParseDate)
BuildRequires: perl(Time::Piece)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML)
BuildRequires: perl(YAML::Syck)
BuildRequires: perl(boolean)
BuildRequires: perl(open)
BuildRequires: perl-generators
BuildRequires: clamav
BuildRequires: clamav-data
BuildRequires: /usr/bin/xsltproc
BuildRequires: /usr/bin/desktop-file-validate
%description
rpmgrill runs a series of tests against a set of RPMs, reporting problems
that may require a developer's attention. For instance: unapplied patches,
multilib incompatibilities.
%prep
%setup -q -n %{name}-%{version}
%build
%{__perl} Build.PL --installdirs vendor
./Build
%install
./Build pure_install --destdir %{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
%if 0%{?fedora} >= 24 || 0%{?rhel} >= 8
prove -lrcf t
%else
# only run acceptance tests, since the unit tests compare output which is highly
# platform dependent
prove -lcf t
%endif
%files
%doc README.asciidoc LICENSE AUTHORS
%{perl_vendorlib}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_datadir}/%{name}/*
%changelog