usb-modeswitch-data-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Name: usb-modeswitch-data
  2. Version: 20100418
  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. Source0: http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
  9. BuildArch: noarch
  10. Requires: udev
  11. Requires: usb-modeswitch >= 1.1.2
  12. %description
  13. USB Modeswitch brings up your datacard into operational mode. When plugged
  14. in they identify themselves as cdrom and present some non-Linux compatible
  15. installation files. This tool deactivates this cdrom-devices and enables
  16. the real communication device. It supports most devices built and
  17. sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
  18. This package contains the data files needed for usb_modeswitch to function.
  19. %prep
  20. %setup -q -n %{name}-%{version}
  21. %install
  22. rm -rf $RPM_BUILD_ROOT
  23. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
  24. mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
  25. install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
  26. install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d
  27. %clean
  28. rm -rf $RPM_BUILD_ROOT
  29. %post
  30. udevadm control --reload-rules
  31. %postun
  32. udevadm control --reload-rules
  33. %files
  34. %defattr(-,root,root,-)
  35. %doc ChangeLog COPYING README
  36. /lib/udev/rules.d/40-usb_modeswitch.rules
  37. %{_sysconfdir}/usb_modeswitch.d/
  38. %changelog
  39. * Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100418-1
  40. - initial build for Vine Linux
  41. * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-2
  42. - Remove buildroot, make package noarch
  43. * Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-1
  44. - First build