[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Implicit (Build)Requires set by macros?



On Sun, Apr 06, 2003 at 01:22:49PM +0200, Axel Thimm wrote:
> Is there a way to have automatically set Requires and BuildRequires? I would
> like to have a set of packages identified that way (all depend on a master
> package), and also to be built in a defined environment, but I would like to
> keep the specfile itself clean from these dependencies, so that people
> rebuilding those packages do not have to do the same.
> 
> It's similar to having %vendor and %packager in ~/.rpmmacros set instead of
> the specfile itself. Does something like a %_main_package_extra macro (for
> BuildRequires:) and a %_package_extra macro (for Requires: per package) exist?

Create your own.

Add to preamble:
	%{?_my_very_own_macros}
Add to /etc/rpm/macros or ~/.rpmmacros:
	%_my_very_own_macros	\
	BuildRequires: something_i_want_when_building\
	Requires: something_i_need_when_installing\
	%{nil}

Why you want to add dependencies for your package builds, but not for everyone
else's builds, with the goal of a "clean" spec file is beyond my understanding.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []