Change-Id: I48b4aab302dfb2544a4480c0865123f4e1eac4cd
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PUBLIC ${pkgs_CFLAGS_OTHER})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LIBRARIES} pthread)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${HAL_PATH})
-INSTALL(FILES 98-nfc-plugin-emul.rules DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/udev/rules.d/)
+INSTALL(FILES 98-nfc-plugin-emul.rules DESTINATION ${HAL_PATH}/udev/rules.d/)
+INSTALL(FILES LICENSE.APLv2 DESTINATION ${HAL_LICENSE_PATH})
%build
%cmake . -DCMAKE_VERBOSE_MAKEFILE=OFF \
- -DHAL_PATH=%{_hal_libdir}
+ -DHAL_PATH=%{_hal_libdir} \
+ -DHAL_LICENSE_PATH=%{_hal_licensedir}
make %{?_smp_mflags}
%install
%files
%manifest %{name}.manifest
%{_hal_libdir}/*.so*
-%{_prefix}/lib/udev/rules.d/98-%{name}.rules
-%license LICENSE.APLv2
+%{_hal_libdir}/udev/rules.d/98-%{name}.rules
+%license %{_hal_licensedir}/LICENSE.APLv2