2010-05-19 21:15:00 +02:00
|
|
|
#
|
2012-10-24 18:13:34 +02:00
|
|
|
# spec file for package usb_modeswitch
|
2010-05-19 21:15:00 +02:00
|
|
|
#
|
2017-02-02 09:43:05 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-19 21:15:00 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-07-24 16:51:44 +02:00
|
|
|
|
|
|
|
%define source_name usb-modeswitch
|
Accepting request 518243 from home:enzokiel:branches:hardware
- Update to version 2.5.1
* New parameter "HuaweiAltMode", uses an alternative Huawei
standard bulk message which will either provide NCM
(newer modems) or plain PPP ports (older modems).
* New option in the global configuration file
"HuaweiAltModeGlobal", allowing easy override of
"HuwaeiNewMode" with "HuaweiAltMode".
* Reworked USB configuration switching, configuring a device
reset first before setting the target configuration.
* Improved driver detachment, now taking all configured
interfaces into account.
- Update usb-modeswitch-data package to version 20170806
* Added devices: [03f0:371d] HP un2430, [03f0:4b1d] HP hs2434,
[03f0:4e1d] HP lt4111, [03f0:a31d] HP lt4132,
[0846:0fff] Netgear AirCard 779S,
[12d1:15ec] Vodafone/Huawei K5150.
* Corrected/amended configs: [0922:1003] Dymo LabelManager 420P,
[0922:1007] Dymo LabelManager Wireless PnP,
[1199:0fff] Sierra devices.
* Removed configs: [1004:61aa] LG VL600.
- Updated file device_reference.txt.
- Added file parameter_reference.txt
OBS-URL: https://build.opensuse.org/request/show/518243
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=76
2017-08-23 14:23:28 +02:00
|
|
|
%define date 20170806
|
2015-07-24 16:51:44 +02:00
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
2010-05-19 21:15:00 +02:00
|
|
|
Name: usb_modeswitch
|
Accepting request 518243 from home:enzokiel:branches:hardware
- Update to version 2.5.1
* New parameter "HuaweiAltMode", uses an alternative Huawei
standard bulk message which will either provide NCM
(newer modems) or plain PPP ports (older modems).
* New option in the global configuration file
"HuaweiAltModeGlobal", allowing easy override of
"HuwaeiNewMode" with "HuaweiAltMode".
* Reworked USB configuration switching, configuring a device
reset first before setting the target configuration.
* Improved driver detachment, now taking all configured
interfaces into account.
- Update usb-modeswitch-data package to version 20170806
* Added devices: [03f0:371d] HP un2430, [03f0:4b1d] HP hs2434,
[03f0:4e1d] HP lt4111, [03f0:a31d] HP lt4132,
[0846:0fff] Netgear AirCard 779S,
[12d1:15ec] Vodafone/Huawei K5150.
* Corrected/amended configs: [0922:1003] Dymo LabelManager 420P,
[0922:1007] Dymo LabelManager Wireless PnP,
[1199:0fff] Sierra devices.
* Removed configs: [1004:61aa] LG VL600.
- Updated file device_reference.txt.
- Added file parameter_reference.txt
OBS-URL: https://build.opensuse.org/request/show/518243
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=76
2017-08-23 14:23:28 +02:00
|
|
|
Version: 2.5.1
|
2012-04-01 20:40:43 +02:00
|
|
|
Release: 0
|
2010-05-19 21:15:00 +02:00
|
|
|
Summary: A mode switching tool for controlling multiple-device USB gear
|
2012-10-24 18:13:34 +02:00
|
|
|
License: GPL-2.0+
|
2010-05-19 21:15:00 +02:00
|
|
|
Group: Hardware/Mobile
|
2011-01-10 15:14:58 +01:00
|
|
|
Url: http://www.draisberghof.de/usb_modeswitch
|
2010-05-19 21:15:00 +02:00
|
|
|
Source0: http://www.draisberghof.de/usb_modeswitch/%{source_name}-%{version}.tar.bz2
|
2013-05-16 13:59:51 +02:00
|
|
|
Source1: http://www.draisberghof.de/usb_modeswitch/%{source_name}-data-%{date}.tar.bz2
|
|
|
|
Source2: http://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
Accepting request 518243 from home:enzokiel:branches:hardware
- Update to version 2.5.1
* New parameter "HuaweiAltMode", uses an alternative Huawei
standard bulk message which will either provide NCM
(newer modems) or plain PPP ports (older modems).
* New option in the global configuration file
"HuaweiAltModeGlobal", allowing easy override of
"HuwaeiNewMode" with "HuaweiAltMode".
* Reworked USB configuration switching, configuring a device
reset first before setting the target configuration.
* Improved driver detachment, now taking all configured
interfaces into account.
- Update usb-modeswitch-data package to version 20170806
* Added devices: [03f0:371d] HP un2430, [03f0:4b1d] HP hs2434,
[03f0:4e1d] HP lt4111, [03f0:a31d] HP lt4132,
[0846:0fff] Netgear AirCard 779S,
[12d1:15ec] Vodafone/Huawei K5150.
* Corrected/amended configs: [0922:1003] Dymo LabelManager 420P,
[0922:1007] Dymo LabelManager Wireless PnP,
[1199:0fff] Sierra devices.
* Removed configs: [1004:61aa] LG VL600.
- Updated file device_reference.txt.
- Added file parameter_reference.txt
OBS-URL: https://build.opensuse.org/request/show/518243
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=76
2017-08-23 14:23:28 +02:00
|
|
|
Source3: http://www.draisberghof.de/usb_modeswitch/parameter_reference.txt
|
2015-03-25 11:20:42 +01:00
|
|
|
Patch1: usb_modeswitch-fix_fsf_address.patch
|
2012-04-01 20:40:43 +02:00
|
|
|
BuildRequires: fdupes
|
2015-03-25 11:20:42 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-10-24 18:13:34 +02:00
|
|
|
BuildRequires: tcl
|
2015-03-25 11:20:42 +01:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2015-07-24 16:51:44 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2016-11-28 09:06:17 +01:00
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
2011-05-10 15:41:08 +02:00
|
|
|
Requires: tcl >= 8.4
|
2015-07-24 16:51:44 +02:00
|
|
|
Requires: usb_modeswitch-data = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-04-26 13:25:57 +02:00
|
|
|
|
2010-05-19 21:15:00 +02:00
|
|
|
%description
|
|
|
|
USB_ModeSwitch is a mode switching tool for controlling "flip flop"
|
|
|
|
(multiple device) USB gear. It allows so-called "Zero-CD" devices that
|
|
|
|
show up as USB storage initially to be switched into their more useful
|
|
|
|
"application mode". This is most common for UMTS/3G wireless WAN
|
|
|
|
devices.
|
|
|
|
|
2015-07-24 16:51:44 +02:00
|
|
|
%package data
|
2010-05-19 21:15:00 +02:00
|
|
|
Summary: Data Files for USB Modeswitch
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2015-07-24 16:51:44 +02:00
|
|
|
%description data
|
2010-05-19 21:15:00 +02:00
|
|
|
Data files for usb_modeswitch package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a1 -n %{source_name}-%{version}
|
2015-03-25 11:20:42 +01:00
|
|
|
%patch1
|
2010-05-19 21:15:00 +02:00
|
|
|
|
2013-05-16 13:59:51 +02:00
|
|
|
cp %{SOURCE2} .
|
Accepting request 518243 from home:enzokiel:branches:hardware
- Update to version 2.5.1
* New parameter "HuaweiAltMode", uses an alternative Huawei
standard bulk message which will either provide NCM
(newer modems) or plain PPP ports (older modems).
* New option in the global configuration file
"HuaweiAltModeGlobal", allowing easy override of
"HuwaeiNewMode" with "HuaweiAltMode".
* Reworked USB configuration switching, configuring a device
reset first before setting the target configuration.
* Improved driver detachment, now taking all configured
interfaces into account.
- Update usb-modeswitch-data package to version 20170806
* Added devices: [03f0:371d] HP un2430, [03f0:4b1d] HP hs2434,
[03f0:4e1d] HP lt4111, [03f0:a31d] HP lt4132,
[0846:0fff] Netgear AirCard 779S,
[12d1:15ec] Vodafone/Huawei K5150.
* Corrected/amended configs: [0922:1003] Dymo LabelManager 420P,
[0922:1007] Dymo LabelManager Wireless PnP,
[1199:0fff] Sierra devices.
* Removed configs: [1004:61aa] LG VL600.
- Updated file device_reference.txt.
- Added file parameter_reference.txt
OBS-URL: https://build.opensuse.org/request/show/518243
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=76
2017-08-23 14:23:28 +02:00
|
|
|
cp %{SOURCE3} .
|
2013-05-16 13:59:51 +02:00
|
|
|
|
2010-05-19 21:15:00 +02:00
|
|
|
%build
|
2010-08-23 16:27:15 +02:00
|
|
|
CFLAGS="%{optflags}" make
|
2010-05-19 21:15:00 +02:00
|
|
|
|
|
|
|
%install
|
2016-09-14 18:41:56 +02:00
|
|
|
# The install target recreates usb_modeswitch_dispatcher, which is racy in respect to its
|
|
|
|
# installation. install-common just uses the file from the build phase. boo#998641
|
|
|
|
make DESTDIR=%{buildroot} install-common %{?_smp_mflags} UDEVDIR=%{buildroot}%{_udevdir}
|
2016-11-28 09:06:17 +01:00
|
|
|
install -Dm 444 usb_modeswitch@.service %{buildroot}%{_unitdir}/usb_modeswitch@.service
|
2016-09-14 18:41:56 +02:00
|
|
|
|
2010-07-19 21:24:30 +02:00
|
|
|
cd %{source_name}-data-%{date}
|
2015-07-24 16:51:44 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} RULESDIR=%{buildroot}%{_udevdir}/rules.d
|
2014-10-11 12:07:45 +02:00
|
|
|
|
2015-07-24 16:51:44 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2010-05-19 21:15:00 +02:00
|
|
|
|
2016-08-24 08:07:40 +02:00
|
|
|
%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
|
|
|
|
|
2010-05-19 21:15:00 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
Accepting request 518243 from home:enzokiel:branches:hardware
- Update to version 2.5.1
* New parameter "HuaweiAltMode", uses an alternative Huawei
standard bulk message which will either provide NCM
(newer modems) or plain PPP ports (older modems).
* New option in the global configuration file
"HuaweiAltModeGlobal", allowing easy override of
"HuwaeiNewMode" with "HuaweiAltMode".
* Reworked USB configuration switching, configuring a device
reset first before setting the target configuration.
* Improved driver detachment, now taking all configured
interfaces into account.
- Update usb-modeswitch-data package to version 20170806
* Added devices: [03f0:371d] HP un2430, [03f0:4b1d] HP hs2434,
[03f0:4e1d] HP lt4111, [03f0:a31d] HP lt4132,
[0846:0fff] Netgear AirCard 779S,
[12d1:15ec] Vodafone/Huawei K5150.
* Corrected/amended configs: [0922:1003] Dymo LabelManager 420P,
[0922:1007] Dymo LabelManager Wireless PnP,
[1199:0fff] Sierra devices.
* Removed configs: [1004:61aa] LG VL600.
- Updated file device_reference.txt.
- Added file parameter_reference.txt
OBS-URL: https://build.opensuse.org/request/show/518243
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=76
2017-08-23 14:23:28 +02:00
|
|
|
%doc README COPYING device_reference.txt parameter_reference.txt
|
2010-05-19 21:15:00 +02:00
|
|
|
%{_sbindir}/usb_modeswitch
|
2010-08-23 16:27:15 +02:00
|
|
|
%{_sbindir}/usb_modeswitch_dispatcher
|
2012-10-24 18:13:34 +02:00
|
|
|
%{_udevdir}/usb_modeswitch
|
2016-08-24 08:07:40 +02:00
|
|
|
%{_unitdir}/usb_modeswitch@.service
|
2015-07-24 16:51:44 +02:00
|
|
|
%{_localstatedir}/lib/usb_modeswitch
|
2010-05-19 21:15:00 +02:00
|
|
|
%config %{_sysconfdir}/usb_modeswitch.conf
|
|
|
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
2014-05-26 14:02:10 +02:00
|
|
|
%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz
|
2010-05-19 21:15:00 +02:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-,root,root,-)
|
2014-10-11 12:07:45 +02:00
|
|
|
%{_datadir}/usb_modeswitch/
|
2012-10-24 18:13:34 +02:00
|
|
|
%{_udevdir}/rules.d/40-usb_modeswitch.rules
|
2010-05-19 21:15:00 +02:00
|
|
|
|
|
|
|
%changelog
|