]> git.pld-linux.org Git - packages/usb-modeswitch.git/blob - usb-modeswitch.spec
a5f796581bd6c957c1e17ed5b919f01ad85a04c9
[packages/usb-modeswitch.git] / usb-modeswitch.spec
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
3 Name:           usb-modeswitch
4 Version:        1.2.4
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://www.draisberghof.de/usb_modeswitch/%{name}-%{version}.tar.bz2
9 # Source0-md5:  dbd4ce7966d7b4a5a0604a8280f7164d
10 Patch0:         %{name}-makefile.patch
11 URL:            http://www.draisberghof.de/usb_modeswitch/
12 BuildRequires:  libusb-compat-devel >= 0.1
13 Requires:       tcl >= 8.4
14 Suggests:       usb-modeswitch-data
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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,
23 ZTE, Novatel.
24
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.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36
37 %build
38 %{__make} \
39         CC="%{__cc}" \
40         CFLAGS="%{rpmcflags}" \
41         CPPFLAGS="%{rpmcppflags}" \
42         LDFLAGS="%{rpmldflags}"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc ChangeLog README
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
This page took 0.10729 seconds and 2 git commands to generate.