85 lines
2.5 KiB
RPMSpec
85 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package usb_modeswitch (Version 1.1.6)
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: usb_modeswitch
|
|
Version: 1.1.7
|
|
Release: 2
|
|
Summary: A mode switching tool for controlling multiple-device USB gear
|
|
Group: Hardware/Mobile
|
|
Url: http://www.draisberghof.de/usb_modeswitch
|
|
%define source_name usb-modeswitch
|
|
%define date 20110227
|
|
License: GPLv2+
|
|
Source0: http://www.draisberghof.de/usb_modeswitch/%{source_name}-%{version}.tar.bz2
|
|
Source1: %{source_name}-data-%{date}.tar.bz2
|
|
Source2: %{name}-data.rpmlintrc
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: libusb-devel udev
|
|
Requires: /bin/eject tcl
|
|
Requires: usb_modeswitch-data = %version
|
|
|
|
%description
|
|
USB_ModeSwitch is a mode switching tool for controlling "flip flop"
|
|
(multiple device) USB gear. It allows so-called "Zero-CD" devices that
|
|
show up as USB storage initially to be switched into their more useful
|
|
"application mode". This is most common for UMTS/3G wireless WAN
|
|
devices.
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Josua Dietze and others
|
|
|
|
%package data
|
|
License: GPLv2+
|
|
Summary: Data Files for USB Modeswitch
|
|
Group: Hardware/Mobile
|
|
Requires: %{name} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description data
|
|
Data files for usb_modeswitch package.
|
|
|
|
%prep
|
|
%setup -q -a1 -n %{source_name}-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" make
|
|
|
|
%install
|
|
%makeinstall
|
|
cd %{source_name}-data-%{date}
|
|
%makeinstall
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README COPYING ChangeLog
|
|
%{_sbindir}/usb_modeswitch
|
|
%{_sbindir}/usb_modeswitch_dispatcher
|
|
/lib/udev/usb_modeswitch
|
|
%config %{_sysconfdir}/usb_modeswitch.conf
|
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
|
|
|
%files data
|
|
%defattr(-,root,root,-)
|
|
%{_sysconfdir}/usb_modeswitch.d/
|
|
/lib/udev/rules.d/40-usb_modeswitch.rules
|
|
|
|
%changelog
|