a5844c
%define source_name	usb-modeswitch
a5844c
a5844c
Name:		usb_modeswitch
a5844c
Version:	2.6.1
a5844c
Release:	4%{?dist}
a5844c
Summary:	USB Modeswitch gets mobile broadband cards in operational mode
a5844c
Summary(de):	USB Modeswitch aktiviert UMTS-Karten
a5844c
License:	GPLv2+
a5844c
URL:		http://www.draisberghof.de/usb_modeswitch/
a5844c
a5844c
Source0:	http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
a5844c
Source1:	http://www.draisberghof.de/usb_modeswitch/device_reference.txt
a5844c
a5844c
# Submitted upstream (2014-11-24)
a5844c
Patch0: device_reference-utf8.patch
a5844c
a5844c
BuildRequires: make
a5844c
BuildRequires:  gcc
a5844c
BuildRequires:	libusbx-devel
a5844c
# "tcl" or "jimsh"), use the light-weight installation:
a5844c
#BuildRequires:	jimtcl-devel
a5844c
BuildRequires:	systemd
a5844c
Requires:	usb_modeswitch-data >= 20121109
a5844c
Requires:	systemd
a5844c
a5844c
%description
a5844c
USB Modeswitch brings up your datacard into operational mode. When plugged
a5844c
in they identify themselves as cdrom and present some non-Linux compatible
a5844c
installation files. This tool deactivates this cdrom-device and enables
a5844c
the real communication device. It supports most devices built and
a5844c
sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.
a5844c
a5844c
%description	-l de
a5844c
USB Modeswitch deaktiviert die CDROM-Emulation einiger UMTS-Karten.
a5844c
Dadurch erkennt Linux die Datenkarte und kann damit Internet-
a5844c
Verbindungen aufbauen. Die gängigen Karten von Huawei, T-Mobile,
a5844c
Vodafone, Option, ZTE und Novatell werden unterstützt.
a5844c
a5844c
a5844c
%prep
a5844c
%setup -q -n %{source_name}-%{version}
a5844c
cp -f %{SOURCE1} device_reference.txt
a5844c
a5844c
%patch0 -p0
a5844c
a5844c
a5844c
%build
a5844c
%{set_build_flags}
a5844c
# this will require jimtcl-devel
a5844c
#make_build all-with-dynlink-dispatcher
a5844c
%make_build
a5844c
a5844c
a5844c
%install
a5844c
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
a5844c
%make_install \
a5844c
	SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \
a5844c
	UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev
a5844c
a5844c
a5844c
%files
a5844c
%{_sbindir}/usb_modeswitch
a5844c
%{_sbindir}/usb_modeswitch_dispatcher
a5844c
%{_mandir}/man1/usb_modeswitch.1.gz
a5844c
%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz
a5844c
%{_prefix}/lib/udev/usb_modeswitch
a5844c
%{_unitdir}/usb_modeswitch@.service
a5844c
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
a5844c
%doc COPYING README ChangeLog device_reference.txt 
a5844c
a5844c
a5844c
%changelog
a5844c
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.1-4
a5844c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
a5844c
  Related: rhbz#1991688
a5844c
a5844c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.1-3
a5844c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
a5844c
a5844c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a5844c
a5844c
* Wed Nov 18 2020 Sérgio Basto <sergio@serjux.com> - 2.6.1-1
a5844c
- Update usb_modeswitch to 2.6.1
a5844c
- Drop patch1, http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733
a5844c
- Drop BR jimtcl-devel, if we don't install dynlink-dispatcher
a5844c
a5844c
* Tue Sep 29 2020 Sérgio Basto <sergio@serjux.com> - 2.6.0-3
a5844c
- Use make macros (https://src.fedoraproject.org/rpms/usb_modeswitch/pull-request/1)
a5844c
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
a5844c
a5844c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a5844c
a5844c
* Tue Mar 24 2020 Lubomir Rintel <lkundrak@v3.sk> - 2.6.0-1
a5844c
- New 2.6.0 release
a5844c
a5844c
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-5
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a5844c
a5844c
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-4
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a5844c
a5844c
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-3
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5844c
a5844c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a5844c
a5844c
* Wed Feb 28 2018 Lubomir Rintel <lkundrak@v3.sk> - 2.5.2-1
a5844c
- New 2.5.2 release
a5844c
a5844c
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
a5844c
- Use LDFLAGS from redhat-rpm-config
a5844c
a5844c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a5844c
a5844c
* Fri Aug 18 2017 Lubomir Rintel <lkundrak@v3.sk> - 2.5.1-1
a5844c
- New 2.5.1 release
a5844c
a5844c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a5844c
a5844c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a5844c
a5844c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a5844c
a5844c
* Fri Jul 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-5
a5844c
- Bump the release number to be higher than in Fedora 24
a5844c
a5844c
* Thu Jul 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-3
a5844c
- Fix undefined behavior in config parser (rh #1352055)
a5844c
a5844c
* Wed Jul 20 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-2
a5844c
- Add the previously omitted systemd service file (rh #1352055)
a5844c
- Fix crash with invalid arguments (rh #1358472)
a5844c
a5844c
* Wed Jun 22 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.4.0-1
a5844c
- New 2.4.0 release
a5844c
a5844c
* Tue May 03 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.3.0-1
a5844c
- New 2.3.0 release
a5844c
a5844c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a5844c
a5844c
* Tue Aug 18 2015 Lubomir Rintel <lkundrak@v3.sk> - 2.2.5-1
a5844c
- New 2.2.5 release
a5844c
a5844c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a5844c
a5844c
* Sun Feb 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.2.1-1
a5844c
- New 2.2.1 release
a5844c
a5844c
* Mon Nov 24 2014 Till Maas <opensource@till.name> - 2.2.0-2
a5844c
- Update device_reference.txt, make it proper UTF-8
a5844c
a5844c
* Tue Aug 26 2014 Robert M. Albrecht <mail@romal.de> - 2.2.0-1
a5844c
- New upstream release
a5844c
- Fixed a typo in the description
a5844c
a5844c
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a5844c
a5844c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a5844c
a5844c
* Wed Apr 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.1-1
a5844c
- Update to 2.1.1
a5844c
a5844c
* Tue Jan 28 2014 Dan Williams <dcbw@redhat.com> - 2.0.1-2
a5844c
- Resurrect manpage patch
a5844c
a5844c
* Mon Jan  6 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.1-1
a5844c
- Update to 2.0.1 and build against libusbx (RHBZ 994974)
a5844c
- Use distro jimtcl (RHBZ 967314)
a5844c
- Fix build on aarch64
a5844c
- Cleanup and modernise spec
a5844c
a5844c
* Wed Aug 28 2013 Thomas Haller <thaller@redhat.com> 1.2.7-3
a5844c
- Add manual page for usb_modeswitch_dispatcher and fix errors in
a5844c
  manual page of usb_modeswitch (rhbz#948451, rhbz#884203).
a5844c
a5844c
* Mon Aug 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-2
a5844c
- Fix udev helper path
a5844c
a5844c
* Fri Aug 16 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-1
a5844c
- New upstream release
a5844c
a5844c
* Fri Jul 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.6-2
a5844c
- Fix udev directories
a5844c
a5844c
* Wed Jun 12 2013 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.6
a5844c
- New upstream release.
a5844c
a5844c
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a5844c
a5844c
* Tue Nov 13 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.5-1
a5844c
- New upstream release. Resolves rhbz#875832
a5844c
a5844c
* Fri Aug 24 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.2.4-1
a5844c
- New upstream release. Resolves rhbz#785539
a5844c
a5844c
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a5844c
a5844c
* Tue Apr 24 2012 Dan Williams <dcbw@redhat.com> 1.2.3-1
a5844c
- Update to new upstream release
a5844c
- Build TCL tool as a static binary to remove dependency on TCL itself rhbz#760839
a5844c
a5844c
* Wed Jan 25 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2-2
a5844c
- Add usb_modeswitch.sh udev script and move Tcl dispatcher script to sbindir,
a5844c
  resolves rhbz#782614, patch from Dominic Cleal
a5844c
- Fix bus/device-based search, from deb#656248
a5844c
a5844c
* Fri Jan 20 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.2
a5844c
- New upstream version 1.2.2
a5844c
a5844c
* Fri Jan 06 2012 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.1-1
a5844c
- New upstream version 1.2.1
a5844c
a5844c
* Tue Oct 25 2011 Huzaifa Sidhpurwala <huzaifas@redhat.com> 1.2.0-1
a5844c
- New upstream
a5844c
- use device_reference.txt from upstream
a5844c
a5844c
* Mon Mar 28 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.1.7-1
a5844c
- New upstream release.  Resolves rhbz#625004
a5844c
- Update spec to match current guidelines
a5844c
- Fix relevant rpmlint errors and warnings
a5844c
a5844c
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
a5844c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a5844c
a5844c
* Thu Dec 30 2010 Dan Williams <dcbw@redhat.com> 1.1.6-1
a5844c
- New upstream version