From faf7b698c681a16f2e3c001becd08176d996da54 Mon Sep 17 00:00:00 2001 From: markeryang Date: Tue, 17 Nov 2020 16:12:44 +0800 Subject: [PATCH] Add verdor.obscpio to the source code package. Signed-off-by:markeryang --- obs-bundled-gems.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/obs-bundled-gems.spec b/obs-bundled-gems.spec index 0860c92..afb1acc 100644 --- a/obs-bundled-gems.spec +++ b/obs-bundled-gems.spec @@ -19,12 +19,13 @@ %global rack_version 2.0.8 Name: obs-bundled-gems Version: 2.10.1 -Release: 0 +Release: 1 Summary: The Open Build Service -- Bundled Gems License: GPL-2.0-only OR GPL-3.0-only URL: http://www.openbuildservice.org Source0: Gemfile Source1: Gemfile.lock +Source2: verdor.obscpio BuildRequires: cyrus-sasl-devel mysql-devel nodejs openldap-devel python3-devel BuildRequires: gcc gcc-c++ glibc-devel libtool libxml2-devel libxslt-devel BuildRequires: ruby-devel rubygem-bundler ruby-common @@ -64,6 +65,11 @@ echo "This package contains of requirements"> README cp %{_sourcedir}/Gemfile %{_sourcedir}/Gemfile.lock . %build +cd %{_sourcedir} +if [ ! -f verdor.obscpio ]; then find ./vendor/cache | cpio -o -H newc > %{_sourcedir}/verdor.obscpio; fi +if [ -d vendor ]; then rm -rf vendor; fi +cpio -idvm < verdor.obscpio +cd - export QA_SKIP_BUILD_ROOT=1 # copy gem files into cache mkdir -p vendor/cache @@ -126,5 +132,8 @@ done %doc README %changelog -*Sat Mar 7 2020 Shijie Luo 2.10.1-0 --Package Init. +* Tue Nov 17 2020 yanglongkang 2.10.1-1 +- Add verdor.obscpio to the source code package. + +* Sat Mar 7 2020 Shijie Luo 2.10.1-0 +- Package Init.