# # spec file for package supportutils-plugin-susemanager-client # # 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/ # # The productprettyname macros is controlled in the prjconf. If not defined, we fallback here %{!?productprettyname: %global productprettyname Uyuni} Name: supportutils-plugin-susemanager-client Version: 5.2.2 Release: 0.git.23891.1174b63 Summary: Supportconfig Plugin for %{productprettyname} Client License: GPL-2.0-only Group: Documentation/SUSE #!CreateArchive: %{name} Source: supportutils-plugin-susemanager-client-git-23891.484cd17.tar.gz URL: https://github.com/uyuni-project/uyuni BuildRequires: supportutils Requires: supportutils Supplements: packageand(salt-minion:supportutils) Supplements: packageand(spacewalk-check:supportutils) BuildArch: noarch %if ! 0%{?suse_version} ExclusiveArch: do_not_build %endif %description Extends supportconfig functionality to include system information for a %{productprettyname} Client. The supportconfig saves the plugin output to plugin-susemanagerclient.txt. %prep %setup -q -n supportutils-plugin-susemanager-client-git-23891.484cd17 %build gzip -9f susemanagerclient-plugin.8 %install pwd;ls -la install -d %{buildroot}%{_prefix}/lib/supportconfig/plugins install -d %{buildroot}%{_mandir}/man8 install -d %{buildroot}/sbin # if the new style rc file is available install the new version, otherwise the old one # Only SLE15 and newer support the new style rc file. # SLE12 and older only the old variant if [ -e %{_prefix}/lib/supportconfig/resources/supportconfig.rc ]; then install -m 0544 susemanagerclient %{buildroot}%{_prefix}/lib/supportconfig/plugins/susemanagerclient else install -m 0544 susemanagerclient-scplugin %{buildroot}%{_prefix}/lib/supportconfig/plugins/susemanagerclient fi install -m 0644 susemanagerclient-plugin.8.gz %{buildroot}%{_mandir}/man8/susemanagerclient-plugin.8.gz %files %defattr(-,root,root) %license COPYING.GPLv2 %{_prefix}/lib/supportconfig %{_prefix}/lib/supportconfig/plugins %{_prefix}/lib/supportconfig/plugins/susemanagerclient %{_mandir}/man8/susemanagerclient-plugin.8%{?ext_man} %changelog