1 Summary: Switching tool for controlling "flip flop" USB devices
2 Summary(pl.UTF-8): Narzędzie do sterowania przełączającymi się urządzeniami USB
7 Group: Applications/System
8 Source0: http://www.draisberghof.de/usb_modeswitch/%{name}-%{version}.tar.bz2
9 # Source0-md5: c393603908eceab95444c5bde790f6f0
10 Patch0: %{name}-makefile.patch
11 URL: http://www.draisberghof.de/usb_modeswitch/
12 BuildRequires: libusb-compat-devel >= 0.1
14 Suggests: usb-modeswitch-data
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 USB Modeswitch brings up your datacard into operational mode. When
19 plugged in they identify themselves as CD-ROM and present some
20 non-Linux compatible installation files. This tool deactivates this
21 cdrom-devices and enables the real communication device. It supports
22 most devices built and sold by Huawei, T-Mobile, Vodafone, Option,
25 %description -l pl.UTF-8
26 USB Modeswitch potrafi przełączyć pewne urządzenia komunikacyjne w
27 tryb operacyjny. Takie urządzenia po podłączeniu identyfikują się jako
28 CD-ROM i oferują jedynie niezgodne z Linuksem pliki instalacyjne. To
29 narzędzie wyłącza emulację CD i włącza prawdziwe urządzenie
30 komunikacjne. Obsługuje większość urządzeń wytworzonych i oferowanych
31 przez firmy Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
40 CFLAGS="%{rpmcflags}" \
41 CPPFLAGS="%{rpmcppflags}" \
42 LDFLAGS="%{rpmldflags}"
45 rm -rf $RPM_BUILD_ROOT
48 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_sbindir}/usb_modeswitch
58 %attr(755,root,root) %{_sbindir}/usb_modeswitch_dispatcher
59 %attr(755,root,root) /lib/udev/usb_modeswitch
60 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/usb_modeswitch.conf
61 %{_mandir}/man1/usb_modeswitch.1*
62 %dir /var/lib/usb_modeswitch