Generating a Ceph RPM Package
- Modify the configuration file.
- Change the default BUILD mode in do_cmake.sh to the high-performance mode.
1vi do_cmake.sh

- Copy the ceph.spec file.
1cp ceph.spec /home/rpmbuild/SPECS/
- Copy the source package.
1 2 3
cd /home/ tar -cjvf ceph-14.2.8.tar.bz2 ceph-14.2.8 cp ceph-14.2.8.tar.bz2 /home/rpmbuild/SOURCES/
- Change the default BUILD mode in do_cmake.sh to the high-performance mode.
- Add fields to the beginning of the ceph.spec file.
1vi /home/rpmbuild/SPECS/ceph.spec
Add the following fields:
1%define _binaries_in_noarch_packages_terminate_build 0
- Build an RPM package.
1rpmbuild -bb /home/rpmbuild/SPECS/ceph.spec
Parent topic: Compiling and Deploying Ceph