halapi: Add macros.hal-api to add new rpm macro for /hal 20/253720/1 accepted/tizen/unified/20210219.040902 submit/tizen/20210217.033413 submit/tizen/20210217.044338 submit/tizen/20210218.022439
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 17 Feb 2021 02:25:56 +0000 (11:25 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 17 Feb 2021 02:25:56 +0000 (11:25 +0900)
Change-Id: Iae582e0d2b5912837beb1608bc4f0a8eba91595b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/hal-api-common.spec
packaging/macros.hal-api [new file with mode: 0644]

index 87a46cd..b381841 100644 (file)
@@ -13,6 +13,7 @@ Source0:    %{name}-%{version}.tar.gz
 Source1:    %{name}.manifest
 Source2:    libhal-api.conf
 Source3:    systemd-hal-firmware-generator
+Source4:    macros.hal-api
 
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -65,6 +66,7 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}/hal
 install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ld.so.conf.d/libhal-api.conf
 install -D -m 0755 %{SOURCE3} %{buildroot}%{_systemdgeneratordir}/systemd-hal-firmware-generator
+install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rpm/macros.hal-api
 
 %clean
 rm -rf %{buildroot}
@@ -95,6 +97,7 @@ fi
 %defattr(-,root,root,-)
 %{_includedir}/hal/*.h
 %{_libdir}/pkgconfig/*.pc
+%{_sysconfdir}/rpm/macros.hal-api
 
 %files -n %{test_name}
 %{_bindir}/hal/common-haltests
diff --git a/packaging/macros.hal-api b/packaging/macros.hal-api
new file mode 100644 (file)
index 0000000..8d172c2
--- /dev/null
@@ -0,0 +1,9 @@
+# RPM macros for /hal directory
+
+%_hal_prefix           /hal
+%_hal_bindir           %{_hal_prefix}/bin
+%_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