usb-modeswitch-data-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Name: usb-modeswitch-data
  2. Version: 20160612
  3. Release: 1%{?_dist_release}
  4. Summary: USB Modeswitch gets 4G cards in operational mode
  5. Group: Applications/System
  6. License: GPLv2+
  7. URL: http://www.draisberghof.de/usb_modeswitch/
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. Source0: http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
  11. BuildArch: noarch
  12. Requires: udev
  13. Requires: usb-modeswitch >= 1.1.2
  14. %description
  15. USB Modeswitch brings up your datacard into operational mode. When plugged
  16. in they identify themselves as cdrom and present some non-Linux compatible
  17. installation files. This tool deactivates this cdrom-devices and enables
  18. the real communication device. It supports most devices built and
  19. sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
  20. This package contains the data files needed for usb_modeswitch to function.
  21. %prep
  22. %setup -q -n %{name}-%{version}
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
  26. mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
  27. install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
  28. install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %post
  32. udevadm control --reload ||:
  33. %postun
  34. udevadm control --reload ||:
  35. %files
  36. %defattr(-,root,root,-)
  37. %license COPYING
  38. %doc ChangeLog README
  39. /lib/udev/rules.d/40-usb_modeswitch.rules
  40. %{_sysconfdir}/usb_modeswitch.d/
  41. %changelog
  42. * Sat Jul 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20160612-1
  43. - new upstream release.
  44. * Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100418-1
  45. - initial build for Vine Linux
  46. * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-2
  47. - Remove buildroot, make package noarch
  48. * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-1
  49. - First build