%define qtver 5.15.2
%define kfname kwayland
-Summary: Framework for managing menu and toolbar actions
+Summary: Qt-style API to interact with the wayland-client and wayland-server API
+Summary(pl.UTF-8): API w stylu Qt do interakcji z API wayland-client i wayland-server
Name: kf5-%{kfname}
Version: 5.97.0
Release: 2
-License: LGPL v2.1+
+License: LGPL v2.1 or KDE-accepted LGPL v3+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
# Source0-md5: c0943e04bb7f514c58bcb9b891efb080
BuildRequires: cmake >= 3.16
BuildRequires: gettext-devel
BuildRequires: kf5-extra-cmake-modules >= %{version}
-BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.4.0
+BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.7.0
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.736
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-kwayland
+KWayland is a Qt-style API to interact with the wayland-client and
+wayland-server API.
+
+%description -l pl.UTF-8
+KWayland to API w stylu Qt do interakcji z API wayland-client i
+wayland-server.
%package devel
Summary: Header files for %{kfname} development
%{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
+
%ninja_build
%if %{with tests}
ctest
%endif
-
%install
rm -rf $RPM_BUILD_ROOT
+
%ninja_install -C build
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc README.md
-%{_datadir}/qlogging-categories5/kwayland.categories
+%doc README.md LICENSES/LicenseRef-KDE-Accepted-LGPL.txt
%ghost %{_libdir}/libKF5WaylandClient.so.5
%attr(755,root,root) %{_libdir}/libKF5WaylandClient.so.5.*.*
%ghost %{_libdir}/libKF5WaylandServer.so.5
%attr(755,root,root) %{_libdir}/libKF5WaylandServer.so.5.*.*
-%attr(755,root,root) %{_prefix}/libexec/org-kde-kf5-kwayland-testserver
+%attr(755,root,root) %{_libexecdir}/org-kde-kf5-kwayland-testserver
+%{_datadir}/qlogging-categories5/kwayland.categories
%{_datadir}/qlogging-categories5/kwayland.renamecategories
%files devel
%defattr(644,root,root,755)
+%{_libdir}/libKF5WaylandClient.so
+%{_libdir}/libKF5WaylandServer.so
%{_includedir}/KF5/KWayland
+%{_pkgconfigdir}/KF5WaylandClient.pc
%{_libdir}/cmake/KF5Wayland
%{_libdir}/qt5/mkspecs/modules/qt_KWaylandClient.pri
%{_libdir}/qt5/mkspecs/modules/qt_KWaylandServer.pri
-%{_libdir}/libKF5WaylandClient.so
-%{_libdir}/libKF5WaylandServer.so
-%{_pkgconfigdir}/KF5WaylandClient.pc