usb-modeswitch-vl.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Name: usb-modeswitch
  2. Version: 1.1.2
  3. Release: 1%{?_dist_release}
  4. Summary: USB Modeswitch gets 4G cards in operational mode
  5. Summary(ja): USB Modeswitch は 4G カードのモード変更ツールです
  6. Group: Applications/System
  7. License: GPLv2+
  8. URL: http://www.draisberghof.de/usb_modeswitch/
  9. Source0: http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
  10. Patch0: usb-modeswitch-dir.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: libusb-devel
  13. Obsoletes: usb_modeswitch < 1.1.2
  14. Provides: usb_modeswitch = %{version}-%{release}
  15. Requires: usb-modeswitch-data
  16. Requires: tcl
  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. %prep
  24. %setup -q
  25. %patch0 -p1 -b .dir
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  31. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
  32. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  33. mkdir -p $RPM_BUILD_ROOT/lib/udev/
  34. install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/
  35. install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
  36. gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1
  37. install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc COPYING README* ChangeLog
  43. %{_bindir}/usb_modeswitch
  44. %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
  45. /lib/udev/usb_modeswitch
  46. %{_mandir}/man1/usb_modeswitch.1.gz
  47. %changelog
  48. * Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2-1
  49. - new upstream release
  50. * Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
  51. - initial build for Vine Linux
  52. * Thu Sep 17 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.5-1
  53. - new upstream 1.0.5 release
  54. * Sun Aug 02 2009 Robert M. Albrecht <fedora@romal.de> 1.0.2-1
  55. - new upstream release
  56. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-3
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  58. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  60. * Sun Jan 11 2009 Robert M. Albrecht <fedora@romal.de> 0.9.6-1
  61. * new upstream release
  62. * Sat Dec 13 2008 Robert M. Albrecht <fedora@romal.de> 0.9.5-1
  63. * new upstream release
  64. * Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-2
  65. - Fixed some rpmlint errors
  66. - Added german translation
  67. * Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-1
  68. - Update to 0.9.4
  69. - Honor RPM_OPT_FLAGS
  70. * Sat May 26 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-0.1.beta2
  71. - First package Release