Summary: Modify slurm.spec to make use of %bcond_with and %bcond_without. Context: Message sent to slurm-dev by dani@letai.org.il (Daniel Letai) on 24/05/16: The tar file contains a spec, so it's easy to just rpmbuild -ta slurm-XXX.tar.bz2 and createrepo on the rpms. If you require any special options during build, this is preferable to using an end result rpms, as it's quite easy to use defines, e.g.: rpmbuild -ta --define '%_prefix /opt/%{name}' --define '%_without_debug 1' slurm-XXX.tar.bz2 I'm still puzzled why slurm.spec reinvents the wheel with the entire slurm_with(out)_opt macros instead of using the venerable bcond_with / bcond_without macros (http://www.rpm.org/wiki/PackagerDocs/ConditionalBuilds)
I briefly looked into this - slurm.spec actually predates the introduction of the %bcond_with/without macros. It's still worth looking into, although it is probably best left as part of a significant overhaul of the spec file as it'd be a significant change in how people currently use rpmbuild.
Tim - assigning this sev5 to you. IIRC correctly from meetings you told you were working on refactoring the .spec file and leaving a .spec legacy there too.
Marking this as a duplicate of the slurm.spec overhaul bug, this'll be fixed as part of that cleanup. *** This ticket has been marked as a duplicate of ticket 3396 ***