File kwin5.spec of Package kwin5.openSUSE_Leap_42.1_Update
#
# spec file for package kwin5
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%bcond_without lang
Name:           kwin5
Version:        5.5.5
Release:        0
Summary:        KDE Window Manager
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source:         kwin-%{version}.tar.xz
Source99:       %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM force-restart-on-crash.patch boo#970598 -- makes kwin successfully restart when it crashes
Patch:          force-restart-on-crash.patch
BuildRequires:  extra-cmake-modules >= 0.0.11
BuildRequires:  kf5-filesystem
BuildRequires:  libQt5Core-private-headers-devel >= 5.4.0
BuildRequires:  libQt5Gui-private-headers-devel >= 5.4.0
BuildRequires:  libQt5PlatformSupport-private-headers-devel >= 5.4.0
BuildRequires:  cmake(KDecoration2) >= %{version}
BuildRequires:  cmake(KF5Activities) >= 5.12.0
BuildRequires:  cmake(KF5Completion) >= 5.12.0
BuildRequires:  cmake(KF5Config) >= 5.12.0
BuildRequires:  cmake(KF5ConfigWidgets) >= 5.12.0
BuildRequires:  cmake(KF5CoreAddons) >= 5.12.0
BuildRequires:  cmake(KF5Crash) >= 5.12.0
BuildRequires:  cmake(KF5Declarative) >= 5.12.0
BuildRequires:  cmake(KF5DocTools) >= 5.12.0
BuildRequires:  cmake(KF5GlobalAccel) >= 5.12.0
BuildRequires:  cmake(KF5I18n) >= 5.12.0
BuildRequires:  cmake(KF5IconThemes) >= 5.12.0
BuildRequires:  cmake(KF5IdleTime) >= 5.12.0
BuildRequires:  cmake(KF5Init) >= 5.12.0
BuildRequires:  cmake(KF5KCMUtils) >= 5.12.0
BuildRequires:  cmake(KF5KIO) >= 5.12.0
BuildRequires:  cmake(KF5NewStuff) >= 5.12.0
BuildRequires:  cmake(KF5Notifications) >= 5.12.0
BuildRequires:  cmake(KF5Package) >= 5.12.0
BuildRequires:  cmake(KF5Plasma) >= 5.12.0
BuildRequires:  cmake(KF5Service) >= 5.12.0
BuildRequires:  cmake(KF5Wayland) >= %{version}
BuildRequires:  cmake(KF5WidgetsAddons) >= 5.12.0
BuildRequires:  cmake(KF5WindowSystem) >= 5.12.0
BuildRequires:  cmake(KF5XmlGui) >= 5.12.0
BuildRequires:  cmake(KScreenLocker) >= %{version}
BuildRequires:  cmake(Qt5Concurrent) >= 5.4.0
BuildRequires:  cmake(Qt5Core) >= 5.4.0
BuildRequires:  cmake(Qt5DBus) >= 5.4.0
BuildRequires:  cmake(Qt5Quick) >= 5.4.0
BuildRequires:  cmake(Qt5QuickWidgets) >= 5.4.0
BuildRequires:  cmake(Qt5Script) >= 5.4.0
BuildRequires:  cmake(Qt5UiTools) >= 5.4.0
BuildRequires:  cmake(Qt5Widgets) >= 5.4.0
BuildRequires:  cmake(Qt5X11Extras) >= 5.4.0
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
BuildRequires:  pkgconfig(wayland-egl)
%endif
BuildRequires:  fdupes
BuildRequires:  libepoxy-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libdrm)
%if 0%{?is_opensuse}
BuildRequires:  pkgconfig(libinput) >= 0.10
BuildRequires:  pkgconfig(libudev)
%endif
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(wayland-cursor) >= 1.2.0
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xcb) >= 1.10
BuildRequires:  pkgconfig(xcb-composite) >= 1.10
BuildRequires:  pkgconfig(xcb-cursor)
BuildRequires:  pkgconfig(xcb-damage) >= 1.10
BuildRequires:  pkgconfig(xcb-glx) >= 1.10
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xcb-randr) >= 1.10
BuildRequires:  pkgconfig(xcb-render) >= 1.10
BuildRequires:  pkgconfig(xcb-shape) >= 1.10
BuildRequires:  pkgconfig(xcb-shm) >= 1.10
BuildRequires:  pkgconfig(xcb-sync) >= 1.10
BuildRequires:  pkgconfig(xcb-xfixes) >= 1.10
BuildRequires:  pkgconfig(xkbcommon) >= 0.4.1
Provides:       windowmanager
# Needed for effects KCM at runtime
Requires:       libQt5Multimedia5
# new default decoration
Requires:       breeze5-decoration
%requires_eq libQt5Core5
%requires_eq libQt5Gui5
%requires_ge Mesa-libEGL1
%requires_ge libKF5WindowSystem5
%requires_ge plasma-framework
%if %{with lang}
Recommends:     %{name}-lang
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%description
KWin is the window manager of the K desktop environment.
%package devel
Summary:        KDE Window Manager - development files
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
Requires:       libkdecoration2-devel >= %{version}
Conflicts:      kdebase4-workspace-devel
%description devel
KWin is the window manager of the K desktop environment.
This package provides development files.
%lang_package
%prep
%setup -q -n kwin-%{version}
%patch -p1
%build
  %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
  %make_jobs
%install
  %kf5_makeinstall -C build
  %fdupes %{buildroot}/%{_kf5_sharedir}/kwin/ %{buildroot}/%{_kf5_servicesdir}/
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_bindir}/kwin*
%config %{_kf5_configdir}/*.knsrc
%config %{_kf5_configdir}/org_kde_kwin.categories
%{_kf5_libdir}/kconf_update_bin/
%{_kf5_libdir}/libexec/
%{_kf5_libdir}/libkwin.so.*
%{_kf5_libdir}/libkdeinit5_kwin*.so
%{_kf5_libdir}/libkwin4_effect_builtins.so.*
%{_kf5_libdir}/libkwineffects.so.*
%{_kf5_libdir}/libkwingl*utils.so.*
%{_kf5_libdir}/libkwinxrenderutils.so.*
%{_kf5_plugindir}/
%{_kf5_qmldir}/
%{_kf5_sharedir}/config.kcfg/
%{_kf5_sharedir}/icons/hicolor/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_sharedir}/kwin/
%{_kf5_sharedir}/kwincompositing/
%{_kf5_notifydir}/
%doc %{_kf5_htmldir}/
%files devel
%defattr(-,root,root)
%doc COPYING*
%{_kf5_prefix}/include/*.h
%{_kf5_libdir}/libkwin4_effect_builtins.so
%{_kf5_libdir}/libkwineffects.so
%{_kf5_libdir}/libkwingl*utils.so
%{_kf5_libdir}/libkwinxrenderutils.so
%{_kf5_libdir}/cmake/KWinDBusInterface/
%{_kf5_sharedir}/dbus-1/interfaces/
%if %{with lang}
%files lang
%defattr(-,root,root)
%doc COPYING*
%{_kf5_localedir}/
%endif
%changelog