1 %global csr_fw_server_build 0
2 %global csr_fw_common_Build 0
3 %global csr_fw_test_build 0
5 Summary: A general purpose content screening and reputation solution
9 Source: %{name}-%{version}.tar.gz
11 Group: Security/Service
14 BuildRequires: pkgconfig(dlog)
17 General purpose content screening and reputation solution. Can scan
18 file contents and checking url to prevent malicious items.
20 %package -n lib%{name}-client
21 Summary: Client library package for %{name}
23 Group: Security/Libraries
24 Requires: %{name} = %{version}-%{release}
26 %description -n lib%{name}-client
27 csr-framework client library package.
30 Summary: Development files for %{name}
31 Group: Security/Development
32 Requires: %{name} = %{version}
35 csr-framework developemnt files including headers and pkgconfig file.
37 %if 0%{?csr_fw_test_build}
39 Summary: test program for %{name}
40 Group: Security/Testing
41 Requires: %{name} = %{version}
44 Comaptilibty test program
50 # assign client name as secfw to support backward compatibility
51 %global client_name secfw
52 %global bin_dir %{_bindir}
56 -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
57 -DCMAKE_VERBOSE_MAKEFILE=ON \
58 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
59 %if 0%{?csr_fw_server_build}
60 -DCSR_FW_COMMON_BUILD=1 \
62 %if 0%{?csr_fw_server_build}
63 -DCSR_FW_SERVER_BUILD=1 \
65 %if 0%{?csr_fw_test_build}
66 -DCSR_FW_TEST_BUILD=1 \
68 -DSERVICE_NAME=%{name} \
69 -DVERSION=%{version} \
70 -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
71 -DBIN_DIR:PATH=%{bin_dir} \
72 -DCLIENT_NAME=%{client_name}
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(-,root,root,-)
85 %if 0%{?csr_fw_server_build}
86 # TODO: list up server files here
88 %if 0%{?csr_fw_common_build}
89 # TODO: list up common library files here
92 %files -n lib%{name}-client
93 %defattr(-,root,root,-)
95 %{_libdir}/lib%{client_name}.so.*
100 %{_includedir}/TCSErrorCodes.h
101 %{_includedir}/TCSImpl.h
102 %{_includedir}/TWPImpl.h
103 %{_libdir}/pkgconfig/%{name}.pc
104 %{_libdir}/lib%{client_name}.so
106 %if 0%{?csr_fw_test_build}
108 %defattr(-,root,root,-)