blob: 54458bb79837c02e023aced1248783c5bce287fa (
plain)
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
110
111
112
113
114
115
|
Name: crash-worker-sdk
Summary: Crash-worker-sdk
Version: 0.1.3
Release: 3
Group: Framework/system
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
Source1001: crash-worker-sdk.manifest
Source1002: org.tizen.crash-popup.manifest
Source1003: org.tizen.crash-popup.rule
BuildRequires: pkgconfig(appcore-common)
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(ecore-imf)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(ecore-input)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(ecore-evas)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(heynoti)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(ail)
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-devel
Requires: sys-assert
Requires(post): /usr/bin/vconftool
Requires(post): coreutils
%description
crash-worker
%package -n org.tizen.crash-popup
Summary: crash-popup application
Group: main
Requires: %{name} = %{version}-%{release}
%description -n org.tizen.crash-popup
crash-popup application
%prep
%setup -q
%build
cp %{SOURCE1001} .
cp %{SOURCE1002} .
cp %{SOURCE1003} .
%define DEBUG_LOG_ON 1
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
%post
mkdir -p /opt/usr/share/crash/report
chown root:crash /opt/usr/share/crash/report
chmod 775 /opt/usr/share/crash/report
chown root:crash /opt/usr/share/crash
chmod 775 /opt/usr/share/crash
mkdir -p /opt/usr/share/crash/core
chown root:crash /opt/usr/share/crash/core
chmod 775 /opt/usr/share/crash/core
mkdir -p /opt/usr/share/crash/dump
chown root:crash /opt/usr/share/crash/dump
chmod 775 /opt/usr/share/crash/dump
mkdir -p /opt/usr/share/crash/ticket
chown root:crash /opt/usr/share/crash/ticket
chmod 775 /opt/usr/share/crash/ticket
if [ -f %{_libdir}/rpm-plugins/msm.so ]; then
find /opt/usr/share/crash -print0 | xargs -0 chsmack -a 'sys-assert::core'
find /opt/usr/share/crash -type d -print0 | xargs -0 chsmack -t
fi
vconftool set -t int db/crash/popup "1" -f
vconftool set -t int db/crash/autoclose "0" -f
vconftool set -t int db/crash/autosend "1" -f
vconftool set -t int db/crash/progress "0" -f
vconftool set -t int db/crash/sendflag "0" -f
%postun
%files
%manifest crash-worker-sdk.manifest
%defattr(-,root,root,-)
/usr/bin/crash-worker
/usr/share/license/crash-worker
%attr(0744,root,root)/usr/bin/all_log_dump.sh
%files -n org.tizen.crash-popup
%manifest org.tizen.crash-popup.manifest
/opt/etc/smack/accesses.d/org.tizen.crash-popup.rule
%defattr(-,root,root,-)
/usr/share/packages/org.tizen.crash-popup.xml
/usr/share/icons/default/small/org.tizen.crash-popup.png
/usr/apps/org.tizen.crash-popup/bin/crash-popup
/usr/apps/org.tizen.crash-popup/res/edje/crash-popup.edj
/usr/apps/org.tizen.crash-popup/res/locale/*/LC_MESSAGES/crash-popup.mo
/usr/share/license/crash-popup
|