Name: activationd-plugin
-Summary: GObject bindings for libudev
-Group: System/Libraries
-Version: 0.1.0
+Version: 0.1.1
Release: 0
License: Apache-2.0
-
-Source0: %{name}-%{version}.tgz
-Source1: %{name}.manifest
-
-%package devel
-Summary: Activationd plugin modules
+Source0: %{name}-%{version}.tar.xz
+Source1001: %{name}.manifest
+Summary: Event-based activation daemon rules
+Group: System/Monitoring
+Requires: activationd
%description
-Activationd plugin modules
+Rules for activationd
%prep
+
%setup -q
+cp %{SOURCE1001} .
%build
-cp %{SOURCE1} .
-make
%install
-make install DESTDIR=%{buildroot}
+%define cdir %{_libdir}/actd/modules.conf.d
+%define bcdir %{buildroot}/%{cdir}
+%define fname 70-activationd-plugin.conf
+
+mkdir -p %{bcdir}/unit_control_eh.conf.d
+mkdir -p %{bcdir}/vconf_listener_eh.conf.d
+mkdir -p %{bcdir}/dbus_listener.conf.d
+mkdir -p %{bcdir}/activation_eh.conf.d
+install -m644 unit_control_whitelist.conf %{bcdir}/unit_control_eh.conf.d/%{fname}
+install -m644 vconf_listener.conf %{bcdir}/vconf_listener_eh.conf.d/%{fname}
+install -m644 dbus_listener.conf %{bcdir}/dbus_listener.conf.d/%{fname}
+install -m644 activation.conf %{bcdir}/activation_eh.conf.d/%{fname}
%files
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%{cdir}/unit_control_eh.conf.d/%{fname}
+%{cdir}/vconf_listener_eh.conf.d/%{fname}
+%{cdir}/activation_eh.conf.d/%{fname}
+%{cdir}/dbus_listener.conf.d/%{fname}
--- /dev/null
+{
+ "whitelist":[
+ "bluetooth-hci-logger.service",
+ "bluetooth-hci-logger-stop.service",
+ "bluetooth-hci-up.service",
+ "bluetooth-hci-down.service",
+ "bluetooth-stack-up.service",
+ "bluetooth-stack-down.service",
+ "bluetooth-stack-down-with-radio.service",
+ "bluetooth-rfkill-block.service",
+ "bluetooth-rfkill-unblock.service",
+ "bluez-start.service",
+ "bluetooth-share-start.service"
+ ]
+}