1
0
andrea florio 2014-10-11 10:07:45 +00:00 committed by Git OBS Bridge
parent 233a0a0e30
commit 6c942502bd
2 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 11 10:04:38 UTC 2014 - andrea@opensuse.org
- fix for bnc #899013
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 2 10:35:44 UTC 2014 - andrea@opensuse.org Thu Oct 2 10:35:44 UTC 2014 - andrea@opensuse.org

View File

@ -74,6 +74,29 @@ CFLAGS="%{optflags}" make
%makeinstall UDEVDIR=$RPM_BUILD_ROOT%{_udevdir} %makeinstall UDEVDIR=$RPM_BUILD_ROOT%{_udevdir}
cd %{source_name}-data-%{date} cd %{source_name}-data-%{date}
%makeinstall RULESDIR=$RPM_BUILD_ROOT%{_udevdir}/rules.d %makeinstall RULESDIR=$RPM_BUILD_ROOT%{_udevdir}/rules.d
### TO REMOVE ONCE IN UPSTREAM DATA PACKAGE, FIX BNC 899013 ###
cat > %{buildroot}/%{_datadir}/usb_modeswitch/12d1:1583 <<EOF
# Vodafone W5101
TargetVendor=0x12d1
TargetProduct=0x1589
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
EOF
cat > %{buildroot}/%{_datadir}/usb_modeswitch/12d1:1582 <<EOF
# Vodafone R215
TargetVendor=0x12d1
TargetProduct=0x1588
MessageContent="55534243123456780000000000000011062000000101000100000000000000"
EOF
### END SECTION TO REMOVE ###
%fdupes -s $RPM_BUILD_ROOT %fdupes -s $RPM_BUILD_ROOT
%files %files
@ -89,7 +112,7 @@ cd %{source_name}-data-%{date}
%files data %files data
%defattr(-,root,root,-) %defattr(-,root,root,-)
%_datadir/usb_modeswitch/ %{_datadir}/usb_modeswitch/
%{_udevdir}/rules.d/40-usb_modeswitch.rules %{_udevdir}/rules.d/40-usb_modeswitch.rules
%changelog %changelog