On 11/29/21 15:48, Vitaly Zaitsev via devel wrote:
On 29/11/2021 14:22, Jun Aruga wrote:
You can use `%bcond_with foo` (foo is not set as "false") or
`%bcond_without foo` (foo is set as "true") syntax.
%bcond_with{,out} has very ugly reverse syntax. I recently got rid of
them in all my
> I use %bcond , with %bcond we can manipulate mock builds with --with ou
> --without .
> In my opinion the most confuse of %bcond is not have %without tag . I
> think that is address here :
> https://github.com/rpm-software-management/rpm/pull/1520
As a reference, you can also manipulate the
On Mon, 2021-11-29 at 15:08 +0100, Vitaly Zaitsev via devel wrote:
> On 29/11/2021 14:57, Jun Aruga wrote:
> > Did you find a better alternative syntax?
>
> Now I'm using the following:
>
> %global enable_foo 1
>
> %if %{enable_foo}
> ...
> %endif
I use %bcond , with %bcond we can manipulate
yes it works for me thank you
On Mon, 2021-11-29 at 13:25 +, Artur Frenszek-Iwicki wrote:
> Not sure if there's a way to test a conditional by itself, but if
> it's somewhere in a spec file,
> you can use "rpmspec --parse $FILE" to see what the spec looks like
> after it's parsed
> and all
Sorry , I want to test RPM Conditionals generally like
%if !0%{?fedora} < 22
echo yes
%endif
%if ! 0%{?rhel} < 8
echo yes
%endif
%if !0%{?fedora}%{?rhel} || 0%{?fedora} >= 15 || 0%{?rhel} >= 7
echo yes
%endif
On Mon, 2021-11-29 at 14:22 +0100, Jun Aruga wrote:
> You can use `%bcond_with
On 29/11/2021 14:57, Jun Aruga wrote:
Did you find a better alternative syntax?
Now I'm using the following:
%global enable_foo 1
%if %{enable_foo}
...
%endif
--
Sincerely,
Vitaly Zaitsev (vit...@easycoding.org)
___
devel mailing list --
On Mon, Nov 29, 2021 at 2:51 PM Vitaly Zaitsev via devel
wrote:
>
> On 29/11/2021 14:22, Jun Aruga wrote:
> > You can use `%bcond_with foo` (foo is not set as "false") or
> > `%bcond_without foo` (foo is set as "true") syntax.
>
> %bcond_with{,out} has very ugly reverse syntax. I recently got rid
On 29/11/2021 14:02, Sérgio Basto wrote:
How I can check RPM Conditionals [1], for example How I can check what
is the result of:
rpmspec --parse foo-bar.spec
--
Sincerely,
Vitaly Zaitsev (vit...@easycoding.org)
___
devel mailing list --
On 29/11/2021 14:22, Jun Aruga wrote:
You can use `%bcond_with foo` (foo is not set as "false") or
`%bcond_without foo` (foo is set as "true") syntax.
%bcond_with{,out} has very ugly reverse syntax. I recently got rid of
them in all my packages.
--
Sincerely,
Vitaly Zaitsev
+1
as in upvoting on stack exhcanges.
On 11/29/21 14:25, Artur Frenszek-Iwicki wrote:
rpmspec --parse $FILE
--
Jiri Vanek Mgr.
Principal QA Software Engineer
Red Hat Inc.
+420 775 39 01 09
___
devel mailing list -- devel@lists.fedoraproject.org
To
Yah, I usually ends in writing super simple no-build package like:
https://bugzilla.redhat.com/show_bug.cgi?id=2001567#c12
and in MC or via rpm scriplet listing, check the outputs...
J:(
On 11/29/21 14:02, Sérgio Basto wrote:
Hi,
How I can check RPM Conditionals [1], for example How I can
Not sure if there's a way to test a conditional by itself, but if it's
somewhere in a spec file,
you can use "rpmspec --parse $FILE" to see what the spec looks like after it's
parsed
and all the conditionals have been evaluated.
A.FI.
___
devel
You can use `%bcond_with foo` (foo is not set as "false") or
`%bcond_without foo` (foo is set as "true") syntax.
```
%bcond_without foo # foo is set as true
%if %{with foo}
echo 1
%else
echo 0
%endif
```
Then run `mock --with foo *.rpm` or `mock --without foo *.rpm` for the
SRPM file.
Jun
Hi,
How I can check RPM Conditionals [1], for example How I can check what
is the result of:
%if 1
echo 1;
%else
echo 0;
%endif
Best regards,
[1]
https://rpm-packaging-guide.github.io/#rpm-conditionals
--
Sérgio M. B.
___
devel mailing
14 matches
Mail list logo