File deepin-launcher.spec of Package deepin-launcher

# spec file for package deepin-launcher
# Copyright (c) 2021 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

%define _name dde-launcher

Name:           deepin-launcher
Version:        5.4.11
Release:        0
Summary:        Deepin Launcher
License:        GPL-3.0-or-later
Group:          System/GUI/Other
BuildRequires:  cmake
BuildRequires:  gtest
BuildRequires:  hicolor-icon-theme
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libqt5-linguist
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(dframeworkdbus) >= 0.4.1
BuildRequires:  pkgconfig(dtkcore) >= 5.0.0
BuildRequires:  pkgconfig(dtkwidget) >= 5.0.0
BuildRequires:  pkgconfig(gsettings-qt)
BuildRequires:  pkgconfig(xcb-ewmh)
Requires:       deepin-daemon
Requires:       deepin-desktop-schemas >= 5.9.3
Requires:       deepin-start
Requires:       libqt5-qdbus

Deepin desktop-environment - Launcher module

%package devel
Summary:        Development tools for deepin-launchers
Group:          Development/Libraries/C and C++

%description devel
Deepin desktop-environment - Launcher module

The deepin-launcher-devel package contains the header files and developer
docs for deepin-launcher.


%setup -q -n %{_name}-%{version}
sed -i 's|lrelease|lrelease-qt5|g'
sed -i 's|qdbus|qdbus-qt5|g' dde-launcher-wapper


%find_lang %{_name} --with-qt

%license LICENSE
%dir %{_datadir}/%{_name}
%dir %{_datadir}/%{_name}/translations

%files devel

%files lang -f %{_name}.lang
# unusual languages not autodetected by find_lang (boo#1187036)
%lang(ast) %{_datadir}/%{_name}/translations/dde-launcher_ast.qm
%lang(fil) %{_datadir}/%{_name}/translations/dde-launcher_fil.qm
%lang(kab) %{_datadir}/%{_name}/translations/dde-launcher_kab.qm
%lang(pam) %{_datadir}/%{_name}/translations/dde-launcher_pam.qm

openSUSE Build Service is sponsored by