update kf5-modemmanager-qt.spec.

Signed-off-by: zhangkea <zhangkea@uniontech.com>
This commit is contained in:
zhangkea 2023-08-03 08:02:49 +00:00 committed by Gitee
parent 41fc47537a
commit 6b79733a18
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8,13 +8,9 @@ Summary: A Tier 1 KDE Frameworks module wrapping ModemManager DBus API
License: LGPLv2+
URL: https://invent.kde.org/frameworks/%{framework}
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
%global majmin %majmin_ver_kf5
%global stable %stable_kf5
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/modemmanager-qt-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{majmin}
@ -44,15 +40,12 @@ that use ModemManager.
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
%make_build -C %{_target_platform}
%cmake_kf5
%make_build
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%make_install
%ldconfig_scriptlets