!75 [sync] PR-74: add loongarch64 support for obs-bundled-gems

From: @openeuler-sync-bot 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2024-05-27 01:27:28 +00:00 committed by Gitee
commit 792c801e5f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 13 additions and 1 deletions

BIN
ffi-1.15.5.gem Normal file

Binary file not shown.

View File

@ -20,7 +20,7 @@
%global ruby_version 3.2.0
Name: obs-bundled-gems
Version: 2.10.15
Release: 8
Release: 9
Summary: The Open Build Service -- Bundled Gems
License: GPL-2.0-only OR GPL-3.0-only
URL: http://www.openbuildservice.org
@ -28,6 +28,9 @@ Source0: Gemfile
Source1: Gemfile.lock
Source2: verdor.obscpio
BuildRequires: cyrus-sasl-devel mysql-devel nodejs openldap-devel python3-devel
# https://rubygems.loongnix.cn/gems/ffi-1.15.5.gem
Source5: ffi-1.15.5.gem
BuildRequires: gcc gcc-c++ glibc-devel libtool libxml2-devel libxslt-devel
BuildRequires: ruby-devel rubygem-bundler ruby-common make
@ -72,6 +75,12 @@ if [ ! -f verdor.obscpio ]; then find ./vendor/cache | cpio -o -H newc > %{_sour
if [ -d vendor ]; then rm -rf vendor; fi
cpio -idvm < verdor.obscpio
cd -
arch=`uname -m`
if [ $arch == 'loongarch64' ];then
cp %{SOURCE5} %{_sourcedir}/vendor/cache/
fi
export QA_SKIP_BUILD_ROOT=1
# copy gem files into cache
mkdir -p vendor/cache
@ -136,6 +145,9 @@ done
%doc README
%changelog
* Wed May 15 2024 Wenlong Zhang<zhangwenlong@loongson.cn> - 2.10.15-9
- add loongarch64 support for obs-bundled-gems
* Tue Aug 29 2023 liyanan <thistleslyn@163.com> - 2.10.15-8
- Replace Gemfile with commit de86991072b9457dd7d12dee129aef8326829935