From edff7f0c7de1eff3ab3c4f6268d6f494c2b5cbfd62d63d406c3d87c8d4c219fe Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 24 Nov 2011 13:00:00 +0000 Subject: [PATCH] Accepting request 93304 from home:a_jaeger:branches:openSUSE:Factory Create tmpfiles during new install. OBS-URL: https://build.opensuse.org/request/show/93304 OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=39 --- systemtap.changes | 5 +++++ systemtap.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/systemtap.changes b/systemtap.changes index 48bbb7d..5561357 100644 --- a/systemtap.changes +++ b/systemtap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 23 14:30:33 CET 2011 - aj@suse.de + +- Create tmpfiles during new install. + ------------------------------------------------------------------- Wed Nov 2 10:54:26 CET 2011 - jslaby@suse.de diff --git a/systemtap.spec b/systemtap.spec index 4861c0b..066fa49 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -21,6 +21,7 @@ Name: systemtap BuildRequires: gcc-c++ glib2-devel libcap-devel libebl-devel pkg-config sqlite-devel BuildRequires: mozilla-nspr-devel mozilla-nss-devel mozilla-nss-tools +BuildRequires: systemd License: GPLv2+ Version: 1.6 Release: 8 @@ -53,6 +54,7 @@ License: GPLv2+ Group: Development/Tools/Debuggers Summary: Systemtap server Requires: %{name} = %{version}-%{release} +Requires(post): /bin/systemd-tmpfiles # dependancies for systemtap shell scripts Requires: coreutils avahi avahi-utils mozilla-nss-tools zip unzip @@ -100,6 +102,10 @@ install -m 644 %SOURCE3 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d %clean rm -rf ${RPM_BUILD_ROOT} +%post server +# Create tmpfiles +/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/stap-server.conf + %files %defattr(-,root,root) %{_bindir}/stap