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