Add verdor.obscpio to the source code package.
Signed-off-by:markeryang<yanglongkang@huawei.com>
This commit is contained in:
parent
1e326581e7
commit
faf7b698c6
@ -19,12 +19,13 @@
|
|||||||
%global rack_version 2.0.8
|
%global rack_version 2.0.8
|
||||||
Name: obs-bundled-gems
|
Name: obs-bundled-gems
|
||||||
Version: 2.10.1
|
Version: 2.10.1
|
||||||
Release: 0
|
Release: 1
|
||||||
Summary: The Open Build Service -- Bundled Gems
|
Summary: The Open Build Service -- Bundled Gems
|
||||||
License: GPL-2.0-only OR GPL-3.0-only
|
License: GPL-2.0-only OR GPL-3.0-only
|
||||||
URL: http://www.openbuildservice.org
|
URL: http://www.openbuildservice.org
|
||||||
Source0: Gemfile
|
Source0: Gemfile
|
||||||
Source1: Gemfile.lock
|
Source1: Gemfile.lock
|
||||||
|
Source2: verdor.obscpio
|
||||||
BuildRequires: cyrus-sasl-devel mysql-devel nodejs openldap-devel python3-devel
|
BuildRequires: cyrus-sasl-devel mysql-devel nodejs openldap-devel python3-devel
|
||||||
BuildRequires: gcc gcc-c++ glibc-devel libtool libxml2-devel libxslt-devel
|
BuildRequires: gcc gcc-c++ glibc-devel libtool libxml2-devel libxslt-devel
|
||||||
BuildRequires: ruby-devel rubygem-bundler ruby-common
|
BuildRequires: ruby-devel rubygem-bundler ruby-common
|
||||||
@ -64,6 +65,11 @@ echo "This package contains of requirements"> README
|
|||||||
cp %{_sourcedir}/Gemfile %{_sourcedir}/Gemfile.lock .
|
cp %{_sourcedir}/Gemfile %{_sourcedir}/Gemfile.lock .
|
||||||
|
|
||||||
%build
|
%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
|
export QA_SKIP_BUILD_ROOT=1
|
||||||
# copy gem files into cache
|
# copy gem files into cache
|
||||||
mkdir -p vendor/cache
|
mkdir -p vendor/cache
|
||||||
@ -126,5 +132,8 @@ done
|
|||||||
%doc README
|
%doc README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
*Sat Mar 7 2020 Shijie Luo <luoshijie1@huawei.com> 2.10.1-0
|
* Tue Nov 17 2020 yanglongkang <yanglongkang@huawei.com> 2.10.1-1
|
||||||
-Package Init.
|
- Add verdor.obscpio to the source code package.
|
||||||
|
|
||||||
|
* Sat Mar 7 2020 Shijie Luo <luoshijie1@huawei.com> 2.10.1-0
|
||||||
|
- Package Init.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user