File wrapland.spec of Package Wrapland

# Spec file for package wrapland
# Copyright © 2020 Markus S. <>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>.

Name:           wrapland
Version:        0.520.0
Release:        0
Summary:        C++ wrapper for the libwayland client and server API
License:        LGPL-2.1-or-later
Group:          Development/Libraries/KDE
Source:         %{name}-%{version}.tar.gz
BuildRequires:  binutils
BuildRequires:  cmake >= 3.5
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  kf5-filesystem
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libqt5-qttools-qhelpgenerator
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(egl)
BuildRequires:  cmake(KF5Wayland) >= 5.70.0
BuildRequires:  cmake(PlasmaWaylandProtocols) >= 1.0
BuildRequires:  cmake(Qt5Concurrent)
BuildRequires:  cmake(Qt5Gui) >= 5.15.0
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5WaylandClient)
BuildRequires:  pkgconfig(egl)
BuildRequires:  wayland-devel
BuildRequires:  doxygen
BuildRequires:  pkgconfig(wayland-client) >= 1.15.0
BuildRequires:  pkgconfig(wayland-protocols) >= 1.18
BuildRequires:  pkgconfig(wayland-server) >= 1.15.0

Wrapland is a Qt/C++ library that wraps and mediates the libwayland
client and server API for its consumers. Wrapland is an independent
part of the KWinFT project with the KWinFT window manager being
first and most prominent user.

%package devel
Summary:        wrapland: Build Environment
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
Requires:       extra-cmake-modules
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core) >= 5.12.0
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Widgets)

%description devel
Client and Server library wrapper for the Wayland libraries.

%autosetup -p1

cmake \
    -DCMAKE_BUILD_TYPE=Release \


%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%license COPYING.LIB

%files devel