blob: 4cb10411ed6167d3b408ab1ec6884a139c4d4e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
Name: dpm-application
Version: 1.0.1
Release: 0
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Summary: Tizen Device Policy Manager Application Policy Module
Group: Security/Other
BuildRequires: gcc
BuildRequires: cmake
BuildRequires: gettext-tools
BuildRequires: pkgconfig(klay)
BuildRequires: pkgconfig(dpm-pil)
BuildRequires: pkgconfig(security-privilege-manager)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(capi-base-common)
%description
The dpm-application package provides a application policy module for device policy manager
%files
%manifest dpm-application.manifest
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/dpm/plugins/application
%attr(755,root,root) %{_libdir}/libdpm-application.so.%{version}
%{_libdir}/libdpm-application.so.0
%prep
%setup -q
%build
%{!?build_type:%define build_type "RELEASE"}
%if %{build_type} == "DEBUG" || %{build_type} == "PROFILING" || %{build_type} == "CCOV"
CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
%endif
%cmake . -DVERSION=%{version} \
-DCMAKE_BUILD_TYPE=%{build_type} \
-DPLUGIN_INSTALL_DIR=%{_libdir}/dpm/plugins \
-DSCRIPT_INSTALL_DIR=%{_scriptdir} \
-DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \
-DDATA_INSTALL_DIR=%{TZ_SYS_DATA}/dpm \
-DDB_INSTALL_DIR=%{TZ_SYS_DB} \
-DRUN_INSTALL_DIR=%{TZ_SYS_RUN} \
-DAPP_INSTALL_PREFIX="%{TZ_SYS_RO_APP}" \
-DAPP_SHARE_PACKAGES_DIR="%{TZ_SYS_RO_PACKAGES}" \
make %{?jobs:-j%jobs}
%install
%make_install
%clean
rm -rf %{buildroot}
%post
%preun
%postun
## Devel Package ##############################################################
%package -n libdpm-application-devel
Summary: Libraries and header files for device policy client development
Group: Development/Libraries
Requires: device-policy-manager = %{version}-%{release}
%description -n libdpm-application-devel
The libdpm-application-devel package includes the libraries and header files necessary for
developing the DPM client program.
%files -n libdpm-application-devel
%manifest dpm-application.manifest
%defattr(644,root,root,755)
%{_libdir}/libdpm-application.so
%{_libdir}/pkgconfig/dpm-application.pc
%{_includedir}/dpm
|