File sddm-config-editor.spec of Package sddm-config-editor

#
# spec file for package sddm-config-editor
#
# 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/
#


Name:           sddm-config-editor
Version:        @SERVICE@
Release:        0
Summary:        SDDM Configuration Editor
License:        Apache-2.0
Group:          System/GUI/Other
URL:            https://github.com/lxqt/sddm-config-editor
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Widgets)
Requires:       libqt5-qtquickcontrols

%description
This is to be a graphical editor for Simple Desktop Display Manager's
configuration file. There is a C++ version of this program.

%prep
%setup -q

%build
pushd ./cpp
%qmake5
%make_jobs
popd

%install
pushd ./cpp
%qmake5_install
popd
%suse_update_desktop_file -r %{name} Qt System SystemSetup
# ERROR: Icon file not installed (preferences-system-login)
mkdir -p %{buildroot}%{_datadir}/pixmaps
touch %{buildroot}%{_datadir}/pixmaps/preferences-system-login

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%ghost %{_datadir}/pixmaps/preferences-system-login

%changelog
openSUSE Build Service is sponsored by