15 Jan
2011
15 Jan
'11
14:11
Am Freitag, 14. Januar 2011, 19:18:32 schrieb Tejas Guruswamy:
The original macro failed just because the output from kde4-config changed format slightly with the KDE rebranding.
I've been using this one in my spec files for a while
%define kde4_version %(/usr/bin/kde4-config --version | sed -r '/KDE.*:/! { d }; { s/KDE.*: (([0-9]+)\\.([0-9]+)\\.([0-9]+)) .*/\\2\\3\\4/g }')
Works on all KDE versions I've seen.
Regards, Tejas
When I try this in terminal I get the following: KDE: 4.9.95 (4.6 RC2) I would expect something like 4995 I am only a novice in sed... ;-) Best Greetings Matthias P.S. Sorry Tejas for the personal post... :)