Rate This Document
Findability
Accuracy
Completeness
Readability

Generating a Ceph RPM Package

  1. Modify the configuration file.
    • Change the default BUILD mode in do_cmake.sh to the high-performance mode.
      1
      vi do_cmake.sh
      

    • Copy the ceph.spec file.
      1
      cp ceph.spec /home/rpmbuild/SPECS/
      
    • Copy the source code package.
      1
      2
      3
      cd /home/
      tar -cjvf ceph-14.2.11.tar.bz2 ceph-14.2.11
      cp ceph-14.2.11.tar.bz2 /home/rpmbuild/SOURCES/
      
  2. Add fields to the beginning of the ceph.spec file.
    1
    vi /home/rpmbuild/SPECS/ceph.spec
    

    Add the following fields:

    1
    %define _binaries_in_noarch_packages_terminate_build 0
    

  3. Build an RPM package.
    1
    rpmbuild -bb /home/rpmbuild/SPECS/ceph.spec