File susecon-automation-client.spec of Package susecon-automation-client

# spec file for package susecon-automation-client
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           susecon-automation-client
Version:        0.2
Release:        0
License:        BSD-3-Clause
Summary:        Stuff for delegate laptops
Source:         susecon-automation-client-%{version}.tgz
PreReq:         %fillup_prereq
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


This RPM installs the ssh-to-node executable and related files.

%setup -q


install -m 0644 -D sysconfig-file $RPM_BUILD_ROOT%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
install -m 0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/keys/
install -m 0644 keys/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/keys/
install -m 0755 -D ssh-to-node $RPM_BUILD_ROOT%{_bindir}/ssh-to-node


%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/keys
%config %{_sysconfdir}/%{name}/keys/*