From a97ff7311a27b1d52e1725975165c165d17e4520 Mon Sep 17 00:00:00 2001 From: Huzaifa Sidhpurwala Date: Wed, 21 Apr 2010 06:06:11 +0000 Subject: [PATCH] first commit --- .cvsignore | 1 + import.log | 1 + sources | 1 + usb_modeswitch-data.spec | 68 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 import.log create mode 100644 usb_modeswitch-data.spec diff --git a/.cvsignore b/.cvsignore index e69de29..d76dccc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +usb-modeswitch-data-20100418.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..47c6c8f --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +usb_modeswitch-data-20100418-2_fc12:HEAD:usb_modeswitch-data-20100418-2.fc12.src.rpm:1271815494 diff --git a/sources b/sources index e69de29..4d871ad 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +659c9633513fa2f84465244a50c351b3 usb-modeswitch-data-20100418.tar.bz2 diff --git a/usb_modeswitch-data.spec b/usb_modeswitch-data.spec new file mode 100644 index 0000000..c0e517b --- /dev/null +++ b/usb_modeswitch-data.spec @@ -0,0 +1,68 @@ +%define source_name usb-modeswitch-data + +Name: usb_modeswitch-data +Version: 20100418 +Release: 2%{?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 Apr 20 2010 Huzaifa Sidhpurwala 20100418-2 +- Remove buildroot, make package noarch + +* Tue Apr 20 2010 Huzaifa Sidhpurwala 20100418-1 +- First build