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

Revision 10626, 3.1 KB checked in by tomop, 8 years ago (diff)

usb-modeswitch-2.4.0-1

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