LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File patterns-OpenStack.spec of Package patterns-OpenStack (Project Cloud:OpenStack:Grizzly)

#
# spec file for package patterns-OpenStack
#
# 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:           patterns-OpenStack
Version:        2013.1
Release:        0
Summary:        Patterns for OpenStack
License:        GPL-2.0+
Group:          Metapackages
Url:            http://openstack.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is an internal package that is used to create the patterns

%package controller
Summary:        Meta package for pattern OpenStack Controller
Group:          Metapackages
Requires:       openstack-cinder-api >= %{version}
Requires:       openstack-cinder-scheduler >= %{version}
Requires:       openstack-cinder-volume >= %{version}
Requires:       openstack-glance >= %{version}
Requires:       openstack-keystone >= %{version}
Requires:       openstack-nova-api >= %{version}
Requires:       openstack-nova-scheduler >= %{version}
Requires:       openstack-quantum-server >= %{version}
%if 0%{?suse_version} > 1110
Requires:       postgresql-server
Requires:       python-psycopg2
%else
# avoid postgresql 8.x
Requires:       postgresql91-server
Requires:       python-psycopg2
%endif
Recommends:     openstack-dashboard >= %{version}
Recommends:     openstack-nova-novncproxy >= %{version}
Recommends:     openstack-nova-vncproxy >= %{version}
Recommends:     patterns-OpenStack-clients = %version
Recommends:     rabbitmq-server
Recommends:     memcached
Recommends:     python-python-memcached

%description controller
Meta package for pattern OpenStack Compute Node on kvm

%package storage-node
Summary:        Meta package for pattern OpenStack Storage
Group:          Metapackages
Requires:       iscsitarget
Requires:       lvm2
Requires:       ntp
Requires:       open-iscsi

%description storage-node
Meta package for pattern OpenStack Storage Node

%package clients
Summary:        Meta package for pattern OpenStack Clients
Group:          Metapackages
Requires:       python-cinderclient
Requires:       python-glanceclient
Requires:       python-heatclient
Requires:       python-keystoneclient
Requires:       python-novaclient
Requires:       python-quantumclient
Requires:       python-swiftclient

%description clients
Meta package for pattern OpenStack Controller
This contains the software for the Cloud's core

%package compute-node
Summary:        Meta package for pattern OpenStack Compute Node
Group:          Metapackages
Requires:       iscsitarget
Requires:       kvm
Requires:       ntp
Requires:       open-iscsi
Requires:       openstack-nova-compute >= %{version}
Requires:       openstack-quantum-agent >= %{version}
Recommends:     openstack-quantum-linuxbridge-agent >= %{version}

%description compute-node
Meta package for pattern OpenStack Compute Node on kvm

%package network-node
Summary:        Meta package for pattern OpenStack Network Node
Group:          Metapackages
Requires:       openstack-nova-compute >= %{version}
Requires:       openstack-quantum-dhcp-agent >= %{version}
Requires:       openstack-quantum-l3-agent >= %{version}
Requires:       openstack-quantum-metadata-agent >= %{version}

%description network-node
Meta package for pattern OpenStack Network Node on kvm


%prep

%build

%install
export RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_datadir}/doc/packages/patterns-OpenStack/

for p in controller compute-node clients network-node storage-node ; do
  echo "This file marks the pattern $p to be installed." > %{buildroot}%{_datadir}/doc/packages/patterns-OpenStack/$p.txt
done

%files clients
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/patterns-OpenStack
%{_datadir}/doc/packages/patterns-OpenStack/clients.txt

%files controller
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/patterns-OpenStack
%{_datadir}/doc/packages/patterns-OpenStack/controller.txt

%files compute-node
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/patterns-OpenStack
%{_datadir}/doc/packages/patterns-OpenStack/compute-node.txt

%files network-node
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/patterns-OpenStack
%{_datadir}/doc/packages/patterns-OpenStack/network-node.txt

%files storage-node
%defattr(-,root,root)
%dir %{_datadir}/doc/packages/patterns-OpenStack
%{_datadir}/doc/packages/patterns-OpenStack/storage-node.txt

%changelog