File gdm-settings.spec of Package gdm-settings
#
# spec file for package gdm-settings
#
# Copyright (c) 2024 mantarimay
#
# 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/
#
%bcond_without test
Name: gdm-settings
Version: 4.4
Release: 0
Summary: GDM settings app for GNOME Login Manager (GDM)
License: AGPL-3.0-or-later
URL: https://github.com/realmazharhussain/gdm-settings
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: blueprint-compiler
BuildRequires: desktop-file-utils
BuildRequires: meson
BuildRequires: pkgconfig(appstream-glib)
BuildRequires: pkgconfig(blueprint-compiler)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: pkgconfig(pygobject-3.0)
Requires: gdm
Requires: gettext
Requires: polkit
BuildArch: noarch
%description
A tool for customizing GNOME Display Manager.
With User Login Manager you can:
* Import user/session settings
* Change Background/Wallpaper (Image/Color)
* Apply themes
* Font Settings
* Top Bar Settings
* Display settings
%lang_package
%prep
%autosetup -p1
%build
%meson --buildtype=release
%meson_build
%install
%meson_install
# remove use of /usr/bin/env
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' \
%{buildroot}%{_bindir}/gdm-settings
%find_lang %{name}
%check
%if %{with test}
%meson_test
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/gdm-settings
%{_datadir}/gdm-settings
%{python_sitelib}/gdms
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/dbus-1/services/*.service
%files lang -f %{name}.lang
%changelog