File myrlyn-run0.spec of Package myrlyn-run0

#
# spec file for package myrlyn-run0
#
# Copyright (c) 2025 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:		myrlyn-run0
Version:	0
Release:	0
Summary:	a graphical package manager to select software packages
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:	GPL-2.0-only
URL:		https://github.com/shundhammer/myrlyn
Source1:		myrlyn-run0
BuildRequires:	myrlyn
Requires:	myrlyn
BuildArch: noarch
%description
Myrlyn is a graphical package manager to select software packages
and patterns for installation, update and removal.

It uses libzypp as its backend and Qt as its GUI toolkit.
This is run0 replace sudo.

%prep
%__cp  /usr/share/applications/myrlyn-sudo.desktop  ./myrlyn-run0.desktop
%build
%__sed -i -e 's|myrlyn-sudo|myrlyn-run0|g' \
-e 's|via sudo|via run0|g' \
-e 's|using sudo|using run0|g' myrlyn-run0.desktop
%install
%__install -D -m0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
%__install -D -m0644 myrlyn-run0.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop


%files
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%changelog

openSUSE Build Service is sponsored by