forked from pool/usb_modeswitch
Accepting request 40323 from hardware
Copy from hardware/usb_modeswitch based on submit request 40323 from user a_jaeger OBS-URL: https://build.opensuse.org/request/show/40323 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/usb_modeswitch?expand=0&rev=1
This commit is contained in:
commit
ea300259bc
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
usb-modeswitch-1.1.2.tar.bz2
Normal file
3
usb-modeswitch-1.1.2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:df26395e07a4e286d6a51d6dd3f8374024a10e1b51ef8c07f105da443268f0f3
|
||||
size 35001
|
3
usb-modeswitch-data-20100418.tar.bz2
Normal file
3
usb-modeswitch-data-20100418.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd316f5f9e456da26fd2ce7b84ffdc065a1ea725492a79401cf1012a94c09453
|
||||
size 13967
|
1
usb_modeswitch-data.rpmlintrc
Normal file
1
usb_modeswitch-data.rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("non-conffile-in-etc /etc/usb_modeswitch.d/")
|
35
usb_modeswitch.changes
Normal file
35
usb_modeswitch.changes
Normal file
@ -0,0 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 18 07:30:48 UTC 2010 - aj@suse.de
|
||||
|
||||
- Cleanup spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 11 01:42:42 UTC 2010 - tuoma_mel@inbox.ru
|
||||
|
||||
- update to version 1.1.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 21 18:37:22 CET 2009 - seife@suse.de
|
||||
|
||||
- add dependency on /bin/eject (used in the udev rules)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 21 16:40:28 CET 2009 - seife@suse.de
|
||||
|
||||
- update usb_modeswitch.conf (from 2009-01-13)
|
||||
- add udev rules and a script to create them from the config file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 12 18:43:57 CET 2009 - seife@suse.de
|
||||
|
||||
- update to version 0.9.6
|
||||
- special modes added for Sierra and Sony Ericsson, new devices
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 7 11:00:27 CET 2008 - seife@suse.de
|
||||
|
||||
- copied the package from home:perosb (Thanks!)
|
||||
- added the latest config file from the home page
|
||||
- install README
|
||||
- use RPM_OPT_FLAGS
|
||||
- enable useful debug info by not stripping the binary
|
94
usb_modeswitch.spec
Normal file
94
usb_modeswitch.spec
Normal file
@ -0,0 +1,94 @@
|
||||
#
|
||||
# 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
|
Loading…
x
Reference in New Issue
Block a user