From Fedora Project Wiki

(%make_install)
 
No edit summary
Line 10: Line 10:
%make_install is defined at http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=883253ea6af71f8063d7a045841c35bad22147e2 and available since RPM 4.8.    The current packaging guidelines use the expanded  make install DESTDIR=%{?buildroot} before the make_install macro was added to upstream RPM.  We should modify the packaging guidelines to suggest using the macro in place of the full definition.  The alternative should continue to be acceptable since mass conversion isn't necessary.  The recommendation would apply for new packages.  
%make_install is defined at http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=883253ea6af71f8063d7a045841c35bad22147e2 and available since RPM 4.8.    The current packaging guidelines use the expanded  make install DESTDIR=%{?buildroot} before the make_install macro was added to upstream RPM.  We should modify the packaging guidelines to suggest using the macro in place of the full definition.  The alternative should continue to be acceptable since mass conversion isn't necessary.  The recommendation would apply for new packages.  


Note: %makeinstall is bad and wrong and is only maintained for compatibility.  %make_install is new and recommmended.  
Note: %makeinstall is bad and wrong and is only left in upstream RPM for compatibility.  %make_install is the new and recommmended method.  




[[Category:Packaging guidelines drafts]]
[[Category:Packaging guidelines drafts]]

Revision as of 17:40, 4 June 2012

Warning.png
This page is a draft only
It is still under construction and content may change. Do not rely on the information on this page.

Rationale

Update guidelines to use %make_install. It is simpler to use


Using %make_install

%make_install is defined at http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=883253ea6af71f8063d7a045841c35bad22147e2 and available since RPM 4.8. The current packaging guidelines use the expanded make install DESTDIR=%{?buildroot} before the make_install macro was added to upstream RPM. We should modify the packaging guidelines to suggest using the macro in place of the full definition. The alternative should continue to be acceptable since mass conversion isn't necessary. The recommendation would apply for new packages.

Note: %makeinstall is bad and wrong and is only left in upstream RPM for compatibility. %make_install is the new and recommmended method.