File qt5integration.spec of Package qt5integration

#
# spec file for package qt5integration
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           qt5integration
Version:        5.5.3
Release:        0
License:        GPL-3.0-or-later
Summary:        Qt platform theme integration plugins
URL:            https://github.com/linuxdeepin/qt5integration
Group:          System/GUI/Other
Source0:        https://github.com/linuxdeepin/qt5integration/archive/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-library-link.patch hillwood@opensuse.org - Need link to dl
# https://github.com/linuxdeepin/qt5integration/pull/47
Patch0:         fix-library-link.patch
BuildRequires:  gtest
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libQt5PlatformSupport-devel-static
BuildRequires:  libQt5PlatformSupport-private-headers-devel
BuildRequires:  libQt5Widgets-private-headers-devel
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xdg)
BuildRequires:  pkgconfig(Qt5XdgIconLoader)
BuildRequires:  pkgconfig(atk)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dtkcore)
BuildRequires:  pkgconfig(dtkgui5.5)
BuildRequires:  pkgconfig(dtkwidget5.5)
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(mtdev)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-ewmh)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xcb-renderutil)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  pkgconfig(xrender)

%description
Multiple Qt plugins to provide better Qt5 integration for DDE are included.

%prep
%autosetup -p1

%build
%qmake5
%make_build

%install
%qmake5_install

find %{buildroot}%{_kf5_plugindir} -type f ! -name '*5.5.so' -delete -print

%files
%doc CHANGELOG.md README.md
%license LICENSE
%dir %{_kf5_plugindir}/styles
%dir %{_kf5_plugindir}/iconengines
%dir %{_kf5_plugindir}/imageformats
%dir %{_kf5_plugindir}/platformthemes
%{_kf5_plugindir}/iconengines/libdtkbuiltin5.5.so
%{_kf5_plugindir}/iconengines/libxdgicon5.5.so
%{_kf5_plugindir}/imageformats/libdsvg5.5.so
%{_kf5_plugindir}/platformthemes/libqdeepin5.5.so
%{_kf5_plugindir}/styles/libchameleon5.5.so
%{_kf5_plugindir}/iconengines/libdsvgicon5.5.so

%changelog
openSUSE Build Service is sponsored by