|
|
|
@ -1,15 +1,30 @@
|
|
|
|
|
%global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
|
|
|
|
|
%global qmi_version %(pkg-config --modversion qmi-glib 2>/dev/null || echo bad)
|
|
|
|
|
%global mbim_version %(pkg-config --modversion mbim-glib 2>/dev/null || echo bad)
|
|
|
|
|
%global qrtr_version %(pkg-config --modversion qrtr-glib 2>/dev/null || echo bad)
|
|
|
|
|
|
|
|
|
|
Name: ModemManager
|
|
|
|
|
Version: 1.20.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 1.22.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Mobile broadband modem management service
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
URL: http://www.freedesktop.org/wiki/Software/ModemManager/
|
|
|
|
|
Source: https://gitlab.com/linux-mobile-broadband/ModemManager/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
# All of these are applied upstream. Can frop on rebase to 1.24
|
|
|
|
|
Patch0: 0001-shared-qmi-do-not-leak-a-string-in-error-path.patch
|
|
|
|
|
Patch1: 0001-ublox-helpers-fix-propagation-of-URAT-response-parse.patch
|
|
|
|
|
Patch2: 0003-broadband-modem-fix-a-potential-leak-in-cusd_process.patch
|
|
|
|
|
Patch3: 0004-shared-qmi-fix-a-leak-in-error-handling-path.patch
|
|
|
|
|
Patch4: 0005-quectel-shared-do-not-leak-name-string.patch
|
|
|
|
|
Patch5: 0006-port-qmi-fix-array-bound-check.patch
|
|
|
|
|
Patch6: 0007-mmcli-sms-do-not-leak-message_reference.patch
|
|
|
|
|
Patch7: 0008-bearer-qmi-fix-a-copy-n-paste-error.patch
|
|
|
|
|
Patch8: 0009-sim-qmi-do-not-leak-access-technology-name.patch
|
|
|
|
|
Patch9: 0010-libmm-glib-signal-fix-a-copy-n-paste-error.patch
|
|
|
|
|
Patch10: 0011-modem-helpers-do-not-leak-past-PDP-on-error.patch
|
|
|
|
|
Patch11: 0001-mmcli-fix-a-memory-leak.patch
|
|
|
|
|
|
|
|
|
|
# For mbim-proxy and qmi-proxy
|
|
|
|
|
Requires: libmbim-utils
|
|
|
|
|
Requires: libqmi-utils
|
|
|
|
@ -20,6 +35,7 @@ Requires: %{name}-glib%{?_isa} = %{version}-%{release}
|
|
|
|
|
Conflicts: glib2%{?_isa} < %{glib2_version}
|
|
|
|
|
Conflicts: libqmi%{?_isa} < %{qmi_version}
|
|
|
|
|
Conflicts: libmbim%{?_isa} < %{mbim_version}
|
|
|
|
|
Conflicts: libqrtr-glib%{?_isa} < %{qrtr_version}
|
|
|
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
@ -27,18 +43,17 @@ Requires(preun): systemd
|
|
|
|
|
|
|
|
|
|
Requires: polkit
|
|
|
|
|
|
|
|
|
|
BuildRequires: automake autoconf libtool autoconf-archive
|
|
|
|
|
BuildRequires: dbus
|
|
|
|
|
BuildRequires: meson >= 0.53
|
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
|
BuildRequires: dbus-daemon
|
|
|
|
|
BuildRequires: gettext-devel >= 0.19.8
|
|
|
|
|
BuildRequires: glib2-devel >= 2.56
|
|
|
|
|
BuildRequires: gobject-introspection-devel >= 1.38
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: libgudev1-devel >= 232
|
|
|
|
|
BuildRequires: libmbim-devel >= 1.28.0
|
|
|
|
|
BuildRequires: libmbim-devel >= 1.30.0
|
|
|
|
|
BuildRequires: libqmi-devel >= 1.32.0
|
|
|
|
|
BuildRequires: libqrtr-glib-devel >= 1.0.0
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: systemd-devel >= 209
|
|
|
|
|
BuildRequires: vala
|
|
|
|
@ -50,6 +65,7 @@ BuildRequires: polkit-devel
|
|
|
|
|
The ModemManager service manages WWAN modems and provides a consistent API for
|
|
|
|
|
interacting with these devices to client applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries and headers for adding ModemManager support to applications
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -59,16 +75,20 @@ Requires: pkgconfig
|
|
|
|
|
This package contains various headers for accessing some ModemManager functionality
|
|
|
|
|
from applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package glib
|
|
|
|
|
Summary: Libraries for adding ModemManager support to applications that use glib.
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Requires: glib2 >= %{glib2_version}
|
|
|
|
|
|
|
|
|
|
%description glib
|
|
|
|
|
This package contains the libraries that make it easier to use some ModemManager
|
|
|
|
|
functionality from applications that use glib.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package glib-devel
|
|
|
|
|
Summary: Libraries and headers for adding ModemManager support to applications that use glib.
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
|
|
|
|
@ -79,61 +99,63 @@ Requires: pkgconfig
|
|
|
|
|
This package contains various headers for accessing some ModemManager functionality
|
|
|
|
|
from glib applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package vala
|
|
|
|
|
Summary: Vala bindings for ModemManager
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Requires: vala
|
|
|
|
|
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description vala
|
|
|
|
|
Vala bindings for ModemManager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Regenerate configure, because the one that is shipped
|
|
|
|
|
# doesn't seem to obey --disable-rpath for reasons unknown.
|
|
|
|
|
autoreconf -vif
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--disable-silent-rules \
|
|
|
|
|
--with-systemd-suspend-resume \
|
|
|
|
|
--with-systemd-journal \
|
|
|
|
|
--enable-more-warnings=no \
|
|
|
|
|
--with-udev-base-dir=%{_prefix}/lib/udev \
|
|
|
|
|
--enable-gtk-doc \
|
|
|
|
|
--with-qmi=yes \
|
|
|
|
|
--with-mbim=yes \
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
--enable-plugin-qcom-soc \
|
|
|
|
|
%endif
|
|
|
|
|
--disable-static \
|
|
|
|
|
--with-polkit=permissive \
|
|
|
|
|
--with-dist-version=%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
# Let's avoid BuildRequiring bash-completion because it changes behavior
|
|
|
|
|
# of shell, at least until the .pc file gets into the -devel subpackage.
|
|
|
|
|
# We'll just install the bash-completion file ourselves.
|
|
|
|
|
%meson \
|
|
|
|
|
-Ddist_version='"%{version}-%{release}"' \
|
|
|
|
|
-Dudevdir=/usr/lib/udev \
|
|
|
|
|
-Dsystemdsystemunitdir=%{_unitdir} \
|
|
|
|
|
-Dvapi=true \
|
|
|
|
|
-Dgtk_doc=true \
|
|
|
|
|
-Dpolkit=permissive \
|
|
|
|
|
-Dbash_completion=false
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# make check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%meson_install
|
|
|
|
|
find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference meson.build
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
|
cp -a cli/mmcli-completion %{buildroot}%{_datadir}/bash-completion/completions/mmcli
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
%check
|
|
|
|
|
# meson_test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets glib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post ModemManager.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun ModemManager.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun ModemManager.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
|
|
|
@ -152,6 +174,7 @@ find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/ModemManager/
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
@ -159,11 +182,13 @@ find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files glib
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libmm-glib.so.*
|
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files glib-devel
|
|
|
|
|
%{_libdir}/libmm-glib.so
|
|
|
|
|
%dir %{_includedir}/libmm-glib
|
|
|
|
@ -173,37 +198,97 @@ find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
%{_datadir}/gtk-doc/html/libmm-glib/*
|
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files vala
|
|
|
|
|
%{_datadir}/vala/vapi/libmm-glib.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.22.0-7
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Wed Jul 10 2024 Lubomir Rintel <lkundrak@v3.sk> - 1.22.0-6
|
|
|
|
|
- Some more static analysis fixes (RHEL-38991)
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2024 Lubomir Rintel <lkundrak@v3.sk> - 1.22.0-5
|
|
|
|
|
- Add patches for a couple of bugs that make static analysis unhappy (RHEL-38991)
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.22.0-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2024 Dennis Gilmore <dennis@ausil.us> - 1.22.0-1
|
|
|
|
|
- update to 1.22.0
|
|
|
|
|
|
|
|
|
|
* Sun Jul 30 2023 Tao Jin <tao-j@outlook.com> - 1.20.6-3
|
|
|
|
|
- Rebuilt for RHBZ#2226577
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 24 2023 Lubomir Rintel <lkundrak@v3.sk> - 1.20.6-1
|
|
|
|
|
- Update to 1.20.6
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 10 2023 Lubomir Rintel <lkundrak@v3.sk> - 1.20.2-3
|
|
|
|
|
- Version the qrtr-glib dependency
|
|
|
|
|
|
|
|
|
|
* Sun Jan 08 2023 Lubomir Rintel <lkundrak@v3.sk> - 1.20.2-2
|
|
|
|
|
- Switch to build using meson
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2022 Lubomir Rintel <lkundrak@v3.sk> - 1.20.2-1
|
|
|
|
|
- Update to 1.20.2
|
|
|
|
|
|
|
|
|
|
* Wed Dec 15 2021 Ana Cabral <acabral@redhat.com> - 1.18.2-3
|
|
|
|
|
- Rebuild to update libqmi's libqrtr support (rh #2032807)
|
|
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.8-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat May 14 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 1.18.8-1
|
|
|
|
|
- Update to 1.18.8
|
|
|
|
|
|
|
|
|
|
* Fri Dec 10 2021 Ana Cabral <acabral@redhat.com> - 1.18.2-2
|
|
|
|
|
- Include libqrtr-glib build dependency (rh #1996716)
|
|
|
|
|
* Sat Feb 12 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 1.18.6-1
|
|
|
|
|
- Update to 1.18.6
|
|
|
|
|
|
|
|
|
|
* Thu Oct 7 2021 Ana Cabral <acabral@redhat.com> - 1.18.2-1
|
|
|
|
|
- Upgrade to 1.18.2
|
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Sep 13 2021 Wen Liang <wenliang@redhat.com> - 1.18.0-1
|
|
|
|
|
* Sun Sep 19 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.18.2-1
|
|
|
|
|
- update to 1.18.2
|
|
|
|
|
|
|
|
|
|
* Mon Sep 13 2021 Thomas Haller <thaller@redhat.com> - 1.18.0-2
|
|
|
|
|
- depend ModemManager on polkit package
|
|
|
|
|
|
|
|
|
|
* Sun Sep 12 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.18.0-1
|
|
|
|
|
- Update to 1.18.0
|
|
|
|
|
|
|
|
|
|
* Fri Aug 20 2021 Thomas Haller <thaller@redhat.com> - 1.14.10-6
|
|
|
|
|
- depend ModemManager on polkit package (rh #1995186)
|
|
|
|
|
* Sat Aug 14 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.17.900-1
|
|
|
|
|
- Update to 1.18.0 RC1
|
|
|
|
|
|
|
|
|
|
* Wed Aug 04 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.16.8-4
|
|
|
|
|
- Rebuild for new libmbim/libqmi
|
|
|
|
|
|
|
|
|
|
* Thu Jul 29 2021 Bastien Nocera <bnocera@redhat.com> - 1.16.8-3
|
|
|
|
|
+ ModemManager-1.16.8-3
|
|
|
|
|
- Add polkit support as used upstream
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.8-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 Thomas Haller <thaller@redhat.com> - 1.14.10-5
|
|
|
|
|
- enable polkit support to allow normal users to access modems (rh #1995186)
|
|
|
|
|
* Sat Jul 17 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.16.8-1
|
|
|
|
|
- Update to 1.16.8
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.10-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Mon Jun 07 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.16.6-1
|
|
|
|
|
- Update to 1.16.6
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.10-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Apr 30 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.16.4-1
|
|
|
|
|
- Update to 1.16.4
|
|
|
|
|
|
|
|
|
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.10-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|