]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha-stable: various rpm build updates 952/head
authorAli Maredia <amaredia@redhat.com>
Mon, 12 Feb 2018 22:07:34 +0000 (17:07 -0500)
committerAli Maredia <amaredia@redhat.com>
Mon, 12 Feb 2018 22:13:55 +0000 (17:13 -0500)
added a $CEPH_VERSION var to specify rpm installations

changed rpm build type to Release

Signed-off-by: Ali Maredia <amaredia@redhat.com>
nfs-ganesha-stable/build/build_rpm
nfs-ganesha-stable/config/definitions/nfs-ganesha-stable.yml

index 3dedc0fb13484ea7c40eaea22c0484077dca740f..a0eaa87c2558709fb8b0fb23fa8da6b80270830e 100644 (file)
@@ -48,8 +48,9 @@ libcap-devel
 libnfsidmap-devel
 libwbclient-devel
 krb5-devel
-librgw-devel
-libcephfs-devel
+librados-devel-${CEPH_VERSION}
+librgw-devel-${CEPH_VERSION}
+libcephfs-devel-${CEPH_VERSION}
 "
 
 sudo yum install -y mock
@@ -70,10 +71,11 @@ mkdir build
 cd build
 
 # generate .spec file, edit .spec file for correct versions of libs and make source tarball
-cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=OFF -DUSE_FSAL_CEPH=ON -DUSE_FSAL_RGW=ON -DRADOS_URLS=ON -DUSE_RADOS_RECOV=ON $WORKSPACE/nfs-ganesha/src && make dist || exit 1
+cmake -DCMAKE_BUILD_TYPE=Release -DUSE_FSAL_GLUSTER=OFF -DUSE_FSAL_CEPH=ON -DUSE_FSAL_RGW=ON -DRADOS_URLS=ON -DUSE_RADOS_RECOV=ON $WORKSPACE/nfs-ganesha/src && make dist || exit 1
 
 sed -i 's/libcephfs1-devel/libcephfs-devel/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec
 sed -i 's/librgw2-devel/librgw-devel/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec
+sed -i 's/CMAKE_BUILD_TPYE=Debug/CMAKE_BUILD_TYPE=Release/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec
 
 ## Create the source rpm
 echo "Building SRPM"
index 43834828e648646a263f87855ea52427f2a1558e..4acc442bb84ef9fab5d64f06871c52746b3b7e35 100644 (file)
           description: "The branch of Ceph to get the repo file of for libcephfs"
           default: "luminous"
 
+      - string:
+          name: CEPH_VERSION
+          description: "The version of Ceph to specify for installing ceph libraries"
+          default: "12.2.2"
+
       - string:
           name: DISTROS
           description: "A list of distros to build for. Available options are: xenial, centos7"
@@ -95,6 +100,7 @@ Default: False. When True it will not POST binaries to chacra. Artifacts will no
 If this is unchecked, then nothing is built or pushed if they already exist in chacra. This is the default.
 
 If this is checked, then the binaries will be built and pushed to chacra even if they already exist in chacra."
+          default: true
 
       - string:
           name: BUILD_VIRTUALENV