Dominique Leuenberger 2016-08-29 12:28:19 +00:00 committed by Git OBS Bridge
commit 6e069523c2
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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