Skip to content

Commit

Permalink
Pass first parameter to make-dist for building SRPM
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wido committed Feb 17, 2017
1 parent a785b00 commit 0ae3154
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion make-srpm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/sh

./make-dist
#
# 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

0 comments on commit 0ae3154

Please sign in to comment.