diff options
Diffstat (limited to 'packaging/crash-worker-sdk.spec')
-rw-r--r-- | packaging/crash-worker-sdk.spec | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/packaging/crash-worker-sdk.spec b/packaging/crash-worker-sdk.spec new file mode 100644 index 0000000..859a0b7 --- /dev/null +++ b/packaging/crash-worker-sdk.spec @@ -0,0 +1,116 @@ +Name: crash-worker-sdk +Summary: Crash-worker-sdk +Version: 0.1.3 +Release: 3 +Group: Framework/system +License: Apache-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 +cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} +cp LICENSE.APLv2 %{buildroot}/usr/share/license/org.tizen.crash-popup + +%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/%{name} +%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/org.tizen.crash-popup |