File mingw32-breeze.spec of Package mingw32-breeze5-style

#
# spec file for package breeze
#
# Copyright (c) 2018 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/
#


# Full Plasma 5 version (e.g. 5.8.95)
%{!?_plasma5_bugfix: %define _plasma5_bugfix %{version}}
# Latest ABI-stable Plasma (e.g. 5.8 in KF5, but 5.8.95 in KUF)
%{!?_plasma5_version: %define _plasma5_version %(echo %{_plasma5_bugfix} | awk -F. '{print $1"."$2}')}
%bcond_without lang
%define _name   breeze
Name:           mingw32-%{_name}
Version:        5.14.0
Release:        0
Summary:        Plasma Desktop artwork, styles and assets
License:        GPL-2.0-or-later
Group:          System/GUI/KDE
URL:            http://www.kde.org
Source:         breeze-%{version}.tar.xz
%if %{with lang}
Source1:        breeze-%{version}.tar.xz.sig
Source2:        plasma.keyring
%endif
BuildRequires:  cmake >= 2.8.12
BuildRequires:  mingw32-extra-cmake-modules >= 0.0.13
BuildRequires:  fdupes
#BuildRequires:  fftw3-devel
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-kf5-tools
BuildRequires:  mingw32-cross-libqt5-qmake >= 5.2.0
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-cross-wine >= 1.2.0
BuildRequires:  mingw32-fftw3-devel 
BuildRequires:  mingw32-hicolor-icon-theme
BuildRequires:  mingw32-kf5-filesystem
# Needed for Plasma/LookAndFeel service type declaration (kde#367923)
#BuildRequires:  plasma-framework
BuildRequires:  mingw32-libkdecoration2-devel >= %{_plasma5_version}
BuildRequires:  mingw32-kconfigwidgets-devel
BuildRequires:  mingw32-kcoreaddons-devel
#BuildRequires:  mingw32-kframeworkintegration-devel
BuildRequires:  mingw32-kguiaddons-devel
BuildRequires:  mingw32-ki18n-devel
BuildRequires:  mingw32-kcmutils-devel
BuildRequires:  mingw32-kpackage-devel
#BuildRequires:  mingw32-Wayland-devel
BuildRequires:  mingw32-kwindowsystem-devel
BuildRequires:  mingw32-libqt5-qtbase-devel >= 5.2.0
BuildRequires:  mingw32(cmake:Qt5DBus) >= 5.4.0
BuildRequires:  mingw32(cmake:Qt5Quick) >= 5.4.0
BuildRequires:  mingw32(cmake:Qt5Widgets) >= 5.4.0
#BuildRequires:  cmake(Qt5X11Extras) >= 5.4.0
#BuildRequires:  pkgconfig(x11-xcb)
#BuildRequires:  pkgconfig(xcb)
Requires:       mingw32-breeze5-cursors >= %{version}
Requires:       mingw32-breeze5-icons >= %{version}
Requires:       mingw32-breeze5-style >= %{version}
Requires:       mingw32-breeze5-wallpapers >= %{version}
Recommends:     mingw32-breeze5-decoration >= %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.

%package -n mingw32-breeze5-cursors
Summary:        Plasma Desktop artwork, styles and assets
Group:          System/GUI/KDE
BuildArch:      noarch

%description -n mingw32-breeze5-cursors
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.
This package provides Breeze cursor theme.

%package -n mingw32-breeze5-style
Summary:        Plasma Desktop artwork, styles and assets
Group:          System/GUI/KDE
Requires:       mingw32-breeze-gtk
Requires:       mingw32-kconf_update5
%if %{with lang}
Recommends:     mingw32-breeze5-style-lang
%endif

%description -n mingw32-breeze5-style
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.
This package provides Breeze style, color-scheme and aditional assets.

%package -n mingw32-breeze5-wallpapers
Summary:        Plasma Desktop artwork, styles and assets
Group:          System/GUI/KDE
BuildArch:      noarch

%description -n mingw32-breeze5-wallpapers
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.
This package provides Breeze wallpaper theme.

%package -n mingw32-breeze5-decoration
Summary:        Plasma Desktop artwork, styles and assets
Group:          System/GUI/KDE

%description -n mingw32-breeze5-decoration
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.
This package provides Breeze KWin decoration.

%lang_package -n mingw32-breeze5-style

%package -n mingw32-libbreezecommon5-5
Summary:        Library containing support code for the Breeze Qt5 style
Group:          System/Libraries

%description -n mingw32-libbreezecommon5-5
Library containing support code for the Breeze Qt5 style.

%_mingw32_debug_package

%prep
%setup -q -n %{_name}-%{version}
# install wine pathes
%_mingw32_cross_wine_init $(pwd)/build/bin

%build
  # let xvfb run for the whole session because cmake
  # needs to run windows app from mingw32 install path
  %_mingw32_cross_wine_start_session

  %_mingw32_cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_mingw32_kf5_localedir}
  %make_jobs

%install
  %_mingw32_kf5_makeinstall -C build

  # delete unused files
  rm %{buildroot}%{_mingw32_kf5_libdir}/libbreezecommon5.dll.a

%if %{with lang}
  %_mingw32_kf5_find_lang breeze
%endif
%fdupes %{buildroot}%{_prefix}

%post   -p /sbin/ldconfig -n mingw32-libbreezecommon5-5
%postun -p /sbin/ldconfig -n mingw32-libbreezecommon5-5

%if %{with lang}
%files -n mingw32-breeze5-style-lang -f %{_name}.lang
%license COPYING*
%endif

%files -n mingw32-breeze5-cursors
%license COPYING*
%{_mingw32_kf5_iconsdir}/breeze_cursors
%{_mingw32_kf5_iconsdir}/Breeze_Snow/

%files -n mingw32-breeze5-style
%license COPYING*
%{_mingw32_kf5_bindir}/breeze-settings5.exe
%dir %{_mingw32_kf5_iconsdir}/hicolor/scalable
%dir %{_mingw32_kf5_iconsdir}/hicolor/scalable/apps
%{_mingw32_kf5_iconsdir}/hicolor/scalable/apps/breeze-settings.*
%{_mingw32_kf5_sharedir}/QtCurve/
%{_mingw32_kf5_sharedir}/color-schemes/
%dir %{_mingw32_kf5_sharedir}/plasma
%{_mingw32_kf5_sharedir}/plasma/look-and-feel/
%{_mingw32_kf5_qmldir}/QtQuick/
%dir %{_mingw32_kf5_libdir}/kconf_update_bin
%{_mingw32_kf5_libdir}/kconf_update_bin/*.exe
%{_mingw32_kf5_sharedir}/kconf_update/
%dir %{_mingw32_kf5_plugindir}
%{_mingw32_kf5_plugindir}/kstyle_breeze_config*.dll
%dir %{_mingw32_kf5_plugindir}/styles
%{_mingw32_kf5_plugindir}/styles/*.dll
%{_mingw32_kf5_sharedir}/kstyle/
%dir %{_mingw32_kf5_servicesdir}
%{_mingw32_kf5_servicesdir}/breezestyleconfig.desktop
%{_mingw32_kf5_libdir}/cmake/Breeze/
%dir %{_mingw32_kf5_appstreamdir}/
%{_mingw32_kf5_appstreamdir}/org.kde.breezedark.desktop.appdata.xml

%files -n mingw32-breeze5-wallpapers
%license COPYING*
%dir %{_mingw32_kf5_sharedir}/wallpapers
%{_mingw32_kf5_sharedir}/wallpapers/Next/

%files -n mingw32-breeze5-decoration
%license COPYING*
%dir %{_mingw32_kf5_plugindir}
%dir %{_mingw32_kf5_plugindir}/org.kde.kdecoration2
%{_mingw32_kf5_plugindir}/org.kde.kdecoration2/*.dll
%dir %{_mingw32_kf5_servicesdir}
%{_mingw32_kf5_servicesdir}/breezedecorationconfig.desktop

%files
%license COPYING*

%files -n mingw32-libbreezecommon5-5
%license COPYING*
%{_mingw32_bindir}/libbreezecommon5*.dll

%changelog
openSUSE Build Service is sponsored by