Initialize for ModemManager
This commit is contained in:
commit
6629713189
6 changed files with 1753 additions and 0 deletions
1
.ModemManager.metadata
Normal file
1
.ModemManager.metadata
Normal file
|
@ -0,0 +1 @@
|
|||
64bd8df0f8131fe7e6bb53c14407713081d3304fb86a03592467ab4cb0b712fc ModemManager-1.18.10.tar.xz
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
ModemManager-1.18.10.tar.xz
|
6
ModemManager-1.18.10.tar.xz.asc
Normal file
6
ModemManager-1.18.10.tar.xz.asc
Normal file
|
@ -0,0 +1,6 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQTYjWuQGY+SSnhwXYw8rVM5iXP/+gUCYrcDEQAKCRA8rVM5iXP/
|
||||
+igYAJ4y4/2y3cJEhQAVGJHPSZMIPoPfKACeOSlSd6Uz2313Y0R3lWyLzbfGonk=
|
||||
=g4J9
|
||||
-----END PGP SIGNATURE-----
|
1533
ModemManager.changes
Normal file
1533
ModemManager.changes
Normal file
File diff suppressed because it is too large
Load diff
40
ModemManager.keyring
Normal file
40
ModemManager.keyring
Normal file
|
@ -0,0 +1,40 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGiBElVP3gRBADLxXlEnz7zt/hlWuqMIY7EmH1jkvyqFNkG3O7KrN09Kq7X6ovb
|
||||
Kg14Ou4E6hdaTdvnaDinOU33e0SD1IDIQUjindd0iSEi7K61qD9oQH1LVkNK5Kww
|
||||
DOfxuEi3K3PkESrHbZ6y/5WjNo5FDRgByJ/Eyh9RMWEMnLp0Zo+HZ7tZtwCgho2F
|
||||
VFUlAWk91Owg/idPC7lf9gcEALzx2VBFE86YAv4wbCjuuIdqjl9ceUvIOLZWTlrY
|
||||
c4KFdBEF6NZ0BPP1Ck0AjKoJyZk3NcCGfNwqbtxxVyaMdcI/PDSuSWO5aC/ZuTUv
|
||||
Sr8cjh4i7Sqa5YXQOwO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Normal file
172
ModemManager.spec
Normal file
|
@ -0,0 +1,172 @@
|
|||
#
|
||||
# spec file for package ModemManager
|
||||
#
|
||||
# Copyright (c) 2022-2023 ZhuningOS
|
||||
#
|
||||
|
||||
|
||||
%define _udevdir %(pkg-config --variable udevdir udev)
|
||||
Name: ModemManager
|
||||
Version: 1.18.10
|
||||
Release: 150500.1.2
|
||||
Summary: DBus interface for modem handling
|
||||
License: GPL-2.0-or-later AND GPL-3.0-or-later
|
||||
Group: Productivity/Networking/System
|
||||
URL: http://cgit.freedesktop.org/ModemManager/ModemManager
|
||||
Source0: https://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
||||
Source1: https://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz.asc
|
||||
Source2: %{name}.keyring
|
||||
BuildRequires: dbus-1-glib-devel
|
||||
BuildRequires: gobject-introspection-devel >= 0.9.6
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libgudev-1_0-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: ppp-devel
|
||||
BuildRequires: python3-dbus-python
|
||||
BuildRequires: python3-gobject-Gdk
|
||||
BuildRequires: vala-devel >= 0.18
|
||||
BuildRequires: pkgconfig(gudev-1.0) >= 147
|
||||
BuildRequires: pkgconfig(libsystemd) >= 209
|
||||
BuildRequires: pkgconfig(mbim-glib) >= 1.24.0
|
||||
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.97
|
||||
BuildRequires: pkgconfig(qmi-glib) >= 1.26.0
|
||||
BuildRequires: pkgconfig(qrtr-glib)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
Requires: hicolor-icon-theme
|
||||
Recommends: libmbim
|
||||
Recommends: usb_modeswitch
|
||||
Provides: org.freedesktop.ModemManager
|
||||
%{?systemd_ordering}
|
||||
|
||||
%description
|
||||
DBus interface for modem handling. Provides a standard abstracted API
|
||||
(over DBus) to communicate with all sorts of modems (landline, GSM,
|
||||
CDMA).
|
||||
|
||||
%package -n libmm-glib0
|
||||
Summary: Glib bindings for the modem handling DBus interface
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libmm-glib0
|
||||
DBus interface for modem handling. Provides a standard abstracted API
|
||||
(over DBus) to communicate with all sorts of modems (landline, GSM,
|
||||
CDMA).
|
||||
|
||||
%package -n typelib-1_0-ModemManager-1_0
|
||||
Summary: Introspection bindings for the modem handling DBus interface
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n typelib-1_0-ModemManager-1_0
|
||||
DBus interface for modem handling. Provides a standard abstracted API
|
||||
(over DBus) to communicate with all sorts of modems (landline, GSM,
|
||||
CDMA).
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the modem handling DBus interface
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libmm-glib0 = %{version}
|
||||
Requires: typelib-1_0-ModemManager-1_0 = %{version}
|
||||
|
||||
%description devel
|
||||
DBus interface for modem handling. Provides a standard abstracted API
|
||||
(over DBus) to communicate with all sorts of modems (landline, GSM,
|
||||
CDMA).
|
||||
|
||||
%package bash-completion
|
||||
Summary: Bash completion for mmcli
|
||||
Group: Productivity/Networking/System
|
||||
Requires: bash-completion
|
||||
Supplements: (%{name} and bash-completion)
|
||||
BuildArch: noarch
|
||||
|
||||
%description bash-completion
|
||||
This package contain the bash completion command for nmcli tools.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
pppddir=`ls -1d %{_libdir}/pppd/2*`
|
||||
test -n "$pppddir" || exit 1
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-polkit \
|
||||
--with-systemd-journal \
|
||||
--with-systemd-suspend-resume=yes \
|
||||
--with-udev-base-dir=%{_udevdir} \
|
||||
--with-dbus-sys-dir=%{_datadir}/dbus-1/system.d \
|
||||
--with-qmi \
|
||||
--with-qrtr \
|
||||
--with-mbim \
|
||||
%{nil}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
# create suse-specific rcFOO link
|
||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcModemManager
|
||||
%find_lang ModemManager %{name}.lang
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
|
||||
%pre
|
||||
%service_add_pre ModemManager.service
|
||||
|
||||
%post
|
||||
%{?udev_rules_update:%udev_rules_update}
|
||||
%service_add_post ModemManager.service
|
||||
|
||||
%preun
|
||||
%service_del_preun ModemManager.service
|
||||
|
||||
%postun
|
||||
%service_del_postun ModemManager.service
|
||||
|
||||
%post -n libmm-glib0 -p /sbin/ldconfig
|
||||
%postun -n libmm-glib0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS README
|
||||
%{_bindir}/mmcli
|
||||
%{_sbindir}/ModemManager
|
||||
%{_sbindir}/rcModemManager
|
||||
%{_datadir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
|
||||
%{_libdir}/ModemManager/
|
||||
%{_datadir}/dbus-1/interfaces/*.xml
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
|
||||
%{_datadir}/icons/hicolor/*/*/ModemManager.png
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy
|
||||
%{_datadir}/ModemManager
|
||||
%{_udevdir}/rules.d/*-mm-*.rules
|
||||
%{_unitdir}/ModemManager.service
|
||||
%{_mandir}/man1/mmcli.1%{?ext_man}
|
||||
%{_mandir}/man8/ModemManager.8%{?ext_man}
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%files -n libmm-glib0
|
||||
%{_libdir}/libmm-glib.so.*
|
||||
|
||||
%files -n typelib-1_0-ModemManager-1_0
|
||||
%{_libdir}/girepository-1.0/ModemManager-1.0.typelib
|
||||
|
||||
%files devel
|
||||
%{_datadir}/gir-1.0/ModemManager-1.0.gir
|
||||
%{_datadir}/vala/vapi/
|
||||
%{_includedir}/ModemManager/
|
||||
%{_includedir}/libmm-glib/
|
||||
%{_libdir}/libmm-glib.so
|
||||
%{_libdir}/pkgconfig/ModemManager.pc
|
||||
%{_libdir}/pkgconfig/mm-glib.pc
|
||||
|
||||
%files bash-completion
|
||||
%{_datadir}/bash-completion/
|
||||
|
||||
%changelog
|
Loading…
Add table
Reference in a new issue