source: projects/specs/trunk/u/usb-modeswitch-data/usb-modeswitch-data-vl.spec @ 878

Revision 878, 1.7 KB checked in by daisuke, 12 years ago (diff)

NEW: usb-modeswitch: initial build, 1.1.2
NEW: usb-modeswitch-data: initial build, 20100418

Line 
1Name:           usb-modeswitch-data
2Version:        20100418
3Release:        1%{?_dist_release}
4Summary:        USB Modeswitch gets 4G cards in operational mode
5Group:          Applications/System
6License:        GPLv2+
7URL:            http://www.draisberghof.de/usb_modeswitch/
8Source0:        http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
9BuildArch:      noarch
10Requires:       udev
11Requires:       usb-modeswitch >= 1.1.2
12
13%description
14USB Modeswitch brings up your datacard into operational mode. When plugged
15in they identify themselves as cdrom and present some non-Linux compatible
16installation files. This tool deactivates this cdrom-devices and enables
17the real communication device. It supports most devices built and
18sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
19
20This package contains the data files needed for usb_modeswitch to function.
21
22%prep
23%setup -q -n %{name}-%{version}
24
25
26%install
27rm -rf $RPM_BUILD_ROOT
28mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
29mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
30
31install -p -m 644  usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
32install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d
33
34%clean
35rm -rf $RPM_BUILD_ROOT
36
37%post
38udevadm control --reload-rules
39
40%postun
41udevadm 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
Note: See TracBrowser for help on using the repository browser.