File terrafprm-provider-openstack.spec of Package terraform-provider-openstack

#
# spec file for package terraform
#
# Copyright (c) 2016 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/
#

# Make sure that the binary is not getting stripped.
%{go_nostrip}

Name:           terraform-provider-openstack
Version:        1.7.0
Release:        0
License:        MPL-2.0
Summary:        Experimental Terraform provider for openstack
Url:            https://github.com/terraform-providers/terraform-provider-openstack/
Group:          System/Management
Source:         %{name}-%{version}.zip
BuildRoot:      %{_tmppath}/%{name}-master

BuildRequires:  golang-packaging
BuildRequires:  golang(API) >= 1.8
BuildRequires:  unzip

Requires:       terraform >= 0.10.0
%{go_provides}

%description
This is a terraform provider that lets you provision servers on a openstack host
via Terraform.

%prep
%setup -q -n %{name}-%{version}

%build
%goprep github.com/terraform-providers/terraform-provider-openstack
%gobuild

%install
%goinstall
rm -rf %{buildroot}/%{_libdir}/go/contrib

%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_bindir}/%{name}

%changelog