Description of problem: the spec file template in vim is out-of-date. for example: %clean #rm -rf $RPM_BUILD_ROOT -This section is no-longer needed. %install rm -rf $RPM_BUILD_ROOT -The rm -rf line is no longer needed. make install DESTDIR=$RPM_BUILD_ROOT - the use of $-style macro is out-of-date and also inconsistent with the %{}-style macro further up in the template - should probably be instead: make DESTDIR=%{buildroot} install
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative.
I'll fix only the RPM_BUILD_ROOT macro. RHEL6 rpmlint complains when the cleanup lines get removed: xxx.spec: W: no-cleaning-of-buildroot %install xxx.spec: W: no-cleaning-of-buildroot %clean xxx.spec: W: no-%clean-section
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0454.html