RPMbuild behaviour on Red Hat Enterprise Linux 6

Solution Verified - Updated -

Issue

  • I'm trying to use a simple spec file that I used in RHEL5 which only grabs some files and packages them into an RPM.
  • When I try to build on RHEL6 it forces me to create all the whole build tree structure.
  • The spec file I'm using has a %files section with the files I want, but no %prep, %build, %install or any other section besides package description. BuildRoot is set to /tmp.
  • I get this:
    RPM build errors:
        File not found by glob: /root/rpmbuild/BUILDROOT/package/files/full/path/*
        File not found: /root/rpmbuild/BUILDROOT/...

Environment

  • Red Hat Enterprise Linux (RHEL) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.