%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{systemdunitdir}
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
PREFIX=%{_prefix} \
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%systemd_post %{name}.service
+
+%preun
+%systemd_preun %{name}.service
+
+%postun
+%systemd_reload
+
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
/lib/udev/rules.d/51-dlm.rules
%{_mandir}/man8/*.8*
%{_mandir}/man5/dlm.conf.5*
+%{systemdunitdir}/%{name}.service
%files libs
%defattr(644,root,root,755)