Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-10 Thread Santi Saez
El 05/01/2011 20:05, Akemi Yagi escribió: > (..) > So, it will be: > > %rhel 0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n') Akemi and Nico, thank you very much for those tips! Finally I will use the last version proposed by Akemi, thanks! Regards, -- Santi Saez http://woop

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-07 Thread Nico Kadel-Garcia
On Thu, Jan 6, 2011 at 9:29 AM, wrote: > Nico Kadel-Garcia wrote: >> On Thu, Jan 6, 2011 at 3:34 AM, Akemi Yagi wrote: >>> On Wed, Jan 5, 2011 at 9:06 PM, Nico Kadel-Garcia >>> wrote: On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi wrote: >>> > %rhel           0%(/bin/rpm -q -f /etc/redhat

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-06 Thread m . roth
Nico Kadel-Garcia wrote: > On Thu, Jan 6, 2011 at 3:34 AM, Akemi Yagi wrote: >> On Wed, Jan 5, 2011 at 9:06 PM, Nico Kadel-Garcia >> wrote: >>> On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi wrote: >> %rhel           0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' ) >>> >>> Gahhh

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-06 Thread Nico Kadel-Garcia
On Thu, Jan 6, 2011 at 3:34 AM, Akemi Yagi wrote: > On Wed, Jan 5, 2011 at 9:06 PM, Nico Kadel-Garcia wrote: >> On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi wrote: > >>> %rhel           0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' ) >> >> Gahhh. Proportional fonts in this mail interfa

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-06 Thread Akemi Yagi
On Wed, Jan 5, 2011 at 9:06 PM, Nico Kadel-Garcia wrote: > On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi wrote: >> %rhel           0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' ) > > Gahhh. Proportional fonts in this mail interfaces. We hates it, yes, > we hates it > > Good catch, t

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Nico Kadel-Garcia
On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi wrote: > On Wed, Jan 5, 2011 at 10:07 AM, Akemi Yagi wrote: >> On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia wrote: >> >>> Hmmm.. You might befit from the portability of this approach >>> >>> %rhel           0%(/bin/rpm -q --f /etc/redhat-release -q

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Akemi Yagi
On Wed, Jan 5, 2011 at 10:07 AM, Akemi Yagi wrote: > On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia wrote: > >> Hmmm.. You might befit from the portability of this approach >> >> %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' ) >> >> Notice that this now works with R

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Akemi Yagi
On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia wrote: > Hmmm.. You might befit from the portability of this approach > > %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' ) > > Notice that this now works with RHEL and CentOS, and the "\n" keeps > certain programs histor

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-04 Thread Nico Kadel-Garcia
On Tue, Jan 4, 2011 at 12:19 PM, Santi Saez wrote: > El 03/01/2011 20:15, Akemi Yagi escribió: >> You may want to look into the srpms of nx/freenx in the CentOS extras >> repository. The spec file contains the following: >> >> # centos_ver is a number (2,3,4,5). It can be provided in the build sys

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-04 Thread Santi Saez
El 03/01/2011 20:15, Akemi Yagi escribió: > You may want to look into the srpms of nx/freenx in the CentOS extras > repository. The spec file contains the following: > > # centos_ver is a number (2,3,4,5). It can be provided in the build system or > # via the command line with the following define

Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-03 Thread Akemi Yagi
On Mon, Jan 3, 2011 at 8:01 AM, Santi Saez wrote: > Hello, > > I'm trying to use helper variables like %{rhel} in a .SPEC file on > CentOS (as they are defined in RHEL and Fedora [1]), but it seems they > are not available. > > Is there any way to detect automatically CentOS release from a .SPEC >