A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#

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

%description

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

%prep
%setup -q

%build

%install
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

%post
%fillup_only

%files
%defattr(-,root,root)
%doc README.rst LICENSE
%{_localstatedir}/adm/fillup-templates/sysconfig.*
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/keys
%config %{_sysconfdir}/%{name}/keys/*
%{_bindir}/ssh-to-node