Package init
This commit is contained in:
commit
b53cdc9296
74
0000-device_reference-utf8.patch
Normal file
74
0000-device_reference-utf8.patch
Normal file
@ -0,0 +1,74 @@
|
||||
--- device_reference.txt 2014-05-29 22:18:46.000000000 +0200
|
||||
+++ device_reference_utf8.txt 2014-11-24 20:51:17.647221466 +0100
|
||||
@@ -60,7 +60,7 @@
|
||||
########################################################
|
||||
# Option GlobeTrotter GT MAX 3.6 (aka "T-Mobile Web'n'walk Card Compact II")
|
||||
#
|
||||
-# Contributor: Bernd Holzmüller
|
||||
+# Contributor: Bernd Holzmüller
|
||||
|
||||
DefaultVendor= 0x05c6
|
||||
DefaultProduct= 0x1000
|
||||
@@ -279,7 +279,7 @@
|
||||
#
|
||||
# Probably works with DetachStorageOnly too
|
||||
#
|
||||
-# Contributor: Flávio Moringa and others
|
||||
+# Contributor: Flávio Moringa and others
|
||||
|
||||
DefaultVendor= 0x19d2
|
||||
DefaultProduct= 0x2000
|
||||
@@ -777,7 +777,7 @@
|
||||
#
|
||||
# Recommended init command: ATE0V1&D2&C1S0=0
|
||||
#
|
||||
-# Contributor: Jérôme Oufella
|
||||
+# Contributor: Jérôme Oufella
|
||||
|
||||
DefaultVendor= 0x1004
|
||||
DefaultProduct= 0x1000
|
||||
@@ -1336,7 +1336,7 @@
|
||||
########################################################
|
||||
# LG HDM-2100 (EVDO Rev.A USB modem)
|
||||
#
|
||||
-# Contributor: Jérôme Oufella
|
||||
+# Contributor: Jérôme Oufella
|
||||
|
||||
DefaultVendor= 0x1004
|
||||
DefaultProduct=0x607f
|
||||
@@ -1641,7 +1641,7 @@
|
||||
########################################################
|
||||
# Huawei U8110 / U8300 / Joy, Vodafone 845 (Android smartphone)
|
||||
#
|
||||
-# Contributor: David Erosa GarcÃÂa
|
||||
+# Contributor: David Erosa García
|
||||
|
||||
DefaultVendor= 0x12d1
|
||||
DefaultProduct=0x1031
|
||||
@@ -1658,7 +1658,7 @@
|
||||
########################################################
|
||||
# Nokia CS-10
|
||||
#
|
||||
-# Contributor: Wacław Sierek
|
||||
+# Contributor: Wacław Sierek
|
||||
|
||||
DefaultVendor= 0x0421
|
||||
DefaultProduct=0x060c
|
||||
@@ -1700,7 +1700,7 @@
|
||||
#######################################################
|
||||
# Samsung GT-B3730
|
||||
#
|
||||
-# Contributor: Per Øyvind Karlsen
|
||||
+# Contributor: Per Øyvind Karlsen
|
||||
|
||||
DefaultVendor= 0x04e8
|
||||
DefaultProduct=0x689a
|
||||
@@ -1771,7 +1771,7 @@
|
||||
#######################################################
|
||||
# Huawei EC168C (from Zantel)
|
||||
#
|
||||
-# Contributor: Ã…smund Hjulstad
|
||||
+# Contributor: Åsmund Hjulstad
|
||||
|
||||
DefaultVendor= 0x12d1
|
||||
DefaultProduct=0x1446
|
||||
26
0001-usb_modeswitch-count-the-target-devices-from-zero.patch
Normal file
26
0001-usb_modeswitch-count-the-target-devices-from-zero.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 99cade3624c432a478e624f278692cdedf4e0450 Mon Sep 17 00:00:00 2001
|
||||
From: Lubomir Rintel <lkundrak@v3.sk>
|
||||
Date: Fri, 18 Aug 2017 10:40:41 +0200
|
||||
Subject: [PATCH] usb_modeswitch: count the target devices from zero
|
||||
|
||||
Most likely a typo here.
|
||||
---
|
||||
usb_modeswitch.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/usb_modeswitch.c b/usb_modeswitch.c
|
||||
index 3239946..1b3bf9d 100644
|
||||
--- a/usb_modeswitch.c
|
||||
+++ b/usb_modeswitch.c
|
||||
@@ -1582,7 +1582,7 @@ int checkSuccess()
|
||||
* description is read for syslog message
|
||||
*/
|
||||
// Wait counter passed on from previous loop
|
||||
- for (i=i; i < CheckSuccess; i++) {
|
||||
+ for (i=0; i < CheckSuccess; i++) {
|
||||
SHOW_PROGRESS(output," Search for target devices ...\n");
|
||||
dev = search_devices(&newTargetCount, TargetVendor, TargetProductList,
|
||||
TargetClass, 0, SEARCH_TARGET);
|
||||
--
|
||||
2.14.3
|
||||
|
||||
3839
device_reference.txt
Normal file
3839
device_reference.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
usb-modeswitch-2.5.2.tar.bz2
Normal file
BIN
usb-modeswitch-2.5.2.tar.bz2
Normal file
Binary file not shown.
63
usb_modeswitch.spec
Normal file
63
usb_modeswitch.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Name: usb_modeswitch
|
||||
Version: 2.5.2
|
||||
Release: 4
|
||||
Summary: A mode switching tool for controlling multiple-device USB gear
|
||||
License: GPLv2+
|
||||
URL: http://www.draisberghof.de/usb_modeswitch/
|
||||
|
||||
Source0: http://www.draisberghof.de/%{name}/usb-modeswitch-%{version}.tar.bz2
|
||||
Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
||||
|
||||
Patch0: 0000-device_reference-utf8.patch
|
||||
Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch
|
||||
|
||||
BuildRequires: gcc libusbx-devel jimtcl-devel systemd
|
||||
Requires: usb_modeswitch-data >= 20121109 systemd
|
||||
|
||||
%description
|
||||
USB_ModeSwitch is (surprise!) a mode switching tool for controlling 'multi-mode' USB devices.
|
||||
|
||||
Many USB devices (primarily high-speed WAN modems) have their M$ Windoze drivers onboard;
|
||||
when plugged in for the first time they act like a flash storage and start installing the
|
||||
driver from there.
|
||||
|
||||
After installation (and on every consecutive plugging) the driver switches the mode
|
||||
internally, the storage device vanishes (in most cases), and a new device (like an USB
|
||||
modem) shows up. Modem maker "Option" called that feature "ZeroCD (TM)" since it eliminates
|
||||
the need for shipping a separate driver carrier.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%setup -q -n usb-modeswitch-%{version}
|
||||
cp -f %{SOURCE1} device_reference.txt
|
||||
|
||||
%patch0 -p0
|
||||
%patch1 -p1
|
||||
|
||||
|
||||
%build
|
||||
%{set_build_flags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
||||
%make_install SYSDIR=$RPM_BUILD_ROOT%{_unitdir} UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
||||
%{_sbindir}/usb_modeswitch
|
||||
%{_sbindir}/usb_modeswitch_dispatcher
|
||||
%{_prefix}/lib/udev/usb_modeswitch
|
||||
%{_unitdir}/usb_modeswitch@.service
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc README ChangeLog device_reference.txt
|
||||
%{_mandir}/man*/
|
||||
|
||||
%changelog
|
||||
* Sat Nov 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.5.2-4
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user