File qt5-ukui-platformtheme.spec of Package qt5-ukui-platformtheme
#
# spec file for package ukui-notification-daemon
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 Hillwood Yang <hillwood@opensuse.org>
#
# 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 sover 1
%define project ukui
Name: qt5-ukui-platformtheme
Version: 1.0.5
Release: 0
License: GPL-3.0+
Summary: The UKUI platform theme for qt5 QPA
Url: https://github.com/ukui/qt5-ukui-platformtheme
Group: System/GUI/Other
Source0: https://github.com/ukui/qt5-ukui-platformtheme/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: fix-return-type-errors.patch
Patch1: fix-library-link.patch
Patch2: fix-path-of-headers.patch
BuildRequires: fdupes
BuildRequires: libqt5-linguist
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: libQt5Widgets-private-headers-devel
BuildRequires: libQt5PlatformSupport-private-headers-devel
BuildRequires: libQt5PlatformSupport-devel-static
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(gsettings-qt)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xcb)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
In the early development of the UKUI 3.0, we used qt5-gtk2-platformtheme to
ensure the unity of the UKUI desktop style. However, it has many limitations for
our new desgin.
This project is intend to provide a common resolution of desktop application
development with qt5 in UKUI3.0. We hope provide a platform theme to unify and
beautify all qt applications according to the design of UKUI3.0, not only our
own applications. We are also committed to building our applications that can
adapt to different styles. This project is first step to archive those
objectives.
qt5-ukui-platformtheme's route brings us closer to the upstream communities. It
is not a division, but a desire for fusion and individuality in a compatible
way.
%package -n libqt5-%{project}-style%{sover}
Summary: The Library of qt5-ukui-platformtheme
Group: System/Libraries
Requires: %{name} = %{version}
%description -n libqt5-%{project}-style%{sover}
This package contains the library used by qt5-ukui-platformtheme.
%package -n libqt5-qtstyleplugins-platformtheme-%{project}
Summary: The UKUI platform theme for qt5 QPA
Group: System/GUI/Other
%description -n libqt5-qtstyleplugins-platformtheme-%{project}
Qt 5 plugin for better integration with UKUI desktop enviroments.
%package devel
Summary: The UKUI platform theme for qt5 QPA -- Development Files
Group: Development/Libraries/Other
%description devel
UKUI Window Manager
This package contains development files for ukwm.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%qmake5
%install
%qmake5_install
install -d %{buildroot}%{_includedir}/qt5-ukui
cp libqt5-ukui-style/*.h %{buildroot}%{_includedir}/qt5-ukui/
cp libqt5-ukui-style/*/*.h %{buildroot}%{_includedir}/qt5-ukui/
cp libqt5-ukui-style/*/*/*.h %{buildroot}%{_includedir}/qt5-ukui/
%fdupes %{buildroot}
%post -n libqt5-%{project}-style%{sover} -p /sbin/ldconfig
%postun -n libqt5-%{project}-style%{sover} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc CONTRIBUTING.md CONTRIBUTING_zh_CN.md README.md
%license COPYING
%{_datadir}/glib-2.0/schemas/org.ukui.style.gschema.xml
%files -n libqt5-%{project}-style%{sover}
%defattr(-,root,root)
%{_libdir}/libqt5-%{project}-style.so.*
%files -n libqt5-qtstyleplugins-platformtheme-%{project}
%defattr(-,root,root)
%dir %{_libdir}/qt5/plugins/platformthemes
%dir %{_libdir}/qt5/plugins/styles
%{_libdir}/qt5/plugins/platformthemes/libqt5-%{project}-platformtheme.so
%{_libdir}/qt5/plugins/styles/libqt5-style-%{project}.so
%{_libdir}/qt5/plugins/styles/lib%{project}-proxy-style.so
%files devel
%defattr(-,root,root)
%{_libdir}/libqt5-%{project}-style.so
%{_libdir}/pkgconfig/qt5-%{project}.pc
%{_includedir}/qt5-%{project}
%changelog