[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Passing conditional parameters into a rpm build
- From: "Keith G. Robertson-Turner" <redhat-forums genesis-x nildram co uk>
- To: fedora-devel-list redhat com
- Subject: Passing conditional parameters into a rpm build
- Date: Sun, 25 Jan 2004 06:37:25 +0000
Just hit a small snag building a package:
%install
.... snip ....
# FIXME: how to combine [!?_without_gtk OR ?_with_qt] into a single test?
%{!?_without_gtk:install -D -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/nvclock.xpm}
%{?_with_qt:install -D -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/nvclock.xpm}
and also:
%files
.... snip ....
# FIXME: how to combine [!?_without_gtk OR ?_with_qt] into a single test?
%{!?_without_gtk:%{_datadir}/pixmaps/nvclock.xpm}
%{?_with_qt:%{_datadir}/pixmaps/nvclock.xpm}
I've read the "conditionalbuilds" rpm doc, which gives the example:
# Read: If neither macro exists, then add the default definition.
%{!?_with_ldap: %{!?_without_ldap: %define _without_ldap --without-ldap}}
But that's the equivalent of an [X AND Y], whereas I need a [X OR Y].
Specifically, [IF either X OR Y are TRUE, THEN install the file nvclock.xpm]
How?
TIA.
-
K.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]