diff --git a/1bbb:f017 b/1bbb:f017 new file mode 100644 index 0000000..63d4c8a --- /dev/null +++ b/1bbb:f017 @@ -0,0 +1,7 @@ +# Alcatel OT-X220D + +TargetVendor= 0x1bbb +TargetProduct=0x0017 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + diff --git a/add_alcatel_ot_x220d.patch b/add_alcatel_ot_x220d.patch new file mode 100644 index 0000000..918b022 --- /dev/null +++ b/add_alcatel_ot_x220d.patch @@ -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'" + diff --git a/usb-modeswitch-data-20120120.tar.bz2 b/usb-modeswitch-data-20120120.tar.bz2 deleted file mode 100644 index 08cb1b7..0000000 --- a/usb-modeswitch-data-20120120.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bce6b8cbbf293fe519584b63815fe7f665e8238e6e138151d8cf7cc85a7a7b0f -size 19551 diff --git a/usb-modeswitch-data-20120531.tar.bz2 b/usb-modeswitch-data-20120531.tar.bz2 new file mode 100644 index 0000000..ed3f1dc --- /dev/null +++ b/usb-modeswitch-data-20120531.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eed06c3b8d93e69dc708e20d4c621c52e9e9a6325df87cc627c3ef4608b206a9 +size 20390 diff --git a/usb_modeswitch.changes b/usb_modeswitch.changes index 8b0c3eb..e8e59a1 100644 --- a/usb_modeswitch.changes +++ b/usb_modeswitch.changes @@ -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 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index b31f174..262df7d 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -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