2 Summary: Web application encryption service
5 Group: Security/Libraries
6 License: Apache-2.0 and BSL-1.0
7 Source0: %{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(openssl)
15 BuildRequires: pkgconfig(key-manager)
16 BuildRequires: pkgconfig(libtzplatform-config)
19 Web application encryption and decryption service
22 Summary: Web application encryption service (development files)
24 Group: Security/Development
25 Requires: %{name} = %{version}-%{release}
28 Web application encryption and decryption service (development files)
31 Summary: Web application encryption service (test)
32 License: Apache-2.0 and BSL-1.0
33 Group: Security/Development
34 BuildRequires: boost-devel
35 Requires: %{name} = %{version}-%{release}
38 Web application encryption and decryption service (test)
40 %define user_name security_fw
41 %define group_name security_fw
42 %define smack_domain System
43 %define bin_dir %TZ_SYS_BIN
44 %define rw_share_dir %TZ_SYS_SHARE
45 %define upgrade_dir %TZ_SYS_RO_SHARE/upgrade
46 %define upgrade_script_dir %{upgrade_dir}/scripts
47 %define upgrade_data_dir %{upgrade_dir}/data
53 %{!?build_type:%define build_type "Release"}
54 %cmake . -DPREFIX=%{_prefix} \
55 -DEXEC_PREFIX=%{_exec_prefix} \
56 -DINCLUDEDIR=%{_includedir} \
58 -DSYSTEMD_UNIT_DIR=%{_unitdir} \
59 -DCMAKE_BUILD_TYPE=%{build_type} \
60 -DRW_SHARE_DIR=%rw_share_dir \
61 -DUPGRADE_DATA_DIR=%upgrade_data_dir \
62 -DUPGRADE_SCRIPT_DIR=%upgrade_script_dir \
63 -DUSER_NAME=%user_name \
64 -DGROUP_NAME=%group_name \
65 -DSMACK_DOMAIN=%smack_domain \
72 %install_service multi-user.target.wants webappenc-initializer.service
76 systemctl daemon-reload
79 systemctl start webappenc-initializer.service
84 systemctl restart webappenc-initializer.service
91 systemctl daemon-reload
95 %manifest %{name}.manifest
97 %license LICENSE.BSL-1.0
98 %{_libdir}/%{name}.so.*
99 %{_unitdir}/webappenc-initializer.service
100 %{_unitdir}/multi-user.target.wants/webappenc-initializer.service
101 %{bin_dir}/wae_initializer
102 %dir %attr(770, %user_name, %group_name) %{rw_share_dir}/wae
103 %dir %attr(770, %user_name, %group_name) %{rw_share_dir}/wae/app_dek
104 %attr(660, %user_name, %group_name) %{rw_share_dir}/wae/app_dek/*
106 %attr(775,root,root) %{upgrade_script_dir}/wae-upgrade.sh
107 %{upgrade_data_dir}/wae/app_dek/*
111 %{_libdir}/pkgconfig/%{name}.pc
112 %{_libdir}/%{name}.so
115 %manifest %{name}-test.manifest
117 %license LICENSE.BSL-1.0
119 %{_libdir}/libwae_tests_common.so*