File gem2rpm.yml of Package rubygem-libv8
# ---
# ## used by gem2rpm
# :summary: this is a custom summary
# ## used by gem2rpm
# :description: |-
# this is a custom description
#
# it can be multiline
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
# :version_suffix: -x_y
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm
# :disable_automatic_rdoc_dep: true
# ## used by gem2rpm
:preamble: |-
%define v8_version 8.4.255
BuildRequires: gcc-c++
BuildRequires: python-xml
BuildRequires: ruby
BuildRequires: binutils-gold
BuildRequires: libncurses5
BuildRequires: libxml2-2
BuildRequires: glib2-devel
BuildRequires: gn
BuildRequires: ninja
BuildRequires: clang
BuildRequires: llvm
ExclusiveArch: x86_64
# BuildRequires: foobar
# Requires: foobar
# ## used by gem2rpm
:sources:
- v8-%{v8_version}.tar.xz
- 0008-BUILD_gn.patch
- regenerate_files.rb
- build_clean.rb
- README.Maintainers
- rubygem-libv8-rpmlintrc
:patches:
0001-No-download-v8.patch:
:post_patch: |-
tar -xf %{SOURCE1}
rm -rf vendor/v8
pushd v8-%{v8_version}
patch -p1 -i %{SOURCE2}
popd
mv v8-%{v8_version} vendor/v8
mv vendor/v8/test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven-final-object-expected.txt vendor/v8/test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven-expected.txt
mv vendor/v8/test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven-final-object.js vendor/v8/test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven.js
mv vendor/v8/.cipd vendor/
rm -rf vendor/depot_tools
cp -r vendor/v8/third_party/depot_tools vendor
mkdir -p vendor/v8/third_party/perfetto/ui/dist/gen
ruby="$(ruby-find-versioned ruby | head -n 1)"
$ruby %{SOURCE3} %{version}
# ## used by gem2rpm
:post_install: |-
ruby="$(ruby-find-versioned ruby | head -n 1)"
$ruby %{SOURCE4}
find %{buildroot} -name "*.orig" -delete -print