update kf5-modemmanager-qt.spec.
Signed-off-by: zhangkea <zhangkea@uniontech.com>
This commit is contained in:
parent
41fc47537a
commit
6b79733a18
@ -8,13 +8,9 @@ Summary: A Tier 1 KDE Frameworks module wrapping ModemManager DBus API
|
|||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://invent.kde.org/frameworks/%{framework}
|
URL: https://invent.kde.org/frameworks/%{framework}
|
||||||
|
|
||||||
%global majmin %(echo %{version} | cut -d. -f1-2)
|
%global majmin %majmin_ver_kf5
|
||||||
%global revision %(echo %{version} | cut -d. -f3)
|
%global stable %stable_kf5
|
||||||
%if %{revision} >= 50
|
|
||||||
%global stable unstable
|
|
||||||
%else
|
|
||||||
%global stable stable
|
|
||||||
%endif
|
|
||||||
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/modemmanager-qt-%{version}.tar.xz
|
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/modemmanager-qt-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: extra-cmake-modules >= %{majmin}
|
BuildRequires: extra-cmake-modules >= %{majmin}
|
||||||
@ -44,15 +40,12 @@ that use ModemManager.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir %{_target_platform}
|
%cmake_kf5
|
||||||
pushd %{_target_platform}
|
|
||||||
%{cmake_kf5} ..
|
|
||||||
popd
|
|
||||||
%make_build -C %{_target_platform}
|
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user