All pastes #501242 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-21 23:04 UTC
rendered paste body
# Based on the excellent work by Tom Moretel and Gregory Boehnlein
# $Id$
# "uname -r" output of the kernel to build for, the running one
# if none was specified with "--define 'kernel <uname -r>'"
%{!?kernel: %{expand: %%define kernel %(uname -r)}}
%define kversion %(echo %{kernel} | sed -e s/smp// -)
%define krelver  %(echo %{kversion} | tr -s '-' '_')
%if %(echo %{kernel} | grep -c smp)
        %{expand:%%define ksmp -smp}
%endif

Summary: Driver for the Zaptel telephony adapters.
and the rest of this spec file follows but the top part before Summary:

I'll put the lines down 1 by 1 and see if you can explain to me what's happening ok...geez I be so happy if I can get past this!!!

%{!?kernel: %{expand: %%define kernel %(uname -r)}}


%define kversion %(echo %{kernel} | sed -e s/smp// -)

...if this is for duel-core procs. I really not interested but just the format and what's going on thx.


%define krelver  %(echo %{kversion} | tr -s '-' '_')


%if %(echo %{kernel} | grep -c smp)
        %{expand:%%define ksmp -smp}
%endif