Add verdor.obscpio to the source code package.

Signed-off-by:markeryang<yanglongkang@huawei.com>
This commit is contained in:
markeryang 2020-11-17 19:44:00 +08:00
parent 7cd308a1b1
commit 697f2c2f2a

View File

@ -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 <yanglongkang@huawei.com> - 2.10.1-2
- Add verdor.obscpio to the source code package.
* Fri Aug 21 2020 lunankun <lunankun@huawei.com> - 2.10.1-1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:release +1 for rebuild
*Sat Mar 7 2020 Shijie Luo <luoshijie1@huawei.com> 2.10.1-0
-Package Init.
* Sat Mar 7 2020 Shijie Luo <luoshijie1@huawei.com> 2.10.1-0
- Package Init.