3 Name: capi-network-vpn-setting
4 Summary: Default VPN Library
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: capi-network-vpn-setting.manifest
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(vconf)
15 BuildRequires: pkgconfig(capi-base-common)
16 BuildRequires: pkgconfig(libtzplatform-config)
19 BuildRequires: pkgconfig(gmock)
26 %if "%{ipsec_test}" == "yes"
27 BuildRequires: openssl
29 %global rw_app_dir %{?TZ_SYS_RW_APP:%TZ_SYS_RW_APP}%{!?TZ_SYS_RW_APP:/opt/usr/apps}
30 %global cert_examples %rw_app_dir/vpn-cert-examples
31 %define etc_dir %{?TZ_SYS_ETC:%TZ_SYS_ETC}%{!?TZ_SYS_ETC:/opt/etc}
32 %define ro_etc_dir %{?TZ_SYS_RO_ETC:%TZ_SYS_RO_ETC}%{!?TZ_SYS_RO_ETC:%_sysconfdir}
33 %global ca_certs_dir %{?TZ_SYS_CA_CERTS:%TZ_SYS_CA_CERTS}%{!?TZ_SYS_CA_CERTS:%etc_dir/ssl/certs}
35 %global host_cert_examples %etc_dir/vpn-cert-examples
39 Library code for CAPI's to interact with the Default VPN functionality on TIZEN platform.
42 Summary: Default VPN Development Package
44 Requires: %{name} = %{version}-%{release}
47 Development Library for Default VPN functionality on TIZEN platform.
50 Summary: Default VPN Test Package
51 Requires: %{name} = %{version}
54 Test cases for Default VPN Functionality on TIZEN platform.
56 %if "%{ipsec_test}" == "yes"
58 Summary: Certification for host
61 %description host-cert
62 Certification and private key for strongswan responder
71 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
72 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
73 export LDFLAGS+=" -lgcov"
76 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
78 %if "%{ipsec_test}" == "yes"
80 -DCERT_EXAMPLES=%cert_examples \
81 -DHOST_CERT_EXAMPLES=%host_cert_examples \
82 -DCA_CERTS_DIR=%ca_certs_dir \
85 -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0} \
88 -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0} \
90 -DFULLVER=%{version} \
91 -DMAJORVER=${MAJORVER}
98 %if "%{ipsec_test}" == "yes"
99 mkdir -p %buildroot%cert_examples
100 mkdir -p %buildroot%host_cert_examples
103 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
109 %manifest %{name}.manifest
110 %attr(644,-,-) %{_libdir}/libcapi-network-vpn-setting.so.*
111 %license LICENSE.APLv2
113 %attr(500, network_fw, network_fw) %{_bindir}/gtest*
117 %manifest %{name}.manifest
118 #%{_includedir}/network/*.h
119 %{_libdir}/pkgconfig/*.pc
120 %{_libdir}/libcapi-network-vpn-setting.so
123 %manifest %{name}.manifest
124 %{_bindir}/vpn_setting_test
125 %if "%{ipsec_test}" == "yes"
129 %{host_cert_examples}/*