summaryrefslogtreecommitdiff
path: root/packaging/rpm-tizen_macros
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpm-tizen_macros')
-rw-r--r--packaging/rpm-tizen_macros2
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros
index 522cd644a..e7648f9f8 100644
--- a/packaging/rpm-tizen_macros
+++ b/packaging/rpm-tizen_macros
@@ -15,6 +15,8 @@
# external kernel module helper macro(s)
%kernel_devel_uname_r %(/bin/rpm -q --provides $(/bin/rpm -q --whatprovides kernel-devel-uname-r) | sed -ne 's,kernel-devel-uname-r = ,, p')
+%kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel))
+%kernel_name %(/bin/rpm -q --queryformat '%{RPMTAG_NAME}' $(/bin/rpm -q --whatprovides kernel))
# this script calls all scripts in /usr/lib/rpm/brp-tizen.d
%__os_install_post \