| 1 | Name: usb-modeswitch-data |
|---|
| 2 | Version: 20160612 |
|---|
| 3 | Release: 1%{?_dist_release} |
|---|
| 4 | Summary: USB Modeswitch gets 4G cards in operational mode |
|---|
| 5 | Group: Applications/System |
|---|
| 6 | License: GPLv2+ |
|---|
| 7 | URL: http://www.draisberghof.de/usb_modeswitch/ |
|---|
| 8 | |
|---|
| 9 | Vendor: Project Vine |
|---|
| 10 | Distribution: Vine Linux |
|---|
| 11 | |
|---|
| 12 | Source0: http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2 |
|---|
| 13 | BuildArch: noarch |
|---|
| 14 | Requires: udev |
|---|
| 15 | Requires: usb-modeswitch >= 1.1.2 |
|---|
| 16 | |
|---|
| 17 | %description |
|---|
| 18 | USB Modeswitch brings up your datacard into operational mode. When plugged |
|---|
| 19 | in they identify themselves as cdrom and present some non-Linux compatible |
|---|
| 20 | installation files. This tool deactivates this cdrom-devices and enables |
|---|
| 21 | the real communication device. It supports most devices built and |
|---|
| 22 | sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel. |
|---|
| 23 | |
|---|
| 24 | This package contains the data files needed for usb_modeswitch to function. |
|---|
| 25 | |
|---|
| 26 | %prep |
|---|
| 27 | %setup -q -n %{name}-%{version} |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | %install |
|---|
| 31 | rm -rf $RPM_BUILD_ROOT |
|---|
| 32 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/ |
|---|
| 33 | mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/ |
|---|
| 34 | |
|---|
| 35 | install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/ |
|---|
| 36 | install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d |
|---|
| 37 | |
|---|
| 38 | %clean |
|---|
| 39 | rm -rf $RPM_BUILD_ROOT |
|---|
| 40 | |
|---|
| 41 | %post |
|---|
| 42 | udevadm control --reload ||: |
|---|
| 43 | |
|---|
| 44 | %postun |
|---|
| 45 | udevadm control --reload ||: |
|---|
| 46 | |
|---|
| 47 | %files |
|---|
| 48 | %defattr(-,root,root,-) |
|---|
| 49 | %license COPYING |
|---|
| 50 | %doc ChangeLog README |
|---|
| 51 | /lib/udev/rules.d/40-usb_modeswitch.rules |
|---|
| 52 | %{_sysconfdir}/usb_modeswitch.d/ |
|---|
| 53 | |
|---|
| 54 | %changelog |
|---|
| 55 | * Sat Jul 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20160612-1 |
|---|
| 56 | - new upstream release. |
|---|
| 57 | |
|---|
| 58 | * Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100418-1 |
|---|
| 59 | - initial build for Vine Linux |
|---|
| 60 | |
|---|
| 61 | * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-2 |
|---|
| 62 | - Remove buildroot, make package noarch |
|---|
| 63 | |
|---|
| 64 | * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-1 |
|---|
| 65 | - First build |
|---|