File ukui-settings-daemon.spec of Package ukui-settings-daemon

#
# spec file for package ukui-settings-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/
#

Name:           ukui-settings-daemon
Version:        3.0.1
Release:        0
License:        GPL-3.0+
Summary:        The daemon of UKUI desktop
Url:            https://github.com/ukui/ukui-settings-daemon
Group:          System/GUI/Other
Source0:        https://github.com/ukui/ukui-settings-daemon/archive/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE lrelease-qt5.patch hillwood@opensuse.org - Use lrelease-qt5 instead of lrelease
Patch0:         lrelease-qt5.patch
# PATCH-FIX-UPSTREAM fix-link-library.patch hillwood@opensuse.org - Make sure library links check will be success.
Patch1:         fix-link-library.patch
BuildRequires:  fdupes
BuildRequires:  libqt5-linguist
BuildRequires:  kwindowsystem-devel
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(Qt5Xml)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(dconf)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(harfbuzz)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(libxklavier)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(cairo-gobject)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(gsettings-qt)
BuildRequires:  pkgconfig(libmatemixer)
BuildRequires:  pkgconfig(mate-desktop-2.0)
BuildRequires:  pkgconfig(libmatekbd)
BuildRequires:  pkgconfig(atk)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xcb-proto)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  openSUSE-release
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ukui-settings-daemon is the daemon of UKUI desktop, its function is to set
sessions and manage applications running for UKUI desktop .

%lang_package

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%qmake5

%install
%qmake5_install

%find_lang %{name}
%fdupes %{buildroot}

%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/dbus-1/services/org.ukui.SettingsDaemon.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_sysconfdir}/xdg/autostart/%{name}.desktop

%files lang -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/%{name}

%changelog

openSUSE Build Service is sponsored by