1
0
mirror of https://github.com/ceph/ceph synced 2024-12-17 17:05:42 +00:00
ceph/make-srpm.sh
Wido den Hollander 0ae3154eb2
Pass first parameter to make-dist for building SRPM
This allows for overriding the version to be build in the SRPM.

make-dist already supports this, pass down the parameter so you can run:

  $ ./make-srpm.sh 12.0.0

Afterwards RPMs can be build using:

  $ rpmbuild --rebuild /tmp/ceph-12.0.0.el7.src.rpm

Signed-off-by: Wido den Hollander <wido@42on.com>
2017-02-17 12:23:10 +01:00

12 lines
259 B
Bash
Executable File

#!/bin/sh
#
# Create a SRPM which can be used to build Ceph
#
# ./make-srpm.sh <version>
# rpmbuild --rebuild /tmp/ceph/ceph-<version>-0.el7.centos.src.rpm
#
./make-dist $1
rpmbuild -D"_sourcedir `pwd`" -D"_specdir `pwd`" -D"_srcrpmdir `pwd`" -bs ceph.spec