2 Summary: Web application encryption service
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(openssl)
16 BuildRequires: pkgconfig(key-manager)
17 BuildRequires: pkgconfig(libtzplatform-config)
20 Web application encryption and decryption service
23 Summary: Web application encryption service (development files)
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
28 Web application encryption and decryption service (development files)
31 Summary: Web application encryption service (test)
33 Requires: %{name} = %{version}-%{release}
36 Web application encryption and decryption service (test)
45 %{!?build_type:%define build_type "Release"}
46 %cmake . -DPREFIX=%{_prefix} \
47 -DEXEC_PREFIX=%{_exec_prefix} \
48 -DINCLUDEDIR=%{_includedir} \
50 -DBINDIR=%TZ_SYS_BIN \
51 -DSYSTEMD_UNIT_DIR=%{_unitdir} \
52 -DCMAKE_BUILD_TYPE=%{build_type} \
53 -DTZ_SYS_BIN=%TZ_SYS_BIN \
54 -DTZ_SYS_SHARE=%TZ_SYS_SHARE
61 mkdir -p %{buildroot}%{TZ_SYS_SHARE}/license
62 cp LICENSE.Apache-2.0 %{buildroot}%{TZ_SYS_SHARE}/license/%{name}
64 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
65 ln -s ../webappenc-initializer.service %{buildroot}%{_unitdir}/multi-user.target.wants/webappenc-initializer.service
73 systemctl daemon-reload
76 systemctl start webappenc-initializer.service
81 systemctl restart webappenc-initializer.service
88 systemctl daemon-reload
93 %defattr(-,root,root,-)
94 %manifest %{name}.manifest
95 %{TZ_SYS_SHARE}/license/%{name}
96 %{_libdir}/%{name}.so.*
97 %{_unitdir}/webappenc-initializer.service
98 %{_unitdir}/multi-user.target.wants/webappenc-initializer.service
99 %{TZ_SYS_BIN}/wae_initializer
100 %{TZ_SYS_SHARE}/wae/app_dek/WAE_APPDEK_KEK_PrivateKey.pem
101 %{TZ_SYS_SHARE}/wae/app_dek/WAE_APPDEK_KEK_PublicKey.pem
104 %defattr(-,root,root,-)
106 %{_libdir}/pkgconfig/%{name}.pc
107 %{_libdir}/%{name}.so
110 %defattr(-,root,root,-)
111 %{TZ_SYS_BIN}/wae_tests