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: be73dcc84025794081a1d4d4e5a75e4c
10 Patch0: %{name}-makefile.patch
11 URL: http://www.draisberghof.de/usb_modeswitch/
12 BuildRequires: libusb-devel >= 1.0
13 BuildRequires: pkgconfig
15 Suggests: usb-modeswitch-data
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 USB Modeswitch brings up your datacard into operational mode. When
20 plugged in they identify themselves as CD-ROM and present some
21 non-Linux compatible installation files. This tool deactivates this
22 cdrom-devices and enables the real communication device. It supports
23 most devices built and sold by Huawei, T-Mobile, Vodafone, Option,
26 %description -l pl.UTF-8
27 USB Modeswitch potrafi przełączyć pewne urządzenia komunikacyjne w
28 tryb operacyjny. Takie urządzenia po podłączeniu identyfikują się jako
29 CD-ROM i oferują jedynie niezgodne z Linuksem pliki instalacyjne. To
30 narzędzie wyłącza emulację CD i włącza prawdziwe urządzenie
31 komunikacjne. Obsługuje większość urządzeń wytworzonych i oferowanych
32 przez firmy Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
41 CFLAGS="%{rpmcflags}" \
42 CPPFLAGS="%{rpmcppflags}" \
43 LDFLAGS="%{rpmldflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/etc/usb_modeswitch.d
50 DESTDIR=$RPM_BUILD_ROOT
52 install -D usb_modeswitch@.service $RPM_BUILD_ROOT%{systemdunitdir}/usb_modeswitch@.service
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_sbindir}/usb_modeswitch
61 %attr(755,root,root) %{_sbindir}/usb_modeswitch_dispatcher
62 %attr(755,root,root) /lib/udev/usb_modeswitch
63 %{systemdunitdir}/usb_modeswitch@.service
64 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/usb_modeswitch.conf
65 %{_mandir}/man1/usb_modeswitch.1*
66 %{_mandir}/man1/usb_modeswitch_dispatcher.1*
67 %dir /etc/usb_modeswitch.d
68 %dir /var/lib/usb_modeswitch