]> git.pld-linux.org Git - packages/usb-modeswitch.git/blob - usb-modeswitch.spec
Rediff patch.
[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:        2.6.0
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:  be73dcc84025794081a1d4d4e5a75e4c
10 Patch0:         %{name}-makefile.patch
11 URL:            http://www.draisberghof.de/usb_modeswitch/
12 BuildRequires:  libusb-devel >= 1.0
13 BuildRequires:  pkgconfig
14 Requires:       tcl >= 8.4
15 Suggests:       usb-modeswitch-data
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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,
24 ZTE, Novatel.
25
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.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37
38 %build
39 %{__make} \
40         CC="%{__cc}" \
41         CFLAGS="%{rpmcflags}" \
42         CPPFLAGS="%{rpmcppflags}" \
43         LDFLAGS="%{rpmldflags}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/etc/usb_modeswitch.d
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 install -D usb_modeswitch@.service $RPM_BUILD_ROOT%{systemdunitdir}/usb_modeswitch@.service
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc ChangeLog README
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
This page took 0.07114 seconds and 4 git commands to generate.