From 2e80dab521f5caf80180fc39e4f4017d9baaf17452d1840f25e69347785ca5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 24 Aug 2016 06:07:40 +0000 Subject: [PATCH] Accepting request 420710 from home:StefanBruens:branches:hardware OBS-URL: https://build.opensuse.org/request/show/420710 OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=71 --- usb_modeswitch.changes | 5 +++++ usb_modeswitch.spec | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/usb_modeswitch.changes b/usb_modeswitch.changes index 44e146d..d89b18b 100644 --- a/usb_modeswitch.changes +++ b/usb_modeswitch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Aug 20 17:25:12 UTC 2016 - stefan.bruens@rwth-aachen.de + +- Install required usb_modeswitch@.service, fixes boo#994763 + ------------------------------------------------------------------- Fri Jul 29 13:55:21 UTC 2016 - joerg.lorenzen@ki.tng.de diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 8bfca40..3091a02 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -66,17 +66,31 @@ CFLAGS="%{optflags}" make %install make DESTDIR=%{buildroot} install %{?_smp_mflags} UDEVDIR=%{buildroot}%{_udevdir} +install --mode=444 -D -t %{buildroot}%{_unitdir} usb_modeswitch@.service cd %{source_name}-data-%{date} make DESTDIR=%{buildroot} install %{?_smp_mflags} RULESDIR=%{buildroot}%{_udevdir}/rules.d %fdupes -s %{buildroot} +%pre +%service_add_pre usb_modeswitch@.service + +%post +%service_add_post usb_modeswitch@.service + +%preun +%service_del_preun usb_modeswitch@.service + +%postun +%service_del_postun usb_modeswitch@.service + %files %defattr(-,root,root,-) %doc README COPYING device_reference.txt %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_udevdir}/usb_modeswitch +%{_unitdir}/usb_modeswitch@.service %{_localstatedir}/lib/usb_modeswitch %config %{_sysconfdir}/usb_modeswitch.conf %{_mandir}/man1/usb_modeswitch.1.gz