Fix service files installation.

OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=64
This commit is contained in:
Jean Delvare 2013-06-03 13:16:09 +00:00 committed by Git OBS Bridge
parent 353fd02a0f
commit d98f85ee65

View File

@ -159,7 +159,8 @@ make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} M
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 0755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/lm_sensors
ln -sf /etc/init.d/lm_sensors $RPM_BUILD_ROOT/usr/sbin/rclm_sensors
install -D -m 0644 prog/init/*.service %{buildroot}%{_unitdir}/
mkdir -p $RPM_BULID_ROOT/%{_unitdir}
cp -a prog/init/*.service $RPM_BULID_ROOT/%{_unitdir}/
%pre
%service_add_pre lm_sensors.service