File sddm-conf.spec of Package sddm-conf
#
# spec file for package sddm-conf
#
# Copyright (c) 2023 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/
#
%define _name sddm_conf
Name: sddm-conf
Version: @SERVICE@
Release: 0
Summary: SDDM configuration editor
License: MIT
Group: System/X11/Utilities
URL: https://github.com/qtilities/sddm-conf
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.15
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qtilitools
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Widgets)
Recommends: %{name}-lang
%description
Configuration editor for SDDM similar to sddm-config-editor, but written in
C++.
%lang_package
%prep
%autosetup
#sed -i "s|\(Exec=\)|\1xdg-su -c %%{_bindir}/|" resources/freedesktop/application.desktop.in
%build
%define __builder ninja
%cmake
%ninja_build
%install
%ninja_install -C build
%suse_update_desktop_file -r -G "Display Manager Configuration" -N "SDDM Configuration" %{_name} Qt Settings System
%find_lang %{name} --with-qt
%files
%doc AUTHORS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{_name}.desktop
#%%{_datadir}/icons/hicolor/*/apps/%%{name}.??g
%{_datadir}/metainfo/%{_name}.appdata.xml
%license COPYING
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%changelog