[CentOS] Is there a way to _remove_ dependencies from an RPM built from source?

John Stanley john.stanley at elslc.com
Mon Feb 27 03:09:43 UTC 2012


On Mon, 2012-02-27 at 02:52 +0100, Michael Lampe wrote:

> To recap: I'm in the middle and still want to build a sensible rpm for 
> openmpi with intel:
> 
> 	%define _use_internal_dependency_generator 0
> 	%define __find_requires         %{nil}
---
If you did not want any deps then all you had to do was:

%{!?disable_auto_requires: %define disable_auto_requires 0}
to
%{!?disable_auto_requires: %define disable_auto_requires 1}

in the spec file if you got the srpm from the open-mpi.org site.  Which
leads to this being changed.

%if %{disable_auto_requires}
AutoReq: no
%endif




More information about the CentOS mailing list