The spec file below builds fine using rpmbuild 4.0.4, but fails with 4.1.1 (please, no argument about the purpose, it is just a very simple example of the failure). The failure seems to be that in 4.1.1, saying "%install dummy" results in %install being replaced with nothing, leaving "dummy" in the script, as shown here: Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.13213 + umask 022 + cd /local/home/cg/a/eng-collector10/rpm/BUILD + LANG=C + export LANG + dummy /var/tmp/rpm-tmp.13213: line 24: dummy: command not found error: Bad exit status from /var/tmp/rpm-tmp.13213 (%install) The script is: #!/bin/sh RPM_SOURCE_DIR="/local/home/cg/a/eng-collector10/rpm/SOURCES" RPM_BUILD_DIR="/local/home/cg/a/eng-collector10/rpm/BUILD" RPM_OPT_FLAGS="-O2 -g -march=i386 -mcpu=i686" RPM_ARCH="i386" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="lms" RPM_PACKAGE_VERSION="%{atperlversion}" RPM_PACKAGE_RELEASE="12242" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE RPM_BUILD_ROOT="/local/home/cg/a/eng-collector10/rpm/BUILD" export RPM_BUILD_ROOT set -x umask 022 cd /local/home/cg/a/eng-collector10/rpm/BUILD LANG=C export LANG dummy mkdir -p ./usr/lib/addamark/dummy touch ./usr/lib/addamark/dummy/dummy.txt /usr/lib/rpm/redhat/brp-compress /usr/lib/rpm/redhat/brp-strip /usr/lib/rpm/redhat/brp-strip-comment-note And here is the spec file: Summary: Log Management System Name: lms Version: %{distversion} Release: %{buildnum} URL: http://www.addamark.com License: Proprietary Group: Applications/Database Vendor: Addamark Technologies Inc. %description Scalable Log Management System %package dummy Summary: Provide dummy X11 libs to satisfy an unneeded dependency Group: Applications/Database Version: %{atperlversion} Provides: libX11.so.6, libXpm.so.4 BuildRoot: %{_topdir}/BUILD Prefix: /usr/lib/addamark/dummy %install dummy mkdir -p .%{prefix} touch .%{prefix}/dummy.txt %description dummy No files, just some provides. %files dummy /usr/lib/addamark/dummy/dummy.txt _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list