In order to keep the consistent directory path of hal,
change the install directory path and then rename to
hal-api-power-manifest.xml which indicates HAL manifest file.
[Changed install path and file name]
- /etc/hal-manifest/hal-api-power.xml -> /etc/hal/hal-api-power-manifest.xml
Change-Id: I0b466c622d27b7398f1b43d03548d1d8801587e9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
FILES_MATCHING PATTERN "*.h")
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc
DESTINATION ${LIBDIR}/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/hal-api-power.xml
- DESTINATION /etc/hal-manifest/)
ADD_SUBDIRECTORY(tests)
--- /dev/null
+<hal-api>
+ <manifest platform-version="9.0">
+ <hal-module>
+ <name>HAL_MODULE_POWER</name>
+ <version>1.0</version>
+ </hal-module>
+ </manifest>
+</hal-api>
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
+Source2: %{name}-manifest.xml
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%install
rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}/hal
+cp %{SOURCE2} %{buildroot}%{_sysconfdir}/hal/
%make_install
%clean
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/hal/*.so*
-%{_sysconfdir}/hal-manifest/hal-api-power.xml
+%{_sysconfdir}/hal/%{name}-manifest.xml
%files -n %{devel_name}
%defattr(-,root,root,-)
+++ /dev/null
-<hal-api>
- <manifest platform-version="9.0">
- <hal-module>
- <name>HAL_MODULE_POWER</name>
- <version>1.0</version>
- </hal-module>
- </manifest>
-</hal-api>