Red Hat Bugzilla – Bug 1265021
RFE: Add %autosetup macro
Last modified: 2016-05-10 20:54:02 EDT
Description of problem:
Any chance the %autosetup macro could be added to the EL6 rpm? Or should EPEL just add it somewhere else?
Version-Release number of selected component (if applicable):
Not sure if we want to backport %autosetup to rhel6 rpm. But %autosetup is not hardcoded in rpm, it is implemented by macros. That means you can easily add %autosetup to your system by adding the content of the attached file into your ~/.rpmmacros or create some file in /etc/rpm and put the content there (then it will be available for all users).
Is that acceptable solution for you?
Created attachment 1100923 [details]
autosetup_macros extracted from /usr/lib/rpm/macros
The goal is to allow Fedora/EPEL rpms to share the same spec file. If it's not going to be added to RHEL's rpm macros, we can add it to epel-release or similar.
We want to have macros like this in one place. Devel ack for adding autosetup macros into rpm package.
I was just CC'd on this. epel-rpm-macros has autosetup currently, but if it's going into some base RHEL release then we can remove it. The question is, when should this happen?
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.