File lightdm-settings.spec of Package lightdm-settings
#
# spec file for package lightdm-settings
#
# Copyright (c) 2024 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/
#
Name: lightdm-settings
Version: 2.0.4
Release: 0
Summary: A configuration tool for the LightDM display manager
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0+
URL: https://github.com/linuxmint/lightdm-settings
Source: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: make
Requires: filesystem
Requires: gtk3
Requires: hicolor-icon-theme
Requires: polkit
Requires: python3-xapp
Requires: python3-gobject
Requires: python3-setproctitle
Requires: lightdm-slick-greeter
BuildArch: noarch
%description
A configuration tool for the LightDM display manager
This tool currently lets users configure slick-greeter.
Its scope can (should/will?) be extended to configure the LightDM display manager
itself and to detect and configure other greeters such as lightdm-gtk-greeter.
%lang_package
%prep
%autosetup -p1
%build
%make_build
%install
# No install-target in Makefile.
%{__cp} -pr .%{_prefix} %{buildroot}
# Set exec-permissions where needed.
%{__chmod} -c 0755 %{buildroot}%{_bindir}/%{name} \
%{buildroot}%{_prefix}/lib/%{name}/%{name}
# Find localizations and build manifest.
%find_lang %{name}
%check
%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%files
%license debian/copyright COPYING
%doc debian/changelog README.md
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.x.%{name}.policy
%files lang -f %{name}.lang
%changelog