File yuga-check.spec of Package yuga-check

#
# spec file for package yuga-check
#
# 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:           yuga-check
Version:        1+git20250717.a2e0fc9
Release:        0
Summary:        Yuga Check and Repair Tool
License:        MIT
URL:            https://github.com/TobiPeterG/yuga-check
Source:         %{name}-%{version}.tar.xz
BuildArch:      noarch

%description
Automatically checks and repairs known issues in Yuga installations at boot

%prep
%autosetup

%build

%install
install -D -m 700 yuga-check %{buildroot}%{_sbindir}/yuga-check
install -D -m 644 yuga-check.service %{buildroot}%{_unitdir}/yuga-check.service

%pre
%systemd_pre yuga-check.service

%post
%systemd_post yuga-check.service

%preun
%systemd_preun yuga-check.service

%postun
%systemd_postun yuga-check.service

%files
%license LICENSE
%doc README.md
%{_sbindir}/yuga-check
%{_unitdir}/yuga-check.service

%changelog
openSUSE Build Service is sponsored by