120 Star 0 Fork 5

src-openEuler / usb_modeswitch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
usb_modeswitch.spec 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-11-19 11:57 . Package init
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
1
https://gitee.com/src-openeuler/usb_modeswitch.git
git@gitee.com:src-openeuler/usb_modeswitch.git
src-openeuler
usb_modeswitch
usb_modeswitch
openEuler-22.03-LTS

搜索帮助