diff options
author | Jacek Pielaszkiewicz <j.pielaszkie@samsung.com> | 2014-01-20 13:26:39 +0100 |
---|---|---|
committer | Patrick McCarty <patrick.mccarty@linux.intel.com> | 2014-01-29 11:05:14 -0800 |
commit | 940f59b70d2f1ba4141489ed55f679fcb9c3f1fb (patch) | |
tree | 7b9410e6d4436a41dfc3cfd422a28c31c182959f | |
parent | f5081b28715feae781b50a4421e5f50c67570f88 (diff) | |
download | rpm-940f59b70d2f1ba4141489ed55f679fcb9c3f1fb.tar.gz rpm-940f59b70d2f1ba4141489ed55f679fcb9c3f1fb.tar.bz2 rpm-940f59b70d2f1ba4141489ed55f679fcb9c3f1fb.zip |
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 <j.pielaszkie@samsung.com>
-rw-r--r-- | packaging/rpm-tizen_macros | 2 |
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 \ |