2 Summary: Privilege Information
7 Source0: %{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
12 BuildRequires: pkgconfig(glib-2.0)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(capi-base-common)
15 BuildRequires: pkgconfig(security-privilege-manager)
16 BuildRequires: pkgconfig(cynara-client)
17 BuildRequires: pkgconfig(cynara-session)
18 BuildRequires: pkgconfig(libsmack)
19 BuildRequires: pkgconfig(libtzplatform-config)
20 BuildRequires: pkgconfig(capi-system-info)
24 Requires: tizen-locale
27 Provides Privilege Information(Privilege Info) API
29 %package -n privilege-info-devel
30 Summary: Privilege Info API (Development)
31 Group: Security/Development
32 Requires: %{name} = %{version}-%{release}
34 %description -n privilege-info-devel
35 The Privilege Info API provides functions to get privilege information (DEV)
37 %package -n tc-privilege-info
38 Summary: Privilege Info TC
39 Group: Security/Testing
40 Requires: %{name} = %{version}-%{release}
42 %description -n tc-privilege-info
43 Privilege Info API Internal Test
47 Summary: Privilege Info(gcov)
48 Group: Security/Testing
50 New Privilege Info gcov objects
59 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
60 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
61 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
64 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
65 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
66 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
67 export LDFLAGS+=" -lgcov"
70 echo cmake . -DPREFIX=%{_prefix} \
72 -DINCLUDEDIR=%{_includedir} \
73 -DCMAKE_BUILD_TYPE=%{build_type} \
74 -DVERSION=%{version} \
75 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
76 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
77 -DBUILD_GCOV={?gcov:1}%{!?gcov:0}
79 cmake . -DPREFIX=%{_prefix} \
81 -DINCLUDEDIR=%{_includedir} \
82 -DCMAKE_BUILD_TYPE=%{build_type} \
83 -DVERSION=%{version} \
84 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
85 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
86 -DBUILD_GCOV={?gcov:1}%{!?gcov:0}
92 find . \( -name '*.gcno' ! -name 'tc_*' \) -exec cp '{}' gcov-obj ';'
101 mkdir -p %{buildroot}%{_datadir}/gcov/obj
102 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
105 %post -n privilege-info -p /sbin/ldconfig
106 %postun -n privilege-info -p /sbin/ldconfig
108 %post -n tc-privilege-info
109 tpk-backend -y org.tizen.test-privilege-info --preload
110 cyad -s -k MANIFESTS_GLOBAL -c User::Pkg::org.tizen.test-privilege-info -u '*' -p http://tizen.org/privilege/contact.read -t DENY
112 %files -n privilege-info
113 %{_libdir}/libprivilege-info.so*
114 %license LICENSE.Apache-2.0
115 %manifest packaging/privilege-info.manifest
117 %files -n privilege-info-devel
118 %{_includedir}/privilege_information.h
119 %{_libdir}/pkgconfig/privilege-info.pc
121 %files -n tc-privilege-info
122 %manifest test/org.tizen.test-privilege-info.manifest
123 %{TZ_SYS_RO_APP}/org.tizen.test-privilege-info/bin/tc-privilege-info-app-privacy
124 %{TZ_SYS_RO_PACKAGES}/org.tizen.test-privilege-info.xml
125 %{_bindir}/tc-privilege-info
129 %{_datadir}/gcov/obj/*