2024-01-05 18:51:09 +01:00
|
|
|
Name: usb-modeswitch
|
2025-02-20 22:40:50 +01:00
|
|
|
Version: 2.6.2
|
2024-01-05 18:51:09 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: USB-ModeSwitch is a mode switching tool for controlling "flip flop" (multiple device) USB gear
|
|
|
|
Group: Applications/Networking
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
|
2024-01-05 18:51:10 +01:00
|
|
|
URL: https://www.draisberghof.de/usb_modeswitch/
|
2024-01-05 18:51:09 +01:00
|
|
|
Source: http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-%{version}.tar.bz2
|
|
|
|
Patch0: %{name}-1.1.9-dispatcher_fix_usb_coldplug.patch
|
|
|
|
Patch1: usb-modeswitch-2.0.1-systemctl_path.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2025-02-20 22:40:50 +01:00
|
|
|
BuildRequires: libusb-devel
|
2024-01-05 18:51:09 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: systemd-core
|
|
|
|
Provides: usb_modeswitch
|
|
|
|
Obsoletes: usb_modeswitch
|
|
|
|
Requires: usb-modeswitch-data
|
|
|
|
|
|
|
|
%description
|
|
|
|
USB-ModeSwitch is a mode switching tool for controlling "flip flop" (multiple device) USB gear, like some usb 3G Modems.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make CC=%{_host}-gcc
|
|
|
|
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}{%{_mandir}/man1,/lib/udev,%{_sysconfdir}}
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# don't install in /lib/systemd
|
|
|
|
install -D -m0644 usb_modeswitch@.service %{buildroot}%{_sysconfdir}/systemd/system/usb_modeswitch@.service
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/usb_modeswitch.conf
|
|
|
|
%{_sysconfdir}/systemd/system/usb_modeswitch@.service
|
|
|
|
%{_sbindir}/usb_modeswitch
|
|
|
|
%{_sbindir}/usb_modeswitch_dispatcher
|
|
|
|
/lib/udev/usb_modeswitch
|
|
|
|
%{_mandir}/man1/usb_modeswitch.1*
|
|
|
|
%{_mandir}/man1/usb_modeswitch_dispatcher.1*
|
|
|
|
%dir %{_localstatedir}/lib/usb_modeswitch
|
|
|
|
|
|
|
|
%changelog
|
2025-02-20 22:40:50 +01:00
|
|
|
* Thu Feb 20 2025 Automatic Build System <autodist@openmamba.org> 2.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:10 +01:00
|
|
|
* Tue Feb 23 2021 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Mon May 04 2020 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Sun Dec 03 2017 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Wed Feb 04 2015 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Fri May 30 2014 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:51:09 +01:00
|
|
|
* Wed Feb 26 2014 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Sep 12 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-2mamba
|
|
|
|
- rebuilt with systemd support
|
|
|
|
- provide /var/lib/usb_modeswitch directory
|
|
|
|
|
|
|
|
* Sun Sep 08 2013 Automatic Build System <autodist@mambasoft.it> 2.0.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 09 2013 Automatic Build System <autodist@mambasoft.it> 1.2.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 03 2013 Automatic Build System <autodist@mambasoft.it> 1.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 13 2012 Automatic Build System <autodist@mambasoft.it> 1.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Aug 23 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.4-1mamba
|
|
|
|
- update to 1.2.4
|
|
|
|
|
|
|
|
* Fri May 18 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-1mamba
|
|
|
|
- update to 1.2.3
|
|
|
|
|
|
|
|
* Wed Sep 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.9-2mamba
|
|
|
|
- made a patch to usb_modeswitch_dispatcher that tries to find sysfs directory using kernel name if bus id fails (what happens at boot)
|
|
|
|
|
|
|
|
* Mon Aug 08 2011 Automatic Build System <autodist@mambasoft.it> 1.1.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Mar 05 2011 Automatic Build System <autodist@mambasoft.it> 1.1.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Dec 23 2010 Automatic Build System <autodist@mambasoft.it> 1.1.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 06 2010 Automatic Build System <autodist@mambasoft.it> 1.1.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 21 2010 Automatic Build System <autodist@mambasoft.it> 1.1.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 1.1.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 19 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-1mamba
|
|
|
|
- update to 1.1.2
|
|
|
|
|
|
|
|
* Sat Oct 31 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.0.5-2mamba
|
|
|
|
- rebuild adding the udev rules
|
|
|
|
* Thu Oct 15 2009 Automatic Build System <autodist@mambasoft.it> 1.0.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Aug 24 2009 Automatic Build System <autodist@mambasoft.it> 1.0.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 01 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.0.2-1mamba
|
|
|
|
- package created by autospec
|