Rpmbuild v19.1.1 on RHEL6.4

Is it possible to create RPM packages for PBS versions 19.1.1 and newer on RHEL6.4? Despite installing all prereqs, my “rpmbuild -ba pbspro.spec” commands always finish with the following lines:
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /bin/false /bin/sh /usr/bin/env /usr/bin/perl libICE.so.6()(64bit) libSM.so.6()(64bit) libX11.so.6()(64bit) libXft.so.2()(64bit) libXrender.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcrypt.so.1()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libedit.so.0()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libhwloc.so.5()(64bit) libm.so.6()(64bit) libncurses.so.5()(64bit) libpbs.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpython2.6.so.1.0()(64bit) libssl.so.10()(64bit) libtcl8.5.so()(64bit) libtk8.5.so()(64bit) libutil.so.1()(64bit) libz.so.1()(64bit) perl(Env) perl(Switch) perl(strict) rtld(GNU_HASH)
Conflicts: pbspro-server pbspro-client pbspro-client-ohpc pbspro-execution-ohpc pbspro-server-ohpc pbs pbs-mom pbs-cmds
Processing files: pbspro-client-19.1.1-0.x86_64
warning: File listed twice: /etc/profile.d/pbs.csh
warning: File listed twice: /etc/profile.d/pbs.sh
warning: File listed twice: /opt/pbs/sbin/pbs_iff
Provides: config(pbspro-client) = 19.1.1-0 libpbs.so.0()(64bit) libtool(/opt/pbs/lib/libpbs.la)
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /bin/false /bin/sh /usr/bin/env /usr/bin/perl libX11.so.6()(64bit) libXft.so.2()(64bit) libXrender.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcrypt.so.1()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libedit.so.0()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libm.so.6()(64bit) libncurses.so.5()(64bit) libpbs.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpython2.6.so.1.0()(64bit) libtcl8.5.so()(64bit) libtk8.5.so()(64bit) libutil.so.1()(64bit) libz.so.1()(64bit) perl(Env) perl(Switch) perl(strict) rtld(GNU_HASH)
Conflicts: pbspro-server pbspro-execution pbspro-client-ohpc pbspro-execution-ohpc pbspro-server-ohpc pbs pbs-mom pbs-cmds
Processing files: pbspro-ptl-19.1.1-0.x86_64
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/env
Processing files: pbspro-debuginfo-19.1.1-0.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/pbspro-19.1.1-0.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/lib64/pkgconfig/pbs.pc

RPM build errors:
File listed twice: /etc/profile.d/pbs.csh
File listed twice: /etc/profile.d/pbs.sh
File listed twice: /opt/pbs/sbin/pbs_iff
File listed twice: /opt/pbs/sbin/pbs_rcp
File listed twice: /etc/profile.d/pbs.csh
File listed twice: /etc/profile.d/pbs.sh
File listed twice: /opt/pbs/sbin/pbs_iff
File listed twice: /opt/pbs/sbin/pbs_rcp
File listed twice: /etc/profile.d/pbs.csh
File listed twice: /etc/profile.d/pbs.sh
File listed twice: /opt/pbs/sbin/pbs_iff
Installed (but unpackaged) file(s) found:
/usr/lib64/pkgconfig/pbs.pc

I believe the “File listed twice” messages are warnings as opposed to errors.

Add the following line to your ~/.rpmmacros file to silence the “file not found” error:

%_unpackaged_files_terminate_build 0

It looks like you are building your RPM as root, which is discouraged. Take a look at the instructions here: https://pbspro.atlassian.net/wiki/spaces/PBSPro/pages/13991940/Building+PBS+Pro+Using+rpmbuild

In section C, follow the instructions to clone from GitHub rather than download from OpenSUSE.

Hope that helps.

Many thanks for this information. I already suspected the warnings were trivial, but the “installed but not packaged” topic was new to me. Many thanks for this information. The rpm’s generated as expected with your suggested edit.