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

Revision 878, 3.0 KB checked in by daisuke, 11 years ago (diff)

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

Line 
1Name:           usb-modeswitch
2Version:        1.1.2
3Release:        1%{?_dist_release}
4Summary:        USB Modeswitch gets 4G cards in operational mode
5Summary(ja):    USB Modeswitch は 4G カードのモード変更ツールです
6Group:          Applications/System
7License:        GPLv2+
8URL:            http://www.draisberghof.de/usb_modeswitch/
9
10Source0:        http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
11Patch0:         usb-modeswitch-dir.patch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
14BuildRequires:  libusb-devel
15Obsoletes:      usb_modeswitch < 1.1.2
16Provides:       usb_modeswitch = %{version}-%{release}
17Requires:       usb-modeswitch-data
18Requires:       tcl
19
20%description
21USB Modeswitch brings up your datacard into operational mode. When plugged
22in they identify themselves as cdrom and present some non-Linux compatible
23installation files. This tool deactivates this cdrom-devices and enables
24the real communication device. It supports most devices built and
25sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
26
27%prep
28%setup -q
29%patch0 -p1 -b .dir
30
31%build
32CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
33
34%install
35rm -rf $RPM_BUILD_ROOT
36
37mkdir -p $RPM_BUILD_ROOT%{_bindir}
38mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
39mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
40mkdir -p $RPM_BUILD_ROOT/lib/udev/
41
42install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/
43install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
44gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1
45install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
46
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(-,root,root,-)
53%doc COPYING README* ChangeLog
54%{_bindir}/usb_modeswitch
55%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
56/lib/udev/usb_modeswitch
57%{_mandir}/man1/usb_modeswitch.1.gz
58
59%changelog
60* Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2-1
61- new upstream release
62
63* Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp>  1.0.5-1
64- initial build for Vine Linux
65
66* Thu Sep 17 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.5-1
67- new upstream 1.0.5 release
68
69* Sun Aug 02 2009 Robert M. Albrecht <fedora@romal.de> 1.0.2-1
70- new upstream release
71
72* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-3
73- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
74
75* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
76- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
77
78* Sun Jan 11 2009 Robert M. Albrecht <fedora@romal.de> 0.9.6-1
79* new upstream release
80
81* Sat Dec 13 2008 Robert M. Albrecht <fedora@romal.de> 0.9.5-1
82* new upstream release
83
84* Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-2
85- Fixed some rpmlint errors
86- Added german translation
87
88* Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-1
89- Update to 0.9.4
90- Honor RPM_OPT_FLAGS
91 
92* Sat May 26 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-0.1.beta2
93- First package Release
94
Note: See TracBrowser for help on using the repository browser.