diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19fbae3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +usb-modeswitch-data-20100418.tar.bz2 +usb-modeswitch-data-20100817.tar.bz2 diff --git a/Makefile b/Makefile deleted file mode 100644 index bc44b3d..0000000 --- a/Makefile +++ /dev/null @@ -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) diff --git a/sources b/sources index e69de29..cc349b1 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +659c9633513fa2f84465244a50c351b3 usb-modeswitch-data-20100418.tar.bz2 +ec177e3b48b7b2211cd8dbc7ebcfa863 usb-modeswitch-data-20100817.tar.bz2 diff --git a/usb_modeswitch-data.spec b/usb_modeswitch-data.spec new file mode 100644 index 0000000..af0db98 --- /dev/null +++ b/usb_modeswitch-data.spec @@ -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 20100817-1 +- New upstream + +* Thu Aug 12 2010 Huzaifa Sidhpurwala 20100707-1 +- New upstream + +* Tue Jun 22 2010 Huzaifa Sidhpurwala 20100621-1 +- New upstream + +* Tue Apr 20 2010 Huzaifa Sidhpurwala 20100418-2 +- Remove buildroot, make package noarch + +* Tue Apr 20 2010 Huzaifa Sidhpurwala 20100418-1 +- First build