packages: usb_modeswitch/usb_modeswitch-dir.patch (NEW), usb_modeswitch/usb...
arekm
arekm at pld-linux.org
Sun May 30 08:39:02 CEST 2010
Author: arekm Date: Sun May 30 06:39:02 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- raw from FC
---- Files affected:
packages/usb_modeswitch:
usb_modeswitch-dir.patch (NONE -> 1.1) (NEW), usb_modeswitch.spec (NONE -> 1.1) (NEW)
packages/usb_modeswitch-data:
usb_modeswitch-data.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/usb_modeswitch/usb_modeswitch-dir.patch
diff -u /dev/null packages/usb_modeswitch/usb_modeswitch-dir.patch:1.1
--- /dev/null Sun May 30 08:39:02 2010
+++ packages/usb_modeswitch/usb_modeswitch-dir.patch Sun May 30 08:38:57 2010
@@ -0,0 +1,12 @@
+diff -Naur usb-modeswitch-1.1.2/Makefile usb-modeswitch-1.1.2.dir/Makefile
+--- usb-modeswitch-1.1.2/Makefile 2010-04-17 23:57:11.000000000 +0530
++++ usb-modeswitch-1.1.2.dir/Makefile 2010-04-20 10:28:04.345041264 +0530
+@@ -7,7 +7,7 @@
+ PREFIX = $(DESTDIR)/usr
+ ETCDIR = $(DESTDIR)/etc
+ UDEVDIR = $(DESTDIR)/lib/udev
+-SBINDIR = $(PREFIX)/sbin
++SBINDIR = $(PREFIX)/bin
+ MANDIR = $(PREFIX)/share/man/man1
+
+ .PHONY: clean
================================================================
Index: packages/usb_modeswitch/usb_modeswitch.spec
diff -u /dev/null packages/usb_modeswitch/usb_modeswitch.spec:1.1
--- /dev/null Sun May 30 08:39:02 2010
+++ packages/usb_modeswitch/usb_modeswitch.spec Sun May 30 08:38:57 2010
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+%define source_name usb-modeswitch
+
+Summary: USB Modeswitch gets 4G cards in operational mode
+Summary(de): USB Modeswitch aktiviert UMTS-Karten
+Name: usb_modeswitch
+Version: 1.1.2
+Release: 3%{?dist}
+License: GPL v2+
+Group: Applications/System
+URL: http://www.draisberghof.de/usb_modeswitch/
+Source0: http://www.draisberghof.de/usb_modeswitch/%{source_name}-%{version}.tar.bz2
+BuildRequires: libusb-devel
+Requires: usb_modeswitch-data
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 -n %{source_name}-%{version}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/lib/udev/rules.d/
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+
+install -p usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/
+install -p usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
+install -p usb_modeswitch.setup $RPM_BUILD_ROOT%{_sysconfdir}/
+gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_mandir}/man1
+install -p usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/usb_modeswitch
+%{_mandir}/man1/usb_modeswitch.1*
+/lib/udev/usb_modeswitch
+%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
+%config(noreplace) %{_sysconfdir}/usb_modeswitch.setup
+%doc COPYING README ChangeLog
+
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/05/30 06:38:57 arekm
+- raw from FC
+
================================================================
Index: packages/usb_modeswitch-data/usb_modeswitch-data.spec
diff -u /dev/null packages/usb_modeswitch-data/usb_modeswitch-data.spec:1.1
--- /dev/null Sun May 30 08:39:02 2010
+++ packages/usb_modeswitch-data/usb_modeswitch-data.spec Sun May 30 08:38:57 2010
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+%define source_name usb-modeswitch-data
+
+Summary: USB Modeswitch gets 4G cards in operational mode
+Summary(de): USB Modeswitch aktiviert UMTS-Karten
+Name: usb_modeswitch-data
+Version: 20100418
+Release: 2%{?dist}
+License: GPL v2+
+Group: Applications/System
+URL: http://www.draisberghof.de/usb_modeswitch/
+Source0: http://www.draisberghof.de/usb_modeswitch-data/%{source_name}-%{version}.tar.bz2
+Requires: tcl
+Requires: udev
+Requires: usb_modeswitch >= 1.1.2
+BuildArch: noarch
+
+%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
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
+install -d $RPM_BUILD_ROOT/lib/udev/rules.d/
+
+install -p usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
+install -p 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(644,root,root,755)
+/lib/udev/rules.d/40-usb_modeswitch.rules
+%{_sysconfdir}/usb_modeswitch.d/
+%doc ChangeLog COPYING README
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/05/30 06:38:57 arekm
+- raw from FC
+
================================================================
More information about the pld-cvs-commit
mailing list