-
Notifications
You must be signed in to change notification settings - Fork 9
/
ServiceReport.spec
54 lines (43 loc) · 1.33 KB
/
ServiceReport.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
%define name ServiceReport
%define version 2.2.4
%define release 1
# By default python 3 is used to build the package.
%define python python3
Name: %{name}
Summary: A tool to validate and repair First Failure Data Capture (FFDC) configuration
Version: %{version}
Release: %{release}
Source0: https://github.com/linux-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
License: GPLv2+
Group: System/RAS
URL: https://github.com/linux-ras/ServiceReport
# Restricting the package build for ppc64 architecture, update the BuildArch
# tag to build the package for different architecture.
BuildArch: ppc64le
Vendor: IBM Corp.
BuildRequires: %{python} systemd
BuildRequires: %{python}-setuptools
Requires: %{python} systemd
%description
ServiceReport is a python based tool that investigates the incorrect First Failure Data
Capture (FFDC) configuration and optionally repairs the incorrect configuration
%define debug_package %{nil}
%prep
%setup -q
%build
%{python} setup.py build
%install
%{python} setup.py install --root=$RPM_BUILD_ROOT
%post
systemctl enable servicereport.service
%files
%defattr(-,root,root)
%doc /usr/share/man/man8/*
%doc /usr/share/doc/*
%doc /usr/share/licenses/*
/usr/lib/*
/usr/bin/*
%changelog
* Fri Nov 15 2019 Sourabh Jain <[email protected]> 2.2.1
- First Open source release
- Initial Commit of Open Source release