diff --git a/pkg/rpm_pfg.bzl b/pkg/rpm_pfg.bzl index 756482b3..47da2844 100644 --- a/pkg/rpm_pfg.bzl +++ b/pkg/rpm_pfg.bzl @@ -45,7 +45,7 @@ spec_filetype = [".spec", ".spec.in", ".spec.tpl"] # TODO(nacl, #292): cp -r does not do the right thing with TreeArtifacts _INSTALL_FILE_STANZA_FMT = """ install -d "%{{buildroot}}/$(dirname '{1}')" -cp '{0}' '%{{buildroot}}/{1}' +cp '%{{_topdir}}/BUILD/{0}' '%{{buildroot}}/{1}' """.strip() # TODO(nacl): __install