Compare commits

..

No commits in common. "8bcc6c60513ff8d30c7b11ca62c66166305d20f1" and "261aa49624e787ecdfde0ad4c507b01fdbf9e46e" have entirely different histories.

3 changed files with 20 additions and 56 deletions

BIN
ModemManager-1.14.8.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -4,17 +4,17 @@
Name: ModemManager
Version: 1.22.0
Release: 2
Version: 1.14.8
Release: 1
Summary: Mobile broadband modem manager
License: GPLv2+
URL: https://www.freedesktop.org/wiki/Software/ModemManager/
Source: https://gitlab.com/linux-mobile-broadband/ModemManager/-/archive/%{version}/%{name}-%{version}.tar.bz2
Source: https://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz
BuildRequires: meson >= 0.53 dbus-devel gtk-doc vala-tools vala-devel
BuildRequires: automake autoconf dbus gtk-doc libtool vala-tools vala-devel
BuildRequires: gettext-devel glib2-devel gobject-introspection-devel libgudev-devel
BuildRequires: libqmi-devel >= 1.34.0 libmbim-devel >= 1.30.0 systemd-devel systemd
BuildRequires: python3-gobject python3-dbus pkgconfig(polkit-gobject-1)
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}
@ -64,28 +64,23 @@ Vala bindings for ModemManager
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%autosetup -n %{name}-%{version}
%build
%meson \
-Ddist_version='"%{version}-%{release}"' \
-Dvapi=true \
-Dqrtr=false \
-Dgtk_doc=true \
-Dpolkit=permissive \
-Dbash_completion=false
%meson_build
%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
%delete_la
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
%meson_test
make check
%install
%make_install
%delete_la
%post
%systemd_post ModemManager.service
@ -108,7 +103,6 @@ cp -a cli/mmcli-completion %{buildroot}%{_datadir}/bash-completion/completions/m
%{_unitdir}/ModemManager.service
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
%{_datadir}/bash-completion
%{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
%{_datadir}/ModemManager
@ -136,7 +130,7 @@ cp -a cli/mmcli-completion %{buildroot}%{_datadir}/bash-completion/completions/m
%files help
%defattr(-,root,root)
%doc README NEWS
%doc README TODO NEWS ChangeLog
%{_mandir}/man8/*
%{_mandir}/man1/*
%{_datadir}/icons/hicolor/22x22/apps/*.png
@ -144,36 +138,6 @@ cp -a cli/mmcli-completion %{buildroot}%{_datadir}/bash-completion/completions/m
%{_datadir}/dbus-1/interfaces/*.xml
%changelog
* Wed Mar 13 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.22.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix build error: add missing BuildRequires:pkgconfig(polkit-gobject-1)
* Tue Jan 02 2024 gaihuiying <eaglegai@163.com> - 1.22.0-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update ModemManager to 1.22.0
* Mon Jul 24 2023 gaihuiying <eaglegai@163.com> - 1.20.6-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update ModemManager to 1.20.6
* Fri Nov 18 2022 gaihuiying <eaglegai@163.com> - 1.18.12-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update ModemManager to 1.18.12
* 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