# # spec file for package kwayland # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define kwayland_server 0 Name: kwayland Version: 5.1.0 Release: 0 Summary: KDE Wayland library License: LGPL-2.1+ Group: Development/Libraries/KDE Url: http://www.kde.org Source: %{name}-%{version}.1.tar.xz Source1: baselibs.conf # PATCH-FIX-UPSTREAM 0001-Do-not-find-unused-Wayland-components.patch Patch0: 0001-Do-not-find-unused-Wayland-components.patch BuildRequires: cmake >= 2.8.12 BuildRequires: extra-cmake-modules >= 1.2.0 BuildRequires: fdupes BuildRequires: kf5-filesystem BuildRequires: wayland-devel >= 1.3.0 BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0 BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KWayland provides a Qt-style Client and Server library wrapper for the Wayland libraries. %package -n libKF5WaylandClient5 Summary: KDE Wayland library Group: Development/Libraries/KDE %description -n libKF5WaylandClient5 KWayland provides a Qt-style Client and Server library wrapper for the Wayland libraries. %package -n libKF5WaylandServer5 Summary: KDE Wayland library Group: Development/Libraries/KDE %description -n libKF5WaylandServer5 KWayland provides a Qt-style Client and Server library wrapper for the Wayland libraries. %package devel Summary: KDE Wayland library: Build Environment Group: Development/Libraries/KDE Requires: extra-cmake-modules >= 1.2.0 Requires: libKF5WaylandClient5 = %{version} Requires: pkgconfig(Qt5Gui) >= 5.2.0 %if %kwayland_server Requires: libKF5WaylandServer5 = %{version} %endif %description devel KWayland provides a Qt-style Client and Server library wrapper for the Wayland libraries. %prep %setup -q %patch0 -p1 %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %post -n libKF5WaylandClient5 -p /sbin/ldconfig %postun -n libKF5WaylandClient5 -p /sbin/ldconfig %if %kwayland_server %post -n libKF5WaylandServer5 -p /sbin/ldconfig %postun -n libKF5WaylandServer5 -p /sbin/ldconfig %endif %files -n libKF5WaylandClient5 %defattr(-,root,root) %doc COPYING* %{_kf5_libdir}/libKF5WaylandClient.so.* %if %kwayland_server %files -n libKF5WaylandServer5 %defattr(-,root,root) %doc COPYING* %{_kf5_libdir}/libKF5WaylandServer.so.* %endif %files devel %defattr(-,root,root) %{_kf5_libdir}/libKF5WaylandClient.so %if %kwayland_server %{_kf5_libdir}/libKF5WaylandServer.so %endif %{_kf5_libdir}/cmake/KF5Wayland/ %{_kf5_includedir}/ %changelog