update to 1.14.6 [release 1.14.6-1mamba;Sat Nov 07 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:49:02 +01:00
parent 2cc46cacf7
commit 30a7512745

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: ModemManager
Epoch: 1
Version: 1.9.990
Version: 1.14.6
Release: 1mamba
Summary: Provides a DBus interface to communicate with mobile broadband (GSM, CDMA, UMTS, …) cards
Group: Applications/Networking
@ -9,45 +9,48 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gitorious.org/modemmanager
## Source from git:
## git clone git://anongit.freedesktop.org/ModemManager/ModemManager.git
## cd ModemManager
## ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
Source: http://www.freedesktop.org/software/ModemManager/ModemManager-%{version}.tar.xz
#Source: http://ftp.gnome.org/pub/GNOME/sources/ModemManager/%{majver}/ModemManager-%{version}.tar.xz
#Source: http://cgit.freedesktop.org/ModemManager/ModemManager/snapshot/ModemManager-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libffi-devel
BuildRequires: ldconfig
BuildRequires: libglib-devel
BuildRequires: libgudev-devel
BuildRequires: libmbim-devel
BuildRequires: libpcre-devel
BuildRequires: libpolkit-devel
BuildRequires: libqmi-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libz-devel
BuildRequires: polkit-devel
BuildRequires: systemd-devel
BuildRequires: udev-devel
BuildRequires: libsystemd-devel
## AUTOBUILDREQ-END
BuildRequires: libqmi-devel >= 1.20.2
BuildRequires: libmbim-devel >= 1.10.0
Requires: mobile-broadband-provider-info
Requires: usb-modeswitch
Requires: libmm = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
ModemManager provides a DBus interface to communicate with mobile broadband (GSM, CDMA, UMTS, …) cards. Implements a loadable plugin interface to add work-arounds for non standard devices.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
%package -n libmm
Summary: Shared libraries provided by %{name}
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
%description -n libmm
ModemManager provides a DBus interface to communicate with mobile broadband (GSM, CDMA, UMTS, …) cards. Implements a loadable plugin interface to add work-arounds for non standard devices.
This package contains static libraries and header files need for development.
This package contains the shared libraries provided by %{name}.
%package -n libmm-devel
Summary: Devel package for libmm
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libmm = %{?epoch:%epoch:}%{version}-%{release}
Provides: ModemManager-devel
Obsoletes: ModemManager-devel
%description -n libmm-devel
ModemManager provides a DBus interface to communicate with mobile broadband (GSM, CDMA, UMTS, …) cards. Implements a loadable plugin interface to add work-arounds for non standard devices.
This package contains static libraries and header files needed for development.
%debug_package
@ -68,33 +71,30 @@ This package contains static libraries and header files need for development.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
systemctl -q enable ModemManager
fi
%systemd_post ModemManager
:
%preun
# erase
if [ $1 -eq 0 ]; then
systemctl -q stop ModemManager
systemctl -q disable ModemManager
systemctl -q daemon-reload
fi
exit 0
%systemd_preun ModemManager
:
%postun
%systemd_postun_with_restart ModemManager
:
%post -n libmm -p /sbin/ldconfig
%postun -n libmm -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
%{_bindir}/mmcli
/lib/systemd/system/ModemManager.service
/lib/udev/rules.d/77-mm-*.rules
/lib/udev/rules.d/80-mm-candidate.rules
%{_sbindir}/ModemManager
%{_libdir}/libmm-glib.so.*
%{_libdir}/girepository-1.0/ModemManager-1.0.typelib
%dir %{_libdir}/ModemManager
%{_libdir}/ModemManager/libmm-*
%dir %{_datadir}/ModemManager
%{_datadir}/ModemManager/mm-foxconn-t77w968-carrier-mapping.conf
%{_unitdir}/ModemManager.service
%{_udevrulesdir}/77-mm-*.rules
%{_udevrulesdir}/80-mm-candidate.rules
%{_datadir}/bash-completion/completions/mmcli
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
@ -102,10 +102,17 @@ exit 0
%{_datadir}/icons/hicolor/22x22/apps/ModemManager.png
%{_mandir}/man1/mmcli.1*
%{_mandir}/man8/ModemManager.8*
%doc AUTHORS COPYING
# README
%files devel
%files -n libmm
%defattr(-,root,root)
%{_libdir}/libmm-glib.so.*
%{_libdir}/girepository-1.0/ModemManager-1.0.typelib
%dir %{_libdir}/ModemManager
%{_libdir}/ModemManager/libmm-*.la
%{_libdir}/ModemManager/libmm-*.so
%doc AUTHORS COPYING
%files -n libmm-devel
%defattr(-,root,root)
%dir %{_includedir}/ModemManager
%{_includedir}/ModemManager/ModemManager*.h
@ -120,6 +127,9 @@ exit 0
%{_libdir}/pkgconfig/mm-glib.pc
%changelog
* Sat Nov 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.14.6-1mamba
- update to 1.14.6
* Sat May 23 2020 Automatic Build System <autodist@mambasoft.it> 1.9.990-1mamba
- automatic update by autodist