File ruby-buildpack.spec of Package ruby-buildpack-1.7.27.1

#
# spec file for the ruby 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.7.27

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


BuildRequires: bundler-1.17.1

BuildRequires: jruby-9.1.17.0

BuildRequires: jruby-9.2.4.0

BuildRequires: node-6.14.4

BuildRequires: openjdk-1.8.0_192

BuildRequires: ruby-2.2.9

BuildRequires: ruby-2.2.10

BuildRequires: ruby-2.3.7

BuildRequires: ruby-2.3.8

BuildRequires: ruby-2.4.4

BuildRequires: ruby-2.4.5

BuildRequires: ruby-2.5.1

BuildRequires: ruby-2.5.3

BuildRequires: rubygems-2.7.8

BuildRequires: yarn-1.12.3

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

%define otherdir %{_topdir}/OTHER

%description

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

%build
source ./.envrc
(cd src/ruby/vendor/github.com/cloudfoundry/libbuildpack/packager/buildpack-packager && go install)
buildpack-packager build -any-stack

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

%post
%postun

%files
%defattr(-,root,root)

%changelog

openSUSE Build Service is sponsored by