2010-03-03 09:33:09 +00:00
|
|
|
%define source_name usb-modeswitch
|
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
Name: usb_modeswitch
|
2011-08-07 17:37:48 +00:00
|
|
|
Version: 1.1.9
|
2011-08-08 13:48:56 +00:00
|
|
|
Release: 2%{?dist}
|
2010-12-30 22:19:51 +00:00
|
|
|
Summary: USB Modeswitch gets mobile broadband cards in operational mode
|
2008-07-01 18:44:47 +00:00
|
|
|
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://www.draisberghof.de/usb_modeswitch/
|
2011-03-27 23:48:35 +00:00
|
|
|
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
2011-08-08 13:48:56 +00:00
|
|
|
Source1: device_reference.txt
|
2010-04-21 06:02:09 +00:00
|
|
|
Requires: usb_modeswitch-data
|
2008-07-01 18:44:47 +00:00
|
|
|
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.
|
|
|
|
|
2010-03-03 09:33:09 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
%prep
|
2010-03-03 09:33:09 +00:00
|
|
|
%setup -q -n %{source_name}-%{version}
|
2011-08-08 13:48:56 +00:00
|
|
|
cp -f %{SOURCE1} device_reference.txt
|
2008-07-01 18:44:47 +00:00
|
|
|
|
2011-03-27 23:48:35 +00:00
|
|
|
# convert device_reference.txt encoding to UTF-8
|
|
|
|
iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \
|
|
|
|
touch -r device_reference.txt device_reference.txt.new && \
|
|
|
|
mv device_reference.txt.new device_reference.txt
|
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
%build
|
2010-03-06 11:52:41 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
|
2010-03-03 09:33:09 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2010-03-03 09:33:09 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
|
2010-04-23 07:21:35 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
2010-03-03 09:33:09 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
2010-04-21 06:02:09 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
2010-03-03 09:33:09 +00:00
|
|
|
|
2010-04-23 07:21:35 +00:00
|
|
|
install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/
|
2008-07-01 18:44:47 +00:00
|
|
|
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
2010-04-21 06:02:09 +00:00
|
|
|
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
|
2008-07-01 18:44:47 +00:00
|
|
|
|
2011-03-27 23:48:35 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-04-23 07:21:35 +00:00
|
|
|
%{_sbindir}/usb_modeswitch
|
2010-03-03 09:33:09 +00:00
|
|
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
2010-04-21 06:02:09 +00:00
|
|
|
/lib/udev/usb_modeswitch
|
2008-07-01 18:44:47 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
2010-06-22 03:39:39 +00:00
|
|
|
%doc COPYING README ChangeLog device_reference.txt
|
2010-03-03 09:33:09 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-08-08 13:48:56 +00:00
|
|
|
* Sun Aug 07 2011 Robert M. Albrecht <fedora@romal.de> 1.1.9-2
|
|
|
|
- device_reference.txt is no longer included in upstream package, but an optional download
|
|
|
|
|
2011-08-07 17:37:48 +00:00
|
|
|
* Sun Aug 07 2011 Robert M. Albrecht <fedora@romal.de> 1.1.9-1
|
|
|
|
- New upstream version
|
|
|
|
|
2011-03-27 23:48:35 +00:00
|
|
|
* Mon Mar 28 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.1.7-1
|
|
|
|
- New upstream release. Resolves rhbz#625004
|
|
|
|
- Update spec to match current guidelines
|
|
|
|
- Fix relevant rpmlint errors and warnings
|
|
|
|
|
2011-02-08 00:40:11 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-30 22:19:51 +00:00
|
|
|
* Thu Dec 30 2010 Dan Williams <dcbw@redhat.com> 1.1.6-1
|
|
|
|
- New upstream version
|
|
|
|
|
2010-08-24 10:33:56 +00:00
|
|
|
* Tue Aug 24 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.4-1
|
|
|
|
- New upstream version
|
|
|
|
|
2010-06-22 03:39:39 +00:00
|
|
|
* Tue Jun 22 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.3-1
|
|
|
|
- New upstream
|
|
|
|
|
2010-04-23 07:21:35 +00:00
|
|
|
* Fri Apr 23 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-3
|
|
|
|
- Fix typo in binary location
|
|
|
|
|
2010-04-23 07:09:51 +00:00
|
|
|
* Fri Apr 23 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-2
|
|
|
|
- Move usb_modeswitch binary back to /usr/sbin
|
|
|
|
- Package /etc/usb_modeswitch.setup for manual mode
|
|
|
|
|
2010-04-21 06:02:09 +00:00
|
|
|
* Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-1
|
|
|
|
- New upstream
|
|
|
|
- Split data and main package
|
|
|
|
|
|
|
|
* Mon Mar 8 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.0-6
|
|
|
|
- Version bump for F-12 build
|
|
|
|
|
2010-03-06 12:02:17 +00:00
|
|
|
* Sat Mar 6 2010 Huzaifa Sidhpurwala <huzaifas@redaht.com> - 1.1.0-5
|
2010-03-06 11:52:41 +00:00
|
|
|
- Fix regression in rhbz #571001
|
2010-03-06 12:02:17 +00:00
|
|
|
- Version bump
|
2010-03-06 11:52:41 +00:00
|
|
|
|
2010-03-04 09:11:25 +00:00
|
|
|
* Thu Mar 4 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.0-3
|
|
|
|
- Patch usb_modeswtich to use the binary from /usr/bin/
|
|
|
|
- usb_modeswitch-data needs tcl
|
|
|
|
|
2010-03-03 11:06:30 +00:00
|
|
|
* Wed Mar 2 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.0-2
|
|
|
|
- Reload udev when new rules are installed
|
|
|
|
|
2010-03-03 09:33:09 +00:00
|
|
|
* Wed Mar 2 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.1.0-1
|
|
|
|
- New upstream 1.1.0 release
|
|
|
|
- Split package into binary and data part
|
|
|
|
|
2009-09-17 09:04:35 +00:00
|
|
|
* Thu Sep 17 2009 Peter Robinson <pbrobinson@gmail.com> 1.0.5-1
|
|
|
|
- new upstream 1.0.5 release
|
|
|
|
|
2009-08-02 10:03:31 +00:00
|
|
|
* Sun Aug 02 2009 Robert M. Albrecht <fedora@romal.de> 1.0.2-1
|
2009-09-17 09:04:35 +00:00
|
|
|
- new upstream release
|
2009-08-02 10:03:31 +00:00
|
|
|
|
2009-07-27 06:38:59 +00:00
|
|
|
* 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
|
|
|
|
|
2009-02-25 23:25:52 +00:00
|
|
|
* 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
|
|
|
|
|
2009-01-11 18:46:30 +00:00
|
|
|
* 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
|
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
* 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
|
|
|
|
|