95 lines
3.2 KiB
RPMSpec
95 lines
3.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package usb_modeswitch (Version 1.1.2)
|
||
|
#
|
||
|
# Copyright (c) 2010 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
Url: http://www.draisberghof.de/usb_modeswitch/
|
||
|
|
||
|
Name: usb_modeswitch
|
||
|
%define source_name usb-modeswitch
|
||
|
Version: 1.1.2
|
||
|
Release: 1
|
||
|
Summary: A mode switching tool for controlling multiple-device USB gear
|
||
|
Group: Hardware/Mobile
|
||
|
License: GPLv2+
|
||
|
Source0: http://www.draisberghof.de/usb_modeswitch/%{source_name}-%{version}.tar.bz2
|
||
|
Source1: %{source_name}-data-20100418.tar.bz2
|
||
|
Source2: %{name}-data.rpmlintrc
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: libusb-devel udev
|
||
|
Requires: /bin/eject tcl
|
||
|
Requires: usb_modeswitch-data
|
||
|
|
||
|
%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="$RPM_OPT_FLAGS" make
|
||
|
|
||
|
%install
|
||
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
||
|
install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/
|
||
|
install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
|
||
|
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
||
|
install -p -m 644 usb_modeswitch.setup $RPM_BUILD_ROOT%{_sysconfdir}/
|
||
|
install -p -m 644 usb_modeswitch.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
|
||
|
# Data files
|
||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||
|
install -p -m 644 usb-modeswitch-data-20100418/usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||
|
chmod 644 $RPM_BUILD_ROOT/etc/usb_modeswitch.d/*
|
||
|
install -p -m 644 usb-modeswitch-data-20100418/40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d/
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README COPYING ChangeLog
|
||
|
%{_sbindir}/usb_modeswitch
|
||
|
/lib/udev/usb_modeswitch
|
||
|
%config %{_sysconfdir}/usb_modeswitch.conf
|
||
|
%config %{_sysconfdir}/usb_modeswitch.setup
|
||
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
||
|
|
||
|
%files data
|
||
|
%defattr(-,root,root,-)
|
||
|
%{_sysconfdir}/usb_modeswitch.d/
|
||
|
/lib/udev/rules.d/40-usb_modeswitch.rules
|
||
|
|
||
|
%changelog
|