diff --git a/.cvsignore b/.cvsignore index e69de29..0c30dd9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +usb_modeswitch-0.9.4.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..9fd779e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +usb_modeswitch-0_9_4-2_fc9:HEAD:usb_modeswitch-0.9.4-2.fc9.src.rpm:1214937827 diff --git a/sources b/sources index e69de29..88d43da 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3c03c3ae51a10d599c33c119693186c9 usb_modeswitch-0.9.4.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec new file mode 100644 index 0000000..1ae7154 --- /dev/null +++ b/usb_modeswitch.spec @@ -0,0 +1,59 @@ +Name: usb_modeswitch +Version: 0.9.4 +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}/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libusb-devel + +%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. + +%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. + +%prep +%setup -q + +%build +gcc $RPM_OPT_FLAGS -l usb -o usb_modeswitch usb_modeswitch.c + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir $RPM_BUILD_ROOT%{_sysconfdir} +install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/ +install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_bindir}/usb_modeswitch +%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf +%doc COPYING README* + +%changelog +* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-2 +- Fixed some rpmlint errors +- Added german translation + +* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-1 +- Update to 0.9.4 +- Honor RPM_OPT_FLAGS + +* Sat May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 +- First package Release +