File php-buildpack.spec of Package php-buildpack-4.4.28.1

#
# spec file for the php 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 https://bugzilla.suse.com/
#

%define upstream_version 4.4.28

Name:           php-buildpack
Version:        4.4.28.1
Release:        1
Summary:        Cloud Foundry buildpack for php
License:        Apache-2.0
Group:          Cloud/Platform/scf
Url:            https://github.com/SUSE/cf-php-buildpack
Source0:        https://github.com/SUSE/cf-php-buildpack/archive/v%{version}.tar.gz
BuildRequires:  ruby2.5-rubygem-buildpack-packager
BuildRequires:  compile-extensions-tarball
BuildRequires:  zip

BuildRequires: composer-2.0.8

BuildRequires: httpd-2.4.46

BuildRequires: nginx-1.18.0

BuildRequires: nginx-1.19.5

BuildRequires: php-7.3.24

BuildRequires: php-7.3.25

BuildRequires: php-7.4.12

BuildRequires: php-7.4.13

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

%define otherdir %{_topdir}/OTHER

%description

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

%build
tar --strip-components=1 -xf /usr/share/compile-extensions/compile-extensions.tar.gz -C compile-extensions
%if %_repository == "buildpacks"
buildpack-packager --uncached --any-stack
%else
buildpack-packager --uncached --stack=%_repository
%endif

%install
%if %_repository == "buildpacks"
CHECKSUM=`sha1sum *buildpack-v%{version}.zip | cut -d' ' -f1`
mv *buildpack-v%{version}.zip %{otherdir}/php-buildpack-v%{version}-%{release}-pre-${CHECKSUM:0:8}.zip
%else
CHECKSUM=`sha1sum *buildpack-%{_repository}-v%{version}.zip | cut -d' ' -f1`
mv *buildpack-%{_repository}-v%{version}.zip %{otherdir}/php-buildpack-%{_repository}-v%{version}-%{release}-pre-${CHECKSUM:0:8}.zip
%endif

%post
%postun

%files
%defattr(-,root,root)

%changelog

openSUSE Build Service is sponsored by