5 Source0: %{name}-%{version}.tar.gz
6 Summary: Tizen Device Policy Manager Telephony Policy Module
10 BuildRequires: gettext-tools
11 BuildRequires: pkgconfig(klay)
12 BuildRequires: pkgconfig(dpm-pil)
13 BuildRequires: pkgconfig(capi-system-info)
14 BuildRequires: pkgconfig(capi-base-common)
17 The dpm-telephony package provides telephony policy module for device policy manager
20 %manifest dpm-telephony.manifest
21 %defattr(644,root,root,755)
22 %attr(755,root,root) /opt/data/dpm/plugins/telephony
23 %attr(755,root,root) %{_libdir}/libdpm-telephony.so.%{version}
24 %{_libdir}/libdpm-telephony.so.0
30 %{!?build_type:%define build_type "RELEASE"}
32 %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING" || %{build_type} == "CCOV"
33 CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
34 CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
37 %cmake . -DVERSION=%{version} \
38 -DCMAKE_BUILD_TYPE=%{build_type} \
39 -DSCRIPT_INSTALL_DIR=%{_scriptdir} \
40 -DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \
41 -DDATA_INSTALL_DIR=%{TZ_SYS_DATA}/dpm \
42 -DDB_INSTALL_DIR=%{TZ_SYS_DB} \
43 -DRUN_INSTALL_DIR=%{TZ_SYS_RUN} \
44 -DAPP_INSTALL_PREFIX="%{TZ_SYS_RO_APP}" \
45 -DAPP_SHARE_PACKAGES_DIR="%{TZ_SYS_RO_PACKAGES}" \
61 ## Devel Package ##############################################################
62 %package -n libdpm-telephony-devel
63 Summary: Libraries and header files for device policy client development
64 Group: Development/Libraries
65 Requires: device-policy-manager = %{version}-%{release}
67 %description -n libdpm-telephony-devel
68 The libdpm-telephony-devel package includes the libraries and header files necessary for
69 developing the DPM client program.
71 %files -n libdpm-telephony-devel
72 %manifest dpm-telephony.manifest
73 %defattr(644,root,root,755)
74 %{_libdir}/libdpm-telephony.so
75 %{_libdir}/pkgconfig/dpm-telephony.pc