File openstack-resource-agents.spec of Package openstack-resource-agents

#
# spec file for package openstack-resource-agents
#
# Copyright (c) 2018 SUSE LINUX 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/
#


%define tarball %{name}-%{version}.tar.bz2
%define tar_subdir %{name}-%{version}

%define version_unconverted 1.0+git.1516191426.42bb0c5

Name:           openstack-resource-agents
Version:        1.0+git.1516191426.42bb0c5
Release:        0
Summary:        Pacemaker OCF Resource Agents for OpenStack services
License:        Apache-2.0
Group:          System/Management
Url:            https://launchpad.net/openstack-resource-agents
#Requires:       resource-agents
Source0:        %{tarball}
# Probably SUSE-specific
Patch50:        nova-compute-init-like.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
OCF RAs (Resource Agents) to allow Pacemaker to control OpenStack
services.

%prep
%setup -q -n %{tar_subdir}
%patch50 -p1

%build

%install
make install DESTDIR="%buildroot"

%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
%dir /usr/lib/ocf/resource.d/openstack
/usr/lib/ocf/resource.d/openstack/*

%changelog
openSUSE Build Service is sponsored by