On Thu, Jun 27, 2002 at 04:50:44PM -0400, David Walser wrote:
> Thinking about how you did the --with plf on the freetype2 package, is there
> also a --without option where you could have something enabled by default but
> disable it with a build time option?
>
> The reason I was thinking about this is since openssh needs to build
> openssh-askpass-gnome, it has a whole web of gtk/gnome BuildRequire
> dependencies, which seems bad for something like openssh, so it would be cool
> if there was a way you could just disable that package with a build time
> option. There are lots of other packages that could use this kind of thing
> too.
Do something like this:
%define build_gtk 1
%{?_without_gtk: %{expand: %%define build_gtk 0}}
Then just use something like this:
%if %build_gtk
package askpass-gnome
....
%endif
I think you get the idea.
--
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org
We tend to see all wars through the lens of the current conflict, and we
mine history for lessons convenient to the present purpose.
- Brian Hayes