-
Notifications
You must be signed in to change notification settings - Fork 4
/
raven-coredump.spec
38 lines (33 loc) · 962 Bytes
/
raven-coredump.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
Name: raven-coredump
Version: %{raven_coredump_version}
Release: 1%{?dist}
Summary: raven-coredump is a kernel coredump handler for sentry.io
Group: Karos Health/EasyViz
License: BSD
Vendor: Karos Health
BuildArch: noarch
%if 0%{?rhel}
Requires: devtoolset-6-gdb
%else
Requires: gdb
%endif
%if 0%{?rhel}
Requires: python-requests
%endif
%if 0%{?rhel} < 7
Requires: python-argparse
%endif
%description
raven-coredump is a coredump handler that reports program crashes to sentry.io.
%install
rm -rf $RPM_BUILD_ROOT
%{raven_coredump_source_dir}/raven-coredump --rpm-install=$RPM_BUILD_ROOT
%if 0%{?rhel}
sed -i -e 's|/usr/bin/gdb|/opt/rh/devtoolset-6/root/usr/bin/gdb|' $RPM_BUILD_ROOT/opt/raven-coredump/bin/raven-coredump
%endif
%post
sysctl -p %{_sysconfdir}/sysctl.d/80-raven-coredump.conf
%files
/opt/raven-coredump/bin/raven-coredump
%config(noreplace) %{_sysconfdir}/raven-coredump.conf
%config(noreplace) %{_sysconfdir}/sysctl.d/80-raven-coredump.conf