1 Name: privacy-manager-server
2 Summary: Privacy Management
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1: privacy-manager-server.service
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(glib-2.0)
12 BuildRequires: pkgconfig(sqlite3)
13 BuildRequires: pkgconfig(capi-base-common)
14 BuildRequires: pkgconfig(dbus-1)
15 BuildRequires: pkgconfig(dbus-glib-1)
16 BuildRequires: pkgconfig(db-util)
17 BuildRequires: pkgconfig(pkgmgr-info)
18 BuildRequires: gettext-tools
20 Requires(post): /sbin/ldconfig
21 Requires(postun): /sbin/ldconfig
26 %package -n privacy-manager-server-devel
27 summary: privacy-manager server
28 Group: Development/Libraries
29 Requires: privacy-manager-server = %{version}-%{release}
31 %description -n privacy-manager-server-devel
32 privacy-manager server devel
34 %package -n privacy-manager-client
35 summary: privacy-manager client
36 Group: Development/Libraries
37 Requires: privacy-manager-server = %{version}-%{release}
39 %description -n privacy-manager-client
40 privacy-manager client
42 %package -n privacy-manager-client-devel
43 Summary: privacy-manager client devel
44 Group: Development/Libraries
45 BuildRequires: pkgconfig(libxml-2.0)
46 Requires: privacy-manager-client = %{version}-%{release}
48 %description -n privacy-manager-client-devel
49 Privacy Management(development files)
51 %package -n capi-security-privacy-manager
52 Summary: Privacy Manager API
53 Group: TO_BE/FILLED_IN
54 License: TO BE FILLED IN
56 BuildRequires: pkgconfig(dlog)
57 BuildRequires: pkgconfig(capi-base-common)
58 BuildRequires: pkgconfig(glib-2.0)
59 Requires(post): /sbin/ldconfig
60 Requires(postun): /sbin/ldconfig
61 Requires: privacy-manager-client = %{version}-%{release}
63 %description -n capi-security-privacy-manager
64 The Privacy Manager API provides functions to get/set information about privacy information of installed packages.
66 %package -n capi-security-privacy-manager-devel
67 Summary: Privacy Manager API (Development)
68 Group: TO_BE/FILLED_IN
69 Requires: privacy-manager-client = %{version}-%{release}
71 %description -n capi-security-privacy-manager-devel
72 The Privacy Manager API provides functions to get/set information about privacy information of installed packages.(DEV)
74 %package -n tizenprv00.privacy-popup
75 Summary: Privacy Popup
76 Group: TO_BE/FILLED_IN
77 Requires(post): /sbin/ldconfig
78 Requires(postun): /sbin/ldconfig
80 BuildRequires: gettext-tools
81 BuildRequires: edje-tools
82 BuildRequires: pkgconfig(aul)
83 BuildRequires: pkgconfig(dlog)
84 BuildRequires: pkgconfig(ail)
85 BuildRequires: pkgconfig(appcore-efl)
86 BuildRequires: pkgconfig(capi-appfw-application)
87 BuildRequires: pkgconfig(pkgmgr-info)
88 BuildRequires: pkgconfig(dlog)
89 BuildRequires: pkgconfig(edje)
90 BuildRequires: pkgconfig(eina)
91 BuildRequires: pkgconfig(elementary)
92 BuildRequires: pkgconfig(evas)
93 BuildRequires: pkgconfig(glib-2.0)
94 BuildRequires: pkgconfig(ui-gadget-1)
95 BuildRequires: pkgconfig(icu-i18n)
96 BuildRequires: pkgconfig(bundle)
97 BuildRequires: pkgconfig(glib-2.0)
99 %description -n tizenprv00.privacy-popup
100 The Privacy popup provides UI to set privacy information of application.
106 #%{!?build_type:%define build_type "Release"}
108 echo cmake . -DPREFIX=%{_prefix} \
109 -DEXEC_PREFIX=%{_exec_prefix} \
110 -DLIBDIR=%{_libdir} \
111 -DINCLUDEDIR=%{_includedir} \
112 -DCMAKE_BUILD_TYPE=%{build_type} \
113 -DVERSION=%{version} \
115 cmake . -DPREFIX=%{_prefix} \
116 -DEXEC_PREFIX=%{_exec_prefix} \
117 -DLIBDIR=%{_libdir} \
118 -DINCLUDEDIR=%{_includedir} \
119 -DCMAKE_BUILD_TYPE=%{build_type} \
120 -DVERSION=%{version} \
122 make %{?jobs:-j%jobs}
126 mkdir -p %{buildroot}/usr/share/license
127 cp LICENSE.APLv2 %{buildroot}/usr/share/license/privacy-manager-server
128 mkdir -p %{buildroot}/usr/share/license
129 cp LICENSE.APLv2 %{buildroot}/usr/share/license/privacy-manager-client
130 mkdir -p %{buildroot}/usr/bin
131 cp res/usr/bin/* %{buildroot}/usr/bin/
132 mkdir -p %{buildroot}/opt/dbspace
133 cp res/opt/dbspace/.privacylist.db /%{buildroot}/opt/dbspace/
134 #mkdir -p %{buildroot}/etc/rc.d/init.d
135 #cp res/etc/rc.d/init.d/* %{buildroot}/etc/rc.d/init.d/
138 #mkdir -p %{buildroot}/etc/rc.d/rc3.d
139 #mkdir -p %{buildroot}/etc/rc.d/rc5.d
140 #ln -sf /etc/rc.d/init.d/privacy-manager-server.sh %{buildroot}/etc/rc.d/rc3.d/S10privacy-manager-server.sh
141 #ln -sf /etc/rc.d/init.d/privacy-manager-server.sh %{buildroot}/etc/rc.d/rc5.d/S10privacy-manager-server.sh
143 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
144 install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/privacy-manager-server.service
145 ln -sf /usr/lib/systemd/system/privacy-manager-server.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/privacy-manager-server.service
150 %post -n privacy-manager-server
153 echo "Check privacy DB"
154 if [ ! -f /opt/dbspace/.privacy.db ]
156 echo "Create privacy DB"
157 /usr/bin/privacy_manager_create_clean_db.sh
163 %files -n privacy-manager-server
164 %defattr(-,root,root,-)
165 %manifest packaging/privacy-manager-server.manifest
168 #/etc/rc.d/init.d/privacy-manager-server.sh
169 #%attr(755,root,root) /etc/rc.d/init.d/privacy-manager-server.sh
170 #/etc/rc.d/rc3.d/S10privacy-manager-server.sh
171 #/etc/rc.d/rc5.d/S10privacy-manager-server.sh
172 /usr/share/license/privacy-manager-server
173 /opt/dbspace/.privacylist.db
175 %files -n privacy-manager-server-devel
176 %{_libdir}/pkgconfig/privacy-manager-server.pc
178 %files -n privacy-manager-client
179 %defattr(-,root,root,-)
180 %manifest packaging/privacy-manager-client.manifest
181 %{_libdir}/libprivacy-manager-client.so*
182 /usr/share/license/privacy-manager-client
183 /usr/etc/package-manager/parserlib/libprivileges.so
185 %files -n privacy-manager-client-devel
186 %defattr(-,root,root,-)
188 %{_libdir}/pkgconfig/privacy-manager-client.pc
190 %files -n capi-security-privacy-manager
191 %{_libdir}/libcapi-security-privacy-manager.so.*
192 %manifest packaging/capi-security-privacy-manager.manifest
194 %files -n capi-security-privacy-manager-devel
195 %{_includedir}/privacymgr/*.h
196 %{_libdir}/libcapi-security-privacy-manager.so
197 %{_libdir}/pkgconfig/capi-security-privacy-manager.pc
199 %files -n tizenprv00.privacy-popup
200 %manifest packaging/tizenprv00.privacy-popup.manifest
201 %defattr(-,root,root,-)
202 /usr/bin/tizenprv00.privacy-popup
203 /usr/share/packages/tizenprv00.privacy-popup.xml
204 #/etc/smack/accesses2.d/tizenprv00.privacy-popup.rule