%install section of a rpm spec file deletes the directory $RPM_BUILD_ROOT in Red Hat Enterprise Linux 7
Issue
- I have a custom rpm spec file, and it copies some files into
$RPM_BUILD_ROOT
in%prep
section. - But, those files are deleted in
%install
section. - This doesn't happen in
Red Hat Enterprise Linux 5
.
Environment
Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.