File supportutils-plugin-salt.spec of Package supportutils-plugin-salt.25405
#
# spec file for package salt-supportconfig-plugins
#
# Copyright (c) 2022 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 http://bugs.opensuse.org/
#
Name: supportutils-plugin-salt
Version: 1.2.1
Release: 0
Summary: Plugins for the supportconfig utility, covering Salt
License: MIT
Group: Applications/Internet
Source: %{name}-%{version}.tar.gz
URL: https://github.com/openSUSE/salt-supportconfig
Requires(pre): coreutils
Requires: supportconfig-plugin-resource
Requires: supportconfig-plugin-tag
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Supplements: packageand(salt:supportutils)
%description
Plugins for the supportconfig utiility, covering Salt.
Used for debug information when troubleshooting.
%prep
%setup -q -n %{name}-%{version}
%build
%install
ls -lah
install -d %{buildroot}/usr/lib/supportconfig/plugins
install -d %{buildroot}/usr/lib/supportconfig/resources
install -m 0755 resources/saltplugins.rc %{buildroot}/usr/lib/supportconfig/resources
install -m 0755 saltconfiguration %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltgeneral %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltjobs %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltlogfiles %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltmasterpillars %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltminionskeys %{buildroot}/usr/lib/supportconfig/plugins
install -m 0755 saltminionsstatus %{buildroot}/usr/lib/supportconfig/plugins
%files
%defattr(-,root,root)
%doc VERSION
%{!?_licensedir:%global license %doc}
%license LICENSE
/usr/lib/supportconfig/
/usr/lib/supportconfig/resources
/usr/lib/supportconfig/resources/saltplugins.rc
/usr/lib/supportconfig/plugins
/usr/lib/supportconfig/plugins/saltconfiguration
/usr/lib/supportconfig/plugins/saltgeneral
/usr/lib/supportconfig/plugins/saltjobs
/usr/lib/supportconfig/plugins/saltlogfiles
/usr/lib/supportconfig/plugins/saltmasterpillars
/usr/lib/supportconfig/plugins/saltminionskeys
/usr/lib/supportconfig/plugins/saltminionsstatus
%clean
rm -rf $RPM_BUILD_ROOT
%changelog