Skip to content

Commit

Permalink
Merge pull request SUSE#200 from SUSE/setupPack
Browse files Browse the repository at this point in the history
- CaaSP
  • Loading branch information
rjschwei authored Oct 6, 2017
2 parents ba6042f + b5caa2c commit 0839bb7
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
13 changes: 13 additions & 0 deletions caasp-admin-setup/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DESTDIR=
ver = $(shell rpm -q --specfile --qf '%{NAME}-%{VERSION}\n' caasp-admin-setup.spec)

tar:
mkdir -p "$(ver)/usr/sbin"
cp license_MIT.txt "$(ver)/LICENSE"
cp Makefile "$(ver)"
tar -cjf "$(ver).tar.bz2" "$(ver)"
rm -rf "$(ver)"

install:
mkdir -p "$(DESTDIR)/usr/sbin"
cp /usr/sbin/* "$(DESTDIR)"
52 changes: 52 additions & 0 deletions caasp-admin-setup/caasp-admin-setup.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# spec file for package caasp-admin-setup
#
# Copyright (c) 2017
#
# 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: caasp-admin-setup
Version: 1.0.0
Release: 0
License: MIT
Summary: Setup the CaaSP Admin Node
URL: http://www.github.com:SUSE/pubcloud
Group: Productivity/Networking/Web/Servers
Source0: %{name}-%{version}.tar.bz2
Requires: caasp-cloud-config
Requires: python3
Requires: python3-docker
Requires: python3-docopt
Requires: python3-netifaces
Requires: python3-PyYAML
Requires: python3-pyOpenSSL
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch

%description
Basic setup of the Admin node for a CaaSP cluster

%prep
%setup -q

%build

%install
make install DESTDIR=%{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE
%{_sbindir}/caasp-admin-setup
19 changes: 19 additions & 0 deletions caasp-admin-setup/license_MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
COPYRIGHT 2017 SUSE LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 0839bb7

Please sign in to comment.