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_macros3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros
index ad0bc92ec..522cd644a 100644
--- a/packaging/rpm-tizen_macros
+++ b/packaging/rpm-tizen_macros
@@ -13,6 +13,9 @@
%rb_arch %(echo %{_host_cpu}-linux | sed -e "s/i686/i586/" -e "s/armv5tel/armv4l/" -e "s/hppa2.0/hppa/")
%rb_ver %(/usr/bin/ruby -e 'puts VERSION.sub(/\\\.\\\d$/, "")')
+# 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')
+
# this script calls all scripts in /usr/lib/rpm/brp-tizen.d
%__os_install_post \
/usr/lib/rpm/brp-compress \