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
37 lines
880 B
RPMSpec
37 lines
880 B
RPMSpec
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}
|
|
Summary: A standalone python3 interpreter that can be moved around different Linux machines
|
|
AutoReqProv: no
|
|
Provides: %{name}
|
|
|
|
License: Python
|
|
Source0: %{reloc_pkg}
|
|
|
|
%global __brp_python_bytecompile %{nil}
|
|
%global __brp_mangle_shebangs %{nil}
|
|
%global __brp_ldconfig %{nil}
|
|
%global __brp_strip %{nil}
|
|
%global __brp_strip_comment_note %{nil}
|
|
%global __brp_strip_static_archive %{nil}
|
|
|
|
%description
|
|
This is a self-contained python interpreter that can be moved around
|
|
different Linux machines as long as they run a new enough kernel (where
|
|
new enough is defined by whichever Python module uses any kernel
|
|
functionality). All shared libraries needed for the interpreter to
|
|
operate are shipped with it.
|
|
|
|
%prep
|
|
%setup -n scylla-python3
|
|
|
|
%install
|
|
./install.sh --root "$RPM_BUILD_ROOT"
|
|
|
|
%files
|
|
%dir %{target}
|
|
%{target}/*
|
|
|
|
%changelog
|
|
|