Browse Source

NEW: usb-modeswitch: initial build, 1.1.2
NEW: usb-modeswitch-data: initial build, 20100418



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@878 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 14 years ago
parent
commit
2a2dee2480

+ 57 - 0
u/usb-modeswitch-data/usb-modeswitch-data-vl.spec

@@ -0,0 +1,57 @@
+Name:		usb-modeswitch-data
+Version:	20100418
+Release:	1%{?_dist_release}
+Summary:	USB Modeswitch gets 4G cards in operational mode 
+Group:		Applications/System
+License:	GPLv2+
+URL:		http://www.draisberghof.de/usb_modeswitch/
+Source0:	http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
+BuildArch:	noarch
+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.
+
+%prep
+%setup -q -n %{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,-)
+%doc ChangeLog COPYING README
+/lib/udev/rules.d/40-usb_modeswitch.rules
+%{_sysconfdir}/usb_modeswitch.d/
+
+%changelog
+* Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 20100418-1
+- initial build for Vine Linux
+
+* 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

+ 94 - 0
u/usb-modeswitch/usb-modeswitch-vl.spec

@@ -0,0 +1,94 @@
+Name:		usb-modeswitch
+Version:	1.1.2
+Release:        1%{?_dist_release}
+Summary:	USB Modeswitch gets 4G cards in operational mode
+Summary(ja):	USB Modeswitch は 4G カードのモード変更ツールです
+Group:		Applications/System
+License:	GPLv2+
+URL:		http://www.draisberghof.de/usb_modeswitch/
+
+Source0: 	http://www.draisberghof.de/%{name}/%{name}-%{version}.tar.bz2
+Patch0:         usb-modeswitch-dir.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires:	libusb-devel
+Obsoletes:      usb_modeswitch < 1.1.2
+Provides:       usb_modeswitch = %{version}-%{release}
+Requires:	usb-modeswitch-data
+Requires:	tcl
+
+%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.
+
+%prep
+%setup -q
+%patch0 -p1 -b .dir
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+mkdir -p $RPM_BUILD_ROOT/lib/udev/
+
+install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/
+install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
+gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1
+install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README* ChangeLog
+%{_bindir}/usb_modeswitch
+%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
+/lib/udev/usb_modeswitch
+%{_mandir}/man1/usb_modeswitch.1.gz
+
+%changelog
+* Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.2-1
+- new upstream release
+
+* Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 	1.0.5-1
+- initial build for Vine Linux
+
+* Thu Sep 17 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.5-1
+- new upstream 1.0.5 release
+
+* Sun Aug 02 2009 Robert M. Albrecht <fedora@romal.de> 1.0.2-1
+- new upstream release
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sun Jan 11 2009 Robert M. Albrecht <fedora@romal.de> 0.9.6-1
+* new upstream release
+
+* Sat Dec 13 2008 Robert M. Albrecht <fedora@romal.de> 0.9.5-1
+* new upstream release
+
+* Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-2
+- Fixed some rpmlint errors
+- Added german translation
+
+* Sat Jun 22 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-1
+- Update to 0.9.4
+- Honor RPM_OPT_FLAGS
+  
+* Sat May 26 2008 Robert M. Albrecht <romal@gmx.de> 0.9.4-0.1.beta2
+- First package Release
+