On Jan 11, 2019, at 6:22 PM, Lance Hartmann ORACLE
<lance.hartmann(a)oracle.com> wrote:
> On Jan 11, 2019, at 10:23 AM, Andrey Kuzmin <andrey.v.kuzmin(a)gmail.com> wrote:
>
> Could someone please point me to the relevant docs/scripts regarding how to
> build SPDK rpms?
Essentially, you'll check out the version of the SPDK tree (no earlier than 18.10.1)
in which the spdk.spec appears under pkg.
You can then create a tarball of the spdk directory but you need to ensure that the top
level directory is named corresponding to the version. Thus, for v18.10.1, you need to
ensure the top level directory is named 'spdk-18.10.1' and that the compressed
tarball you create is named, spdk-18.10.1.tar.gz.
Or, alternatively for a cut release like v18.10.1, instead of creating the tarball
yourself from the cloned tree, you could retrieve the tarball from github, e.g.:
curl -Lo spdk-18.10.1.tar.gz
https://github.com/spdk/spdk/archive/v18.10.1.tar.gz
And then extract the spec file in there via:
tar -xavf spdk-18.10.1.tar.gz spdk-18.10.1/pkg/spdk.spec
You'd then copy the compressed tarball, spdk-18.10.1.tar.gz, into the SOURCES
directory of your rpm packaging workspace and the extracted spec file
./spdk-18.10.1/pkg/spdk.spec to the SPECS directory of your rpm packaging workspace.
The 'rpm packaging workspace' is described in the rpm-guide.
If you're new to building rpm's, I might suggest the
following which explains how you setup the rpm build directory, populate it with the spec
file and tarball, etc:
https://rpm-guide.readthedocs.io/en/latest/
--
Lance