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

#
# spec file for package breeze4-style
#
# 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/
#

%define _name   breeze4-style
Name:           mingw-%{_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
# PATCH-FIX-OPENSUSE add-support-for-Q3ListView-to-the-KDE4-style.patch boo#973728 wbauer@tmo.at -- fixes collapse/expand icon in Q3ListView that still may be used by some KDE4 applications (knode e.g.)
Patch0:         add-support-for-Q3ListView-to-the-KDE4-style.patch
Patch1:         0001-breeze4-style-mingw-compile-fix.patch
BuildRequires:  automoc4
BuildRequires:  mingw32-cross-cmake
#BuildRequires:  fftw3-devel
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-libqt4-qmake
BuildRequires:  mingw32-fftw3-devel
BuildRequires:  mingw32-kde4-filesystem
BuildRequires:  mingw32-libkde4-devel
BuildRequires:  mingw32-libqt4-devel
#BuildRequires:  libxcb-devel
# This sets the breeze4 style as default in a Plasma environment
Recommends:     mingw32-kdebase4-workspace-libs
Supplements:    packageand(mingw32-breeze5-style:libqt4)
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Artwork, styles and assets for the Breeze visual style for the Plasma Desktop.
This package contains kde4 backport of new default Plasma 5 style.

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

%description -n mingw32-libbreezecommon4-5
Library containing support code for the Breeze Qt4 style.

%_mingw32_debug_package

%prep
%setup -q -n breeze-%{version}
%autopatch -p1

%build
  %_mingw32_cmake_kde4 -d build -- -DBUILD_po=OFF -DUSE_KDE4=ON
  %_mingw32_cmake_build

%install
  %_mingw32_kde4_makeinstall -C build

  # remove unused files
  rm %{buildroot}%{_mingw32_libdir}/*.dll.a


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

%files
%license COPYING*
%{_mingw32_kde4_modulesdir}/kstyle_breeze_config.dll
%dir %{_mingw32_kde4_modulesdir}/plugins/styles
%{_mingw32_kde4_modulesdir}/plugins/styles/breeze.dll
%{_mingw32_kde4_appsdir}/

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

%changelog
openSUSE Build Service is sponsored by