Procedures to create and release Standard LHCb RPMs

Building C++ Project RPMs

ToDo: Explain how to use the lhcb-release slot

Adding RPMs to the LHCb yum repository

The command lb-release-rpm was added for this purpose as from LbScripts v8r0p1 If is the directory containing the new RPMs, it is enough to do:

lb-release-rpm <myreleasedir>

Then check the output (this should only copy new RPMs not already in the repository) If all seems fine, perform the actual copy by doing:

lb-release-rpm <myreleasedir> --copy

This command essentially does:

cp <myreleasedir>/*.rpm $LHCBTAR/rpm/lhcb
createrepo --workers=20 --update $LHCBTAR/rpm/lhcb

Special RPMs (procedures for librarians)

LHCbExternals: Meta RPMs for a version of LCG

First get a version of the LbNightlyTools and configure the environment:

git clone
cd LbNightlyTools
. ./

Then produce the spec file for the LHCbExternals version and create the RPM:

lbn-generate-extspec LHCbExternals v68r0p1 x86_64-slc6-gcc48-opt -o my.spec
rpmbuild -bb my.spec

lbn-generate-extspec LHCbExternals v68r0p1 x86_64-slc6-gcc48-dbg -o mydbg.spec
rpmbuild -bb mydbg.spec

(see for the creation of the externals project)

-- BenjaminCouturier - 18 Jun 2014

This topic: LHCb > WebHome > LHCbComputing > BuildingLHCbRPMs
Topic revision: r4 - 2014-07-10 - BenjaminCouturier
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback