Generating RPMs for XrootD/XrdCeph
XrootD and XrdCeph are compiled seperately to generate their respective rpms:
Prerequisites (SL7): devtoolset-9
or
Manual installation for XrootD development
XrootD
git clone https://github.com/stfc/xrootd.git -b <your_branch>
cd xrootd/packaging
./makesrpm.sh --version <version no.(e.g. 5.5.4-5)> --define "_with_python3 1" --define "_with_tests 1" --define "_with_scitokens 1" -D "dist .el<os version(7/8/9)>"
cd to the output directory (said in the last ~5 lines of the output)
mkdir RPMS
rpmbuild --rebuild --define "_rpmdir RPMS/" --define "_with_python3 1" --define "_with_scitokens 1" --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" -D "dist .el7" *.src.rpm
XrdCeph
git clone https://github.com/stfc/xrootd.git -b <your_branch>
cd xrootd-ceph/packaging
./makesrpm.sh --output <outputdir> --version <version>
cd <outputdir>
rpm2cpio xrootd-ceph-<version>.el7.src.rpm | cpio -imdv --no-absolute-filenames
If needing to change the name of the rpm, edit xrootd-ceph.spec, line 41 (under package definition) and set the name to your desired one
rpmbuild -ba xrootd-ceph.spec --define "_rpmdir <output dir>"