From 697f2c2f2a02bb5f9505141077240c42b579947e Mon Sep 17 00:00:00 2001 From: markeryang Date: Tue, 17 Nov 2020 19:44:00 +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 0bf59ef..1e6acaa 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: 1 +Release: 2 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,11 +132,14 @@ done %doc README %changelog +* Tue Nov 17 2020 yanglongkang - 2.10.1-2 +- Add verdor.obscpio to the source code package. + * Fri Aug 21 2020 lunankun - 2.10.1-1 - Type:bugfix - Id:NA - SUG:NA - DESC:release +1 for rebuild -*Sat Mar 7 2020 Shijie Luo 2.10.1-0 --Package Init. +* Sat Mar 7 2020 Shijie Luo 2.10.1-0 +- Package Init.