From Fedora Project Wiki

(notes on %autosetup)
 
m (Link has changed)
 
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
+
http://rpm.org/user_doc/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 15:30, 12 October 2017

%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://rpm.org/user_doc/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.