BuildRequires: pkgconfig(cryptsvc)
BuildRequires: pkgconfig(libtzplatform-config)
+%global ro_share_dir %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:%_datadir}
%global bin_dir %{?TZ_SYS_BIN:%TZ_SYS_BIN}%{!?TZ_SYS_BIN:%_bindir}
-%global ro_data_dir %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE/tizen_app_drm}%{!?TZ_SYS_RO_SHARE:%_datadir/tizen_app_drm}
-%global test_data_dir %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE/drm_test}%{!?TZ_SYS_RO_SHARE:%_datadir/drm_test}
+%global ro_data_dir %{ro_share_dir}/tizen_app_drm
+
+%global sys_home %{?TZ_SYS_HOME:%TZ_SYS_HOME}%{!?TZ_SYS_HOME:/opt/usr/home}
+%global test_data_dir %{sys_home}/drm_test
+
%global db_dir %{?TZ_SYS_DB:%TZ_SYS_DB}%{!?TZ_SYS_DB:/opt/dbspace}
%description
/sbin/ldconfig
%{bin_dir}/drm_tizen_initialize
chsmack -a "System" %{db_dir}/.dtapps.db*
-chown :users %{db_dir}/.dtapps.db*
-chmod 660 %{db_dir}/.dtapps.db*
+chown app_fw:app_fw %{db_dir}/.dtapps.db*
+chmod 600 %{db_dir}/.dtapps.db*
%postun -p /sbin/ldconfig