diff options
-rw-r--r-- | packaging/tef-optee-client.spec | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/packaging/tef-optee-client.spec b/packaging/tef-optee-client.spec index 68f431d..52db477 100644 --- a/packaging/tef-optee-client.spec +++ b/packaging/tef-optee-client.spec @@ -29,6 +29,14 @@ Requires: tef-libteec %define smack_domain_name System +%define use_sqlfs 0 + +%if %{use_sqlfs} == 0 +%define cfg_sqlfs CFG_SQL_FS=n +%else +%define cfg_sqlfs CFG_SQL_FS=y +%endif + %define compile_param CROSS_COMPILE="" MAJOR_VERSION="%{major_version}" MINOR_VERSION="%{minor_version}" CFLAGS='-fPIC -D_GNU_SOURCE -DSYS_TA_PATH=\\"%{tastore_dir}\\"' %description @@ -40,7 +48,7 @@ which is tef-libteec backend. cp -a %{SOURCE1} . %build -export TEE_FS_SUBPATH="/opt/data" TEE_FS_PATH="/opt/data/tee" TEEC_LOAD_PATH="\/" TEEC_LOG_FILE="/opt/data/var.log" CFG_TEE_CLIENT_LOG_LEVEL=4 CFG_TEE_SUPP_LOG_LEVEL=4 CFG_TA_TEST_PATH=n +export TEE_FS_SUBPATH="/opt/data" TEE_FS_PATH="/opt/data/tee" TEEC_LOAD_PATH="\/" TEEC_LOG_FILE="/opt/data/var.log" CFG_TEE_CLIENT_LOG_LEVEL=4 CFG_TEE_SUPP_LOG_LEVEL=4 CFG_TA_TEST_PATH=n %{cfg_sqlfs} make %{compile_param} build cd systemd @@ -66,6 +74,10 @@ rm -rf %{buildroot}/%{optee_libteec}/libteec.so.%{major_version} %{buildroot}/%{ mkdir -p %{buildroot}/%{tastore_dir} +%if %{use_sqlfs} == 1 +cp libsqlfs/COPYING LICENSE.LGPL.2.1 +%endif + %post tef-update.sh optee ln -sf %{optee_libteec}/libteec.so.%{version} %{optee_libteec}/libteec.so.%{major_version} @@ -80,6 +92,9 @@ fi %files %manifest %{name}.manifest %license LICENSE +%if %{use_sqlfs} == 1 +%license LICENSE.LGPL.2.1 +%endif %attr(111,security_fw,security_fw) %{bin_dir}/tee-supplicant %attr(770,root,security_fw) %{tastore_dir} %attr(644,root,root) %{_unitdir}/tef-optee.service |