-
Notifications
You must be signed in to change notification settings - Fork 184
/
insights-core.spec
53 lines (43 loc) · 1.16 KB
/
insights-core.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
Name: insights-core
Version: 3.0.8
Release: 1%{?dist}
Summary: Insights Core is a data collection and analysis framework.
License: ASL 2.0
URL: https://github.com/RedHatInsights/insights-core
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Requires: python3-redis
%if 0%{?rhel} == 7
Requires: python36-CacheControl
Requires: python36-colorama
Requires: python36-defusedxml
Requires: python36-jinja2
Requires: python36-lockfile
Requires: python36-PyYAML
Requires: python36-requests
Requires: python36-six
%else
Requires: python3-CacheControl
Requires: python3-colorama
Requires: python3-defusedxml
Requires: python3-jinja2
Requires: python3-lockfile
Requires: python3-pyyaml
Requires: python3-requests
Requires: python3-six
%endif
%description
Insights Core is a data collection and analysis framework.
%prep
%setup -q -n %{name}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --root $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/usr/bin
%files
# For noarch packages: sitelib
%{python3_sitelib}/*
%changelog