usb-modeswitch-vl.spec 3.1 KB

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