From 940f59b70d2f1ba4141489ed55f679fcb9c3f1fb Mon Sep 17 00:00:00 2001 From: Jacek Pielaszkiewicz Date: Mon, 20 Jan 2014 13:26:39 +0100 Subject: Export kernel package name and kernel package release as new macros. The following macros have been added: 1. %kernel_name - kernel name 2. %kernel_release - kenrel release Change-Id: Ie3d2b310b839353af2855f1b6a0eff6abff1aeeb Signed-off-by: Jacek Pielaszkiewicz --- packaging/rpm-tizen_macros | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packaging/rpm-tizen_macros') 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 \ -- cgit v1.2.3