From Fedora Project Wiki

(notes on %autosetup)
 
(Fix RPM documentation link)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
%autosetup as a replacement for %setup that handles patches directly without having to manually list them one by one was introduced in 4.11 version of RPM (Fedora 19) and there is no reason not to recommend it over %setup everywhere except for EPEL
%autosetup as a replacement for %setup that handles patches directly without having to manually list them one by one was introduced in 4.11 version of RPM (Fedora 19) and there is no reason not to recommend it over %setup everywhere except for EPEL


http://www.rpm.org/wiki/PackagerDocs/Autosetup
https://rpm-software-management.github.io/rpm/manual/autosetup.html


https://fedoraproject.org/wiki/Packaging:Guidelines has a few examples where %setup is used.  This should be replaced with  
https://fedoraproject.org/wiki/Packaging:Guidelines has a few examples where %setup is used.  This should be replaced with  

Latest revision as of 22:32, 8 May 2022

%autosetup as a replacement for %setup that handles patches directly without having to manually list them one by one was introduced in 4.11 version of RPM (Fedora 19) and there is no reason not to recommend it over %setup everywhere except for EPEL

https://rpm-software-management.github.io/rpm/manual/autosetup.html

https://fedoraproject.org/wiki/Packaging:Guidelines has a few examples where %setup is used. This should be replaced with %autosetup with a note that EPEL package maintainers (before EL7) should continue using %setup or wrap it in %ifdef macros.

PS: Considering https://fedoraproject.org/wiki/Make_install_packaging_draft was approved Please use it in the examples provided in packaging guidelines as well.