Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46dc3a7ae8 | ||
|
|
6d565fce8e | ||
|
|
f4d6580da9 | ||
|
|
6e000a65fd | ||
|
|
d5ccdfd1f9 | ||
|
|
392e5f7bb1 |
5 changed files with 82 additions and 21 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
usb-modeswitch-data-20100621.tar.bz2
|
||||
usb-modeswitch-data-20100707.tar.bz2
|
||||
usb-modeswitch-data-20100817.tar.bz2
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: usb_modeswitch-data
|
||||
# $Id$
|
||||
NAME := usb_modeswitch-data
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
2
sources
2
sources
|
|
@ -0,0 +1,2 @@
|
|||
d1fcc283c64a0877cdcac9cd682052f9 usb-modeswitch-data-20100707.tar.bz2
|
||||
ec177e3b48b7b2211cd8dbc7ebcfa863 usb-modeswitch-data-20100817.tar.bz2
|
||||
77
usb_modeswitch-data.spec
Normal file
77
usb_modeswitch-data.spec
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
%define source_name usb-modeswitch-data
|
||||
|
||||
Name: usb_modeswitch-data
|
||||
Version: 20100817
|
||||
Release: 1%{?dist}
|
||||
Summary: USB Modeswitch gets 4G cards in operational mode
|
||||
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
||||
Group: Applications/System
|
||||
License: GPLv2+
|
||||
URL: http://www.draisberghof.de/usb_modeswitch/
|
||||
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
Requires: tcl
|
||||
Requires: udev
|
||||
Requires: usb_modeswitch >= 1.1.2
|
||||
|
||||
%description
|
||||
USB Modeswitch brings up your datacard into operational mode. When plugged
|
||||
in they identify themselves as cdrom and present some non-Linux compatible
|
||||
installation files. This tool deactivates this cdrom-devices and enables
|
||||
the real communication device. It supports most devices built and
|
||||
sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
|
||||
|
||||
This package contains the data files needed for usb_modeswitch to function.
|
||||
|
||||
%description -l de
|
||||
USB Modeswitch deaktiviert die CDROM-Emulation einiger UMTS-Karten.
|
||||
Dadurch erkennt Linux die Datenkarte und kann damit Internet-
|
||||
Verbindungen aufbauen. Die gängigen Karten von Huawei, T-Mobile,
|
||||
Vodafone, Option, ZTE und Novatell werden unterstützt.
|
||||
|
||||
Dieses Paket enthält die Dateien für usb_modeswitch benötigt
|
||||
um zu funktionieren.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{source_name}-%{version}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
|
||||
|
||||
install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||||
install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT/lib/udev/rules.d
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
udevadm control --reload-rules
|
||||
|
||||
%postun
|
||||
udevadm control --reload-rules
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/lib/udev/rules.d/40-usb_modeswitch.rules
|
||||
%{_sysconfdir}/usb_modeswitch.d/
|
||||
%doc ChangeLog COPYING README
|
||||
|
||||
%changelog
|
||||
* Tue Aug 24 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100817-1
|
||||
- New upstream
|
||||
|
||||
* Thu Aug 12 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100707-1
|
||||
- New upstream
|
||||
|
||||
* Tue Jun 22 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100621-1
|
||||
- New upstream
|
||||
|
||||
* Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-2
|
||||
- Remove buildroot, make package noarch
|
||||
|
||||
* Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100418-1
|
||||
- First build
|
||||
Loading…
Add table
Add a link
Reference in a new issue