reloc-pkg: move all files under project name directory

To make unified relocatable package easily, we may want to merge tarballs to single tarball like this:
zcat *.tar.gz | gzip -c > scylla-unified.tar.xz
But it's not possible with current relocatable package format, since there are multiple files conflicts, install.sh, SCYLLA-*-FILE, dist/, README.md, etc..

To support this, we need to archive everything in the directory when building relocatable package.

This is modifying relocatable package format, we need to provide a way to
detect the format version.
To do this, we added a new file ".relocatable_package_version" on the top of the
archive, and set version number "2" to the file.

Fixes #6315
This commit is contained in:
Takuya ASADA
2020-04-30 03:01:53 +09:00
committed by Pekka Enberg
parent 28c3d4f8e8
commit 536ab4ebe4
12 changed files with 102 additions and 64 deletions

View File

@@ -23,7 +23,7 @@ functionality). All shared libraries needed for the interpreter to
operate are shipped with it.
%prep
%setup -q -c
%setup -n scylla-python3
%install
./install.sh --root "$RPM_BUILD_ROOT"