Add macros for new /hal path 02/251402/3 accepted/tizen/base/tool/20210125.051925 submit/tizen_base/20210115.063702 submit/tizen_base/20210121.021519
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Jan 2021 08:05:34 +0000 (17:05 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 14 Jan 2021 02:00:08 +0000 (11:00 +0900)
Tizen 6.5 feature[1] supports new /hal path which including the HAL backend
packages depend on h/w device. Need the following macros for HAL backend
packages.
- %{_hal_prefix}     : /hal
- %{_hal_libdir}     : /hal/lib64 or /hal/lib
- %{_hal_includedir} : /hal/include
- %{_hal_sysconfdir} : /hal/etc
- %{_hal_datadir}    : /hal/share
- %{_hal_licensedir} : /hal/share/licenses

Change-Id: Ica958dbef37b1b23762c7b5e337161b3d8e0498b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
macros.in

index 053060d..ea09df3 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -985,6 +985,13 @@ posix.setenv("RPMBUILD_SOURCEDIR",rpm.expand("%?_sourcedir"));
 %_infodir              %{_datadir}/info
 %_mandir               %{_datadir}/man
 
+%_hal_prefix           /hal
+%_hal_libdir           %{_hal_prefix}/%{_lib}
+%_hal_includedir       %{_hal_prefix}/include
+%_hal_sysconfdir       %{_hal_prefix}%{_sysconfdir}
+%_hal_datadir          %{_hal_prefix}/share
+%_hal_licensedir       %{_hal_prefix}/share/licenses
+
 #==============================================================================
 # ---- config.guess platform macros.
 #      Macro(s) similar to the tokens used by configure.