Rpmbuild SPEC file - variable declaration

2015-09-13 Thread arnaud gaboury
When declaring a variable value, I wonder if the any difference/best practice between these methods: export VAR=MyValue %{define} VAR MyValue %{global} VAR MyValue Thank you for hints. -- google.com/+arnaudgabourygabx -- devel mailing list devel@lists.fedoraproject.org

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread Haïkel
I might add that fedora-review could be run on local spec + srpm and will warn you about these kinds of things. H. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread Reindl Harald
Am 13.09.2015 um 15:39 schrieb arnaud gaboury: On Sun, Sep 13, 2015 at 2:16 PM, Rex Dieter wrote: arnaud gaboury wrote: When declaring a variable value, I wonder if the any difference/best practice between these methods: export VAR=MyValue %{define} VAR MyValue

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread arnaud gaboury
On Sun, Sep 13, 2015 at 3:53 PM, Reindl Harald wrote: > > > Am 13.09.2015 um 15:39 schrieb arnaud gaboury: >> >> On Sun, Sep 13, 2015 at 2:16 PM, Rex Dieter wrote: >>> >>> arnaud gaboury wrote: >>> When declaring a variable value, I wonder if

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread arnaud gaboury
On Sep 13, 2015 4:07 PM, "Reindl Harald" wrote: > > > > Am 13.09.2015 um 16:01 schrieb arnaud gaboury: >> >> On Sun, Sep 13, 2015 at 3:53 PM, Reindl Harald wrote: export CFFLAGS= '-xHost -mavx -fp-model precise' %configure

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread Reindl Harald
Am 13.09.2015 um 16:01 schrieb arnaud gaboury: On Sun, Sep 13, 2015 at 3:53 PM, Reindl Harald wrote: export CFFLAGS= '-xHost -mavx -fp-model precise' %configure CFFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ Is above the the best way? no *

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread Rex Dieter
arnaud gaboury wrote: > When declaring a variable value, I wonder if the any difference/best > practice between these methods: > > export VAR=MyValue > %{define} VAR MyValue > %{global} VAR MyValue best practice is to use global, it is explicitly mentioned here:

Re: Rpmbuild SPEC file - variable declaration

2015-09-13 Thread arnaud gaboury
On Sun, Sep 13, 2015 at 2:16 PM, Rex Dieter wrote: > arnaud gaboury wrote: > >> When declaring a variable value, I wonder if the any difference/best >> practice between these methods: >> >> export VAR=MyValue >> %{define} VAR MyValue >> %{global} VAR MyValue > > best