Re: Problem with sed in spec file

2013-08-23 Thread Ville Skyttä
On Wed, Aug 21, 2013 at 6:58 PM, Juan Orti Alcaine wrote: > El Miércoles, 21 de agosto de 2013 16:03:23 Richard W.M. Jones escribió: >> Just open a bug against selinux-policy and ask the maintainer >> to drop a file somewhere which contains the version number, eg: >> >> %install >> echo '%{ver

Re: Problem with sed in spec file

2013-08-21 Thread Juan Orti Alcaine
El Miércoles, 21 de agosto de 2013 16:03:23 Richard W.M. Jones escribió: > Just open a bug against selinux-policy and ask the maintainer > to drop a file somewhere which contains the version number, eg: > > %install > echo '%{version}' > $RPM_BUILD_ROOT%{_datadir}/selinux/version > > We do so

Re: Problem with sed in spec file

2013-08-21 Thread Richard W.M. Jones
On Wed, Aug 21, 2013 at 12:49:04PM +0100, Paul Howarth wrote: > On 21/08/13 12:21, Juan Orti Alcaine wrote: > >Hello, I'm adding a SELinux module to the gogoc package, as seen in this > >draft [1], and I've received a error about the dependecies. In my spec > >file I use this to extract the selinux

Re: Problem with sed in spec file

2013-08-21 Thread Ralf Corsepius
On 08/21/2013 02:00 PM, Juan Orti Alcaine wrote: El 2013-08-21 11:49, Paul Howarth escribió: On 21/08/13 12:21, Juan Orti Alcaine wrote: Hello, I'm adding a SELinux module to the gogoc package, as seen in this draft [1], and I've received a error about the dependecies. In my spec file I use thi

Re: Problem with sed in spec file

2013-08-21 Thread Juan Orti Alcaine
El 2013-08-21 11:49, Paul Howarth escribió: On 21/08/13 12:21, Juan Orti Alcaine wrote: Hello, I'm adding a SELinux module to the gogoc package, as seen in this draft [1], and I've received a error about the dependecies. In my spec file I use this to extract the selinux-policy version and use i

Re: Problem with sed in spec file

2013-08-21 Thread Paul Howarth
On 21/08/13 12:21, Juan Orti Alcaine wrote: Hello, I'm adding a SELinux module to the gogoc package, as seen in this draft [1], and I've received a error about the dependecies. In my spec file I use this to extract the selinux-policy version and use it as a dependency: %global selinux_policyver

Problem with sed in spec file

2013-08-21 Thread Juan Orti Alcaine
Hello, I'm adding a SELinux module to the gogoc package, as seen in this draft [1], and I've received a error about the dependecies. In my spec file I use this to extract the selinux-policy version and use it as a dependency: %global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]