%undefine __cmake_in_source_build
%global wayland_min_version 1.3
Name: kwayland-server
Version: 5.19.4
Release: 2%{?dist}
Summary: Wayland server components built on KDE Frameworks
License: LGPLv2+ and MIT and BSD
URL: https://cgit.kde.org/%{name}.git
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires: qt5-qtbase-devel
BuildRequires: extra-cmake-modules
BuildRequires: kf5-kwayland-devel
BuildRequires: wayland-devel
BuildRequires: wayland-protocols-devel
BuildRequires: plasma-wayland-protocols-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: cmake(KF5GuiAddons)
BuildRequires: cmake(Qt5WaylandClient)
Requires: qt5-qtbase
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1
%build
%{cmake_kf5}
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets
%files
%license COPYING.LIB
%{_kf5_datadir}/qlogging-categories5/kwaylandserver.categories
%{_kf5_libdir}/libKWaylandServer.so.*
%files devel
%{_kf5_libdir}/libKWaylandServer.so
%{_includedir}/KWaylandServer/
%{_includedir}/kwaylandserver_version.h
%{_libdir}/cmake/KWaylandServer/
%changelog
* Fri Jul 31 2020 Jan Grulich <jgrulich@redhat.com> - 5.19.4-2
- Rebuild (plasma-wayland-protocols)
* Tue Jul 28 2020 Jan Grulich <jgrulich@redhat.com> - 5.19.4-1
- 5.19.4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.19.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 07 2020 Jan Grulich <jgrulich@redhat.com> - 5.19.3-1
- 5.19.3
* Tue Jun 23 2020 Jan Grulich <jgrulich@redhat.com> - 5.19.2-1
- 5.19.2
* Wed Jun 17 2020 Martin Kyral <martin.kyral@gmail.com> - 5.19.1-1
- 5.19.1
* Tue Jun 9 2020 Martin Kyral <martin.kyral@gmail.com> - 5.19.0-1
- 5.19.0
* Fri May 22 2020 Martin Kyral <martin.kyral@gmail.com> - 5.18.90-1
- 5.18.90