2010-03-03 09:33:09 +00:00
|
|
|
%define source_name usb-modeswitch
|
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
Name: usb_modeswitch
|
2018-02-28 21:19:47 +00:00
|
|
|
Version: 2.5.2
|
2018-07-14 08:19:42 +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
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://www.draisberghof.de/usb_modeswitch/
|
2014-01-06 18:09:24 +00:00
|
|
|
|
2011-03-27 23:48:35 +00:00
|
|
|
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
2013-07-26 23:30:39 +00:00
|
|
|
Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
2014-01-06 18:09:24 +00:00
|
|
|
|
2014-11-24 19:51:41 +00:00
|
|
|
# Submitted upstream (2014-11-24)
|
2018-02-28 21:19:47 +00:00
|
|
|
Patch0: device_reference-utf8.patch
|
2017-08-18 09:05:10 +00:00
|
|
|
# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733
|
2018-02-28 21:19:47 +00:00
|
|
|
Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch
|
2014-01-28 22:51:23 +00:00
|
|
|
|
2018-07-24 14:37:42 +00:00
|
|
|
BuildRequires: gcc
|
2014-01-06 18:09:24 +00:00
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
BuildRequires: jimtcl-devel
|
2016-07-21 17:19:37 +00:00
|
|
|
BuildRequires: systemd
|
2012-11-13 10:06:18 +00:00
|
|
|
Requires: usb_modeswitch-data >= 20121109
|
2016-07-20 19:50:44 +00:00
|
|
|
Requires: systemd
|
2008-07-01 18:44:47 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
USB Modeswitch brings up your datacard into operational mode. When plugged
|
|
|
|
in they identify themselves as cdrom and present some non-Linux compatible
|
2014-08-26 19:10:24 +00:00
|
|
|
installation files. This tool deactivates this cdrom-device and enables
|
2008-07-01 18:44:47 +00:00
|
|
|
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}
|
2013-08-20 09:36:45 +00:00
|
|
|
cp -f %{SOURCE1} device_reference.txt
|
2016-06-22 12:19:07 +00:00
|
|
|
|
2018-02-28 21:19:47 +00:00
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p1
|
2008-07-01 18:44:47 +00:00
|
|
|
|
2011-03-27 23:48:35 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
%build
|
2018-02-23 15:23:06 +00:00
|
|
|
%{set_build_flags}
|
|
|
|
make %{?_smp_mflags}
|
2010-03-03 09:33:09 +00:00
|
|
|
|
2008-07-01 18:44:47 +00:00
|
|
|
|
|
|
|
%install
|
2016-07-20 19:50:44 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
make install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \
|
|
|
|
UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev
|
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
|
2010-04-23 07:21:35 +00:00
|
|
|
%{_sbindir}/usb_modeswitch
|
2012-01-25 07:26:03 +00:00
|
|
|
%{_sbindir}/usb_modeswitch_dispatcher
|
2010-03-03 09:33:09 +00:00
|
|
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
2013-08-20 09:36:45 +00:00
|
|
|
%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz
|
2013-08-26 15:37:20 +00:00
|
|
|
%{_prefix}/lib/udev/usb_modeswitch
|
2016-07-20 19:50:44 +00:00
|
|
|
%{_unitdir}/usb_modeswitch@.service
|
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
|
2018-07-14 08:19:42 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-28 21:19:47 +00:00
|
|
|
* Wed Feb 28 2018 Lubomir Rintel <lkundrak@v3.sk> - 2.5.2-1
|
|
|
|
- New 2.5.2 release
|
|
|
|
|
2018-02-23 15:23:06 +00:00
|
|
|
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
|
|
|
|
- Use LDFLAGS from redhat-rpm-config
|
|
|
|
|
2018-02-09 20:10:11 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-18 09:05:10 +00:00
|
|
|
* Fri Aug 18 2017 Lubomir Rintel <lkundrak@v3.sk> - 2.5.1-1
|
|
|
|
- New 2.5.1 release
|
|
|
|
|
2017-08-03 09:53:06 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 21:04:46 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 16:49:30 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-07-29 07:51:10 +00:00
|
|
|
* Fri Jul 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-5
|
|
|
|
- Bump the release number to be higher than in Fedora 24
|
|
|
|
|
2016-07-21 16:57:26 +00:00
|
|
|
* Thu Jul 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3
|
|
|
|
- Fix undefined behavior in config parser (rh #1352055)
|
|
|
|
|
2016-07-20 19:50:44 +00:00
|
|
|
* Wed Jul 20 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2
|
|
|
|
- Add the previously omitted systemd service file (rh #1352055)
|
|
|
|
- Fix crash with invalid arguments (rh #1358472)
|
|
|
|
|
2016-06-22 12:04:35 +00:00
|
|
|
* Wed Jun 22 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-1
|
|
|
|
- New 2.4.0 release
|
|
|
|
|
2016-05-03 12:35:33 +00:00
|
|
|
* Tue May 03 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.3.0-1
|
|
|
|
- New 2.3.0 release
|
|
|
|
|
2016-02-05 02:26:53 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-08-18 13:32:20 +00:00
|
|
|
* Tue Aug 18 2015 Lubomir Rintel <lkundrak@v3.sk> - 2.2.5-1
|
|
|
|
- New 2.2.5 release
|
|
|
|
|
2015-06-19 01:41:15 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-22 16:20:20 +00:00
|
|
|
* Sun Feb 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.2.1-1
|
|
|
|
- New 2.2.1 release
|
|
|
|
|
2014-11-24 19:51:41 +00:00
|
|
|
* Mon Nov 24 2014 Till Maas <opensource@till.name> - 2.2.0-2
|
|
|
|
- Update device_reference.txt, make it proper UTF-8
|
|
|
|
|
2014-08-26 19:10:24 +00:00
|
|
|
* Tue Aug 26 2014 Robert M. Albrecht <mail@romal.de> - 2.2.0-1
|
|
|
|
- New upstream release
|
|
|
|
- Fixed a typo in the description
|
|
|
|
|
2014-08-18 07:13:35 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:03:14 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-16 14:12:03 +00:00
|
|
|
* Wed Apr 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.1-1
|
|
|
|
- Update to 2.1.1
|
|
|
|
|
2014-01-28 22:51:23 +00:00
|
|
|
* Tue Jan 28 2014 Dan Williams <dcbw@redhat.com> - 2.0.1-2
|
|
|
|
- Resurrect manpage patch
|
|
|
|
|
2014-01-06 18:09:24 +00:00
|
|
|
* Mon Jan 6 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.1-1
|
|
|
|
- Update to 2.0.1 and build against libusbx (RHBZ 994974)
|
|
|
|
- Use distro jimtcl (RHBZ 967314)
|
|
|
|
- Fix build on aarch64
|
|
|
|
- Cleanup and modernise spec
|
|
|
|
|
2013-08-28 13:22:53 +00:00
|
|
|
* Wed Aug 28 2013 Thomas Haller <thaller@redhat.com> 1.2.7-3
|
2013-08-20 09:36:45 +00:00
|
|
|
- Add manual page for usb_modeswitch_dispatcher and fix errors in
|
|
|
|
manual page of usb_modeswitch (rhbz#948451, rhbz#884203).
|
|
|
|
|
2013-08-26 15:41:33 +00:00
|
|
|
* Mon Aug 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-2
|
2013-08-26 15:37:20 +00:00
|
|
|
- Fix udev helper path
|
|
|
|
|
2013-08-16 17:15:00 +00:00
|
|
|
* Fri Aug 16 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-07-26 23:26:22 +00:00
|
|
|
* Fri Jul 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.6-2
|
|
|
|
- Fix udev directories
|
|
|
|
|
2013-06-12 06:20:54 +00:00
|
|
|
* Wed Jun 12 2013 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.6
|
|
|
|
- New upstream release.
|
|
|
|
|
2013-02-15 02:33:22 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-13 10:06:18 +00:00
|
|
|
* Tue Nov 13 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.5-1
|
|
|
|
- New upstream release. Resolves rhbz#875832
|
|
|
|
|
2012-08-24 06:54:57 +00:00
|
|
|
* Fri Aug 24 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.4-1
|
|
|
|
- New upstream release. Resolves rhbz#785539
|
|
|
|
|
2012-07-22 02:08:30 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-24 19:31:27 +00:00
|
|
|
* Tue Apr 24 2012 Dan Williams <dcbw@redhat.com> 1.2.3-1
|
|
|
|
- Update to new upstream release
|
|
|
|
- Build TCL tool as a static binary to remove dependency on TCL itself rhbz#760839
|
|
|
|
|
2012-01-25 07:26:03 +00:00
|
|
|
* Wed Jan 25 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2-2
|
|
|
|
- Add usb_modeswitch.sh udev script and move Tcl dispatcher script to sbindir,
|
|
|
|
resolves rhbz#782614, patch from Dominic Cleal
|
|
|
|
- Fix bus/device-based search, from deb#656248
|
|
|
|
|
2012-04-24 19:31:27 +00:00
|
|
|
* Fri Jan 20 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2
|
2012-01-20 14:37:25 +00:00
|
|
|
- New upstream version 1.2.2
|
|
|
|
|
2012-01-06 08:35:32 +00:00
|
|
|
* Fri Jan 06 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.1-1
|
|
|
|
- New upstream version 1.2.1
|
|
|
|
|
2011-10-25 04:55:13 +00:00
|
|
|
* Tue Oct 25 2011 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.0-1
|
|
|
|
- New upstream
|
2012-04-24 19:31:27 +00:00
|
|
|
- use device_reference.txt from upstream
|
2011-08-07 17:37:48 +00:00
|
|
|
|
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
|