%install section of a rpm spec file deletes the directory $RPM_BUILD_ROOT in Red Hat Enterprise Linux 7

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content