189 lines
5.6 KiB
RPMSpec
189 lines
5.6 KiB
RPMSpec
%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)
|
|
|
|
|
|
Name: ModemManager
|
|
Version: 1.14.8
|
|
Release: 2
|
|
Summary: Mobile broadband modem manager
|
|
License: GPLv2+
|
|
URL: https://www.freedesktop.org/wiki/Software/ModemManager/
|
|
Source: https://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz
|
|
|
|
Patch0: backport-mtk-fix-task-completion-when-loading-supported-modes.patch
|
|
Patch1: backport-sms-prevent-crash-if-date-is-out-of-range.patch
|
|
Patch2: backport-core-port-GRegex-GMatchInfo-to-use-autoptr.patch
|
|
Patch3: backport-serial-parsers-fix-invalid-EXZ-error-parser.patch
|
|
Patch4: backport-test-modem-helpers-add-EOL-to-strings-matched-with-G_REGEX_NEWLINE_CRLF.patch
|
|
Patch5: backport-modem-helpers-rework-CGCONTRDP-response-parser.patch
|
|
Patch6: backport-modem-helpers-cinterion-rework-CNMI-test-response-parser.patch
|
|
Patch7: backport-modem-helpers-ublox-rework-UIPADDR-response-parser.patch
|
|
Patch8: backport-modem-helpers-rework-the-CGEV-indication-parser.patch
|
|
|
|
BuildRequires: automake autoconf dbus gtk-doc libtool vala-tools vala-devel
|
|
BuildRequires: gettext-devel glib2-devel gobject-introspection-devel libgudev-devel
|
|
BuildRequires: libqmi-devel libmbim-devel systemd-devel
|
|
BuildRequires: autoconf-archive
|
|
|
|
Requires: libmbim-utils libqmi-utils glib2 >= %{glib2_version}
|
|
Requires: libmbim >= %{mbim_version} libqmi >= %{qmi_version}
|
|
Requires: %{name}-glib = %{version}-%{release}
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
ModemManager is a DBus-activated daemon which controls mobile broadband
|
|
(2G/3G/4G) devices and connections. Whether built-in devices, USB dongles,
|
|
bluetooth-paired telephones, or professional RS232/USB devices with
|
|
external power supplies, ModemManager is able to prepare and configure
|
|
the modems and setup connections with them.
|
|
|
|
%package devel
|
|
Summary: Development package for ModemManager
|
|
Requires: %{name} = %{version}-%{release} pkgconfig
|
|
|
|
%description devel
|
|
%{name}-devel contains header files and libraries for %{name}.
|
|
|
|
%package glib
|
|
Summary: Libraries for applications using glib to use ModemManager
|
|
Requires: glib2 >= %{glib2_version}
|
|
|
|
%description glib
|
|
Libraries for applications using glib to use ModemManager.
|
|
|
|
%package glib-devel
|
|
Summary: Development package for applications using glib to use ModemManager
|
|
Requires: pkgconfig
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-glib = %{version}-%{release}
|
|
Requires: glib2-devel >= %{glib2_version}
|
|
|
|
%description glib-devel
|
|
Development package for applications using glib to use ModemManager.
|
|
|
|
%package vala
|
|
Summary: Vala bindings for ModemManager
|
|
Requires: vala
|
|
Requires: %{name}-glib = %{version}-%{release}
|
|
|
|
%description vala
|
|
Vala bindings for ModemManager
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
autoreconf -if
|
|
%configure \
|
|
--enable-gtk-doc --enable-more-warnings=no --disable-rpath \
|
|
--disable-silent-rules --with-udev-base-dir=%{_prefix}/lib/udev \
|
|
--with-qmi=yes --with-mbim=yes --with-polkit=no --with-dist-version=%{version}-%{release} \
|
|
--with-systemd-journal --with-systemd-suspend-resume
|
|
%make_build
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
%make_install
|
|
%delete_la
|
|
|
|
%post
|
|
%systemd_post ModemManager.service
|
|
|
|
%preun
|
|
%systemd_preun ModemManager.service
|
|
|
|
%ldconfig_scriptlets glib
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS
|
|
%license COPYING COPYING.LIB
|
|
%{_bindir}/mmcli
|
|
%{_sbindir}/ModemManager
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/*.so
|
|
%{_datadir}/locale/*
|
|
%{_udevrulesdir}/*
|
|
%{_unitdir}/ModemManager.service
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
|
|
%{_datadir}/bash-completion
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
|
|
%{_datadir}/ModemManager
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_includedir}/ModemManager/
|
|
|
|
%files glib
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmm-glib.so.*
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
%files glib-devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmm-glib.so
|
|
%{_libdir}/pkgconfig/mm-glib.pc
|
|
%{_includedir}/libmm-glib/*.h
|
|
%{_datadir}/gtk-doc/html/libmm-glib/*
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
%files vala
|
|
%defattr(-,root,root)
|
|
%{_datadir}/vala/vapi/libmm-glib.*
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc README TODO NEWS ChangeLog
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man1/*
|
|
%{_datadir}/icons/hicolor/22x22/apps/*.png
|
|
%{_datadir}/gtk-doc/html/*/*
|
|
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
|
%changelog
|
|
* Sat Nov 12 2022 gaihuiying <eaglegai@163.com> - 1.14.8-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: fix test failure because of glib2 switching to pcre2
|
|
|
|
* Wed Jan 27 2021 xihaochen <xihaochen@huawei.com> - 1.14.8-1
|
|
- Type:requirements
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: update ModemManager to 1.14.8
|
|
|
|
* Thu Dec 03 2020 liulong <liulong20@huawei.com> - 1.14.0-9
|
|
- Type:bugfix
|
|
- Id:NA
|
|
- SUG:NA
|
|
- DESC:fix service startup failure.
|
|
|
|
* Fri Jul 17 2020 cuibaobao <cuibaobao1@huawei.com> - 1.14.0-8
|
|
- Type:update
|
|
- Id:NA
|
|
- SUG:NA
|
|
- DESC:update to 1.14.0
|
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.0-7
|
|
- Type:bugfix
|
|
- Id:NA
|
|
- SUG:NA
|
|
- DESC:change the directory of the license file
|
|
|
|
* Thu Sep 05 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.0-6
|
|
- Type:enhance
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:new rule
|
|
|
|
* Thu Aug 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.0-5
|
|
- Package init
|