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)
21 Requires: tizen-locale
24 Provides Privilege Information(Privilege Info) API
26 %package -n privilege-info-devel
27 Summary: Privilege Info API (Development)
28 Group: Security/Development
29 Requires: %{name} = %{version}-%{release}
31 %description -n privilege-info-devel
32 The Privilege Info API provides functions to get privilege information (DEV)
34 %package -n tc-privilege-info
35 Summary: Privilege Info TC
36 Group: Security/Testing
37 Requires: %{name} = %{version}-%{release}
39 %description -n tc-privilege-info
40 Privilege Info API Internal Test
47 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
48 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
49 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
51 echo cmake . -DPREFIX=%{_prefix} \
53 -DINCLUDEDIR=%{_includedir} \
54 -DCMAKE_BUILD_TYPE=%{build_type} \
55 -DVERSION=%{version} \
56 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
57 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP
59 cmake . -DPREFIX=%{_prefix} \
61 -DINCLUDEDIR=%{_includedir} \
62 -DCMAKE_BUILD_TYPE=%{build_type} \
63 -DVERSION=%{version} \
64 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
65 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP
74 %post -n privilege-info -p /sbin/ldconfig
75 %postun -n privilege-info -p /sbin/ldconfig
77 %post -n tc-privilege-info
78 tpk-backend -y org.tizen.test-privilege-info --preload
79 cyad -s -k MANIFESTS -c User::Pkg::org.tizen.test-privilege-info -u '*' -p http://tizen.org/privilege/contact.read -t DENY
81 %files -n privilege-info
82 %{_libdir}/libprivilege-info.so*
83 %license LICENSE.Apache-2.0
84 %manifest packaging/privilege-info.manifest
86 %files -n privilege-info-devel
87 %{_includedir}/privilege_information.h
88 %{_libdir}/pkgconfig/privilege-info.pc
90 %files -n tc-privilege-info
91 %manifest test/org.tizen.test-privilege-info.manifest
92 %{TZ_SYS_RO_APP}/org.tizen.test-privilege-info/bin/tc-privilege-info-app-privacy
93 %{TZ_SYS_RO_PACKAGES}/org.tizen.test-privilege-info.xml
94 %{_bindir}/tc-privilege-info