File gamescope-session-steam-factory-reset.spec of Package gamescope-session-steam-factory-reset

#
# spec file for package gamescope-session-steam-factory-reset
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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:           gamescope-session-steam-factory-reset
Version:        0+git20260123.3b00aaa
Release:        0
Summary:        Support for factory resets within gamescope-session-steam
License:        GPL-3.0-only
URL:            https://github.com/YugaLinux/gamescope-session-steam-factory-reset
Requires:       gamescope-session-steam-shared
Recommends:     gamescope-session-steam
Supplements:    gamescope-session-steam
BuildRequires:  gamescope-session-steam-shared
BuildRequires:  polkit
Requires:       polkit
BuildArch:      noarch
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}.rpmlintrc

%description
Tools to support setting up factory reset on the system from within
gamescope-session-steam. This package only provides the framework
to allow other packages to actually support a factory reset mechanism
with their custom logic.

%package config-dummy
Summary:        A dummy factory reset implementation for gamescope-session-steam
Requires:       gamescope-session-steam-factory-reset = %{version}
Supplements:    gamescope-session-steam-factory-reset
Provides:       gamescope-session-steam-factory-reset-config
Conflicts:      gamescope-session-steam-factory-reset-config

%description config-dummy
This package provides a dummy factory reset implementation.
No factory reset will be done on execution.

%prep
%autosetup -p1

%build

%install

# Libexec scripts
install -d -m 0755 %{buildroot}%{_libexecdir}/gamescope-session-steam
install -m 0755 usr/libexec/gamescope-session-steam/system-factory-reset-config %{buildroot}%{_libexecdir}/gamescope-session-steam/system-factory-reset-config

# Polkit helper scripts and convenience links/wrappers
install -d -m 0755 %{buildroot}%{_bindir}/steamos-polkit-helpers
install -m 0755 usr/bin/steamos-polkit-helpers/steamos-factory-reset-config %{buildroot}%{_bindir}/steamos-polkit-helpers/steamos-factory-reset-config
install -m 0755 usr/bin/steamos-factory-reset-config %{buildroot}%{_bindir}/steamos-factory-reset-config

# Polkit policy
install -d -m 0755 %{buildroot}%{_datadir}/polkit-1/actions
install -m 0644 usr/share/polkit-1/actions/org.gamescope-session-steam-factory-reset.reset.policy %{buildroot}%{_datadir}/polkit-1/actions/org.gamescope-session-steam-factory-reset.reset.policy

%files
%license LICENSE
%doc README.md
%{_bindir}/steamos-polkit-helpers/steamos-factory-reset-config

%files config-dummy
%{_bindir}/steamos-factory-reset-config

%{_libexecdir}/gamescope-session-steam/system-factory-reset-config

%{_datadir}/polkit-1/actions/org.gamescope-session-steam-factory-reset.reset.policy

%changelog
openSUSE Build Service is sponsored by