File openstack-quickstart.spec of Package openstack-quickstart

#
# spec file for package openstack-quickstart
#
# Copyright (c) 2013 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:           openstack-quickstart
Version:        2013.2+git.1380614452.cc514df
Release:        0
Summary:        OpenStack Quickstart
License:        MIT
Group:          System/Management
Url:            http://en.opensuse.org/SDB:Cloud_OpenStack_Quickstart
Source0:        %{name}-%{version}.tar.gz
Source1:        devstack-master.tar.gz
Suggests:       patterns-OpenStack-clients
Suggests:       patterns-OpenStack-compute-node
Suggests:       patterns-OpenStack-controller
Suggests:       patterns-OpenStack-network-node
Requires:       crudini
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Scripts and configs to easily generate an openstack demo setup.

%prep
%setup -q -a 1

%build

%install
make install DESTDIR=%{buildroot}

# install some stuff from devstack
ds=%{buildroot}/usr/lib/devstack
for i in exercise.sh functions openrc stackrc eucarc exerciserc; do 
  install -m 755 devstack-master/$i  $ds
done
cp -r devstack-master/exercises devstack-master/lib $ds

%files
%defattr(-,root,root)
%{_sbindir}/openstack-quickstart-*
%{_sbindir}/openstack-loopback-lvm
%{_bindir}/getkstoken
/usr/lib/devstack
%config %{_sysconfdir}/bash.openstackrc
%config %{_sysconfdir}/openstackquickstartrc
%doc COPYING

%changelog
openSUSE Build Service is sponsored by