File go-buildpack.spec of Package go-buildpack-1.8.27.1

#
# spec file for the go buildpack
#
# 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 upstream_version 1.8.27

Name:           go-buildpack
Version:        1.8.27.1
Release:        1
Summary:        Cloud Foundry buildpack for go
License:        Apache-2.0
Group:          Cloud/Platform/scf
Url:            https://github.com/SUSE/cf-go-buildpack
Source0:        https://github.com/SUSE/cf-go-buildpack/archive/v%{upstream_version}.tar.gz
Source1:        manifest.yml
BuildRequires: go


BuildRequires: dep-0.5.0

BuildRequires: glide-0.13.1

BuildRequires: go-1.6.3

BuildRequires: go-1.6.4

BuildRequires: go-1.7.5

BuildRequires: go-1.7.6

BuildRequires: go-1.8.6

BuildRequires: go-1.8.7

BuildRequires: go-1.9.6

BuildRequires: go-1.9.7

BuildRequires: go-1.10.3

BuildRequires: go-1.10.4

BuildRequires: go-1.11

BuildRequires: godep-80

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

# BEGIN shared macros for all dependency packages
BuildRequires: aaa_stack_build_requires

%if 0%{?is_opensuse}
%define stack opensuse42
%else
%define stack sle12
%endif

%define otherdir %{_topdir}/OTHER
%define prefix_path /app/vendor/%{name}
%define destdir /tmp/%{name}/
%define dependencydir %{destdir}/%{prefix_path}
# END shared macros


%description

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

%build
source ./.envrc
echo %{version} > VERSION
# Replace the upstream manifest with the updated one for the SUSE stacks
cp %{SOURCE1} ./manifest.yml
(cd src/go/vendor/github.com/cloudfoundry/libbuildpack/packager/buildpack-packager && go install)
buildpack-packager build -any-stack

%install
CHECKSUM=`sha1sum go_buildpack-v%{version}.zip | cut -d' ' -f1`
mv go_buildpack-v%{version}.zip %{otherdir}/go_buildpack-v%{version}-%{release}-pre-${CHECKSUM:0:8}.zip

%post
%postun

%files
%defattr(-,root,root)

%changelog

openSUSE Build Service is sponsored by