1
0

Accepting request 128520 from home:javierllorente:branches:hardware

Update data package to 20120531, add Alcatel OT-X220D support

OBS-URL: https://build.opensuse.org/request/show/128520
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=34
This commit is contained in:
Andreas Jaeger 2012-07-21 06:39:19 +00:00 committed by Git OBS Bridge
parent 216047d93a
commit 95ac519fc3
6 changed files with 33 additions and 4 deletions

7
1bbb:f017 Normal file
View File

@ -0,0 +1,7 @@
# Alcatel OT-X220D
TargetVendor= 0x1bbb
TargetProduct=0x0017
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"

View File

@ -0,0 +1,12 @@
--- usb-modeswitch-data-20120531/40-usb_modeswitch.rules.orig 2012-07-21 01:41:58.881830000 +0200
+++ usb-modeswitch-data-20120531/40-usb_modeswitch.rules 2012-07-21 01:44:12.596825115 +0200
@@ -626,6 +626,9 @@
# Alcatel X200/X200L/X060S
ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"
+# Alcatel OT X220D
+ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="f017", RUN+="usb_modeswitch '%b/%k'"
+
# Alcatel OT X220L
ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="f052", RUN+="usb_modeswitch '%b/%k'"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bce6b8cbbf293fe519584b63815fe7f665e8238e6e138151d8cf7cc85a7a7b0f
size 19551

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eed06c3b8d93e69dc708e20d4c621c52e9e9a6325df87cc627c3ef4608b206a9
size 20390

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 20 23:59:34 UTC 2012 - javier@opensuse.org
- Update data package to 20120531
- Add Alcatel OT-X220D support
-------------------------------------------------------------------
Sun Apr 1 11:04:59 UTC 2012 - gankov@opensuse.org

View File

@ -24,11 +24,13 @@ Summary: A mode switching tool for controlling multiple-device USB gear
Group: Hardware/Mobile
Url: http://www.draisberghof.de/usb_modeswitch
%define source_name usb-modeswitch
%define date 20120120
%define date 20120531
License: GPL-2.0+
Source0: http://www.draisberghof.de/usb_modeswitch/%{source_name}-%{version}.tar.bz2
Source1: %{source_name}-data-%{date}.tar.bz2
Source2: %{name}-data.rpmlintrc
Source3: 1bbb:f017
Patch0: add_alcatel_ot_x220d.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libusb-devel
BuildRequires: tcl
@ -62,6 +64,7 @@ Data files for usb_modeswitch package.
%prep
%setup -q -a1 -n %{source_name}-%{version}
%patch0
%build
CFLAGS="%{optflags}" make
@ -69,6 +72,7 @@ CFLAGS="%{optflags}" make
%install
%makeinstall
cd %{source_name}-data-%{date}
cp %{SOURCE3} .
%makeinstall
%fdupes -s $RPM_BUILD_ROOT