summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.privacy-setting.spec
blob: b95715fabd91261f37818bb9fdfc9ba61064387a (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
%define alias org.tizen.privacy-setting
%define	PREFIX	%{TZ_SYS_RO_APP}/%{alias}
%define PREFIX_POPUP  %{TZ_SYS_RO_APP}/%{alias}-popup

Name:    org.tizen.privacy-setting-profile_wearable
Summary: Privacy setting ui application
Version: 2.0.6
Release: 1
Provides: org.tizen.privacy-setting = %{version}-%{release}
Group:   Applications/Other
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: %{alias}.manifest
BuildRequires: cmake
BuildRequires: gettext-tools
BuildRequires: edje-tools
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(security-privilege-manager)
BuildRequires: pkgconfig(security-manager)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-appfw-app-manager)
%description
Application providing ui for managing other installed applications privacy status.

%package -n org.tizen.privacy-setting-popup-profile_wearable
Summary: Privacy setting popup ui application
Provides: org.tizen.privacy-setting-popup = %{version}-%{release}
BuildRequires: cmake
BuildRequires: gettext-tools
BuildRequires: edje-tools
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(security-privilege-manager)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(pkgmgr-info)
%description -n org.tizen.privacy-setting-popup-profile_wearable
Application providing ui popup for guiding to privacy-setting.

%prep
%setup -q
cp -a %SOURCE1001 .

%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"

export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"

%ifarch %{ix86}
export CFLAGS="$CFLAGS -DTIZEN_EMULATOR_MODE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_EMULATOR_MODE"
export FFLAGS="$FFLAGS -DTIZEN_EMULATOR_MODE"
%endif

%{!?build_type:%define build_type "Release"}
%cmake . -DCMAKE_INSTALL_PREFIX=%PREFIX \
		-DCMAKE_POPUP_INSTALL_PREFIX=%PREFIX_POPUP \
        -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
		-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
        -DCMAKE_BUILD_TYPE=%{build_type} \
        -DVERSION=%version

make %{?_smp_mflags}

%install
%make_install
%find_lang privacy-setting privacy-setting.lang
%find_lang privacy-setting-popup privacy-setting-popup.lang

%post
/sbin/ldconfig
# Only for testing -> Fllowing single line must be removed
cyad -s -k MANIFESTS_GLOBAL -c User::Pkg::org.tizen.privacy-setting -u 5001 -p http://tizen.org/privilege/notexist -t ALLOW
cyad -s -k MANIFESTS_GLOBAL -c User::Pkg::org.tizen.privacy-setting -u 5001 -p http://tizen.org/privilege/internal/usermanagement -t ALLOW
echo "cyad done"

%postun -p /sbin/ldconfig

%files -f privacy-setting.lang
%defattr(-,root,root,-)
%manifest %alias.manifest
%license LICENSE
%{TZ_SYS_RO_PACKAGES}/%alias.xml
%{PREFIX}/bin/
%{PREFIX}/res/icon/

%files -n org.tizen.privacy-setting-popup-profile_wearable -f privacy-setting-popup.lang
%defattr(-,root,root,-)
%manifest %alias.manifest
%license LICENSE
%{TZ_SYS_RO_PACKAGES}/%{alias}-popup.xml
%{PREFIX_POPUP}/bin/
%{PREFIX_POPUP}/res/button/