89 lines
2.2 KiB
RPMSpec
89 lines
2.2 KiB
RPMSpec
%undefine __cmake_in_source_build
|
|
%global framework networkmanager-qt
|
|
|
|
Name: kf5-%{framework}
|
|
Version: 5.97.0
|
|
Release: 1
|
|
Summary: A Tier 1 KDE Frameworks 5 module that wraps NetworkManager 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
|
|
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
|
|
|
BuildRequires: extra-cmake-modules >= %{majmin}
|
|
BuildRequires: kf5-rpm-macros >= %{majmin}
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: pkgconfig(libnm)
|
|
|
|
Requires: NetworkManager >= 0.9.9.0
|
|
Requires: kf5-filesystem >= %{majmin}
|
|
|
|
%description
|
|
A Tier 1 KDE Frameworks 5 Qt library for NetworkManager.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: qt5-qtbase-devel
|
|
Requires: pkgconfig(libnm)
|
|
%description devel
|
|
Qt libraries and header files for developing applications
|
|
that use NetworkManager.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{framework}-%{version}
|
|
|
|
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake_kf5} ..
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSES/*.txt
|
|
%{_kf5_datadir}/qlogging-categories5/*categories
|
|
%{_kf5_libdir}/libKF5NetworkManagerQt.so.*
|
|
|
|
%files devel
|
|
%{_kf5_libdir}/libKF5NetworkManagerQt.so
|
|
%{_kf5_libdir}/cmake/KF5NetworkManagerQt/
|
|
%{_kf5_includedir}/NetworkManagerQt/
|
|
|
|
|
|
%changelog
|
|
* Mon Sep 05 2022 liweiganga <liweiganga@uniontech.com> - 5.97.0-1
|
|
- update to upstream version 5.97.0
|
|
|
|
* Tue Jul 05 2022 peijiankang <peijiankang@kylinos.cn> - 5.95.0-1
|
|
- update to upstream version 5.95.0
|
|
|
|
* Sat Feb 12 2022 peijiankang <peijiankang@kylinos.cn> - 5.90.0-1
|
|
- update to upstream version 5.90.0
|
|
|
|
* Mon Jan 24 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.88.0-1
|
|
- update to upstream version 5.88.0
|
|
|
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
|
- Initial release for OpenEuler
|