blob: 096f2160234c53f43fac64ab84c44b713ac5e6aa (
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
113
|
Name: contacts-service
Summary: Contacts Service
Version: 0.9.109.2
Release: 1
Group: TO_BE/FILLED_IN
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: contacts-service.service
BuildRequires: cmake
BuildRequires: vconf-keys-devel
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-media-image-util)
BuildRequires: pkgconfig(pims-ipc)
BuildRequires: pkgconfig(accounts-svc)
BuildRequires: pkgconfig(badge)
BuildRequires: pkgconfig(libexif)
Requires(post): /usr/bin/sqlite3, /bin/chmod, /bin/chown
Requires(post): /usr/bin/vconftool
Requires(post): /sbin/ldconfig
Requires(post): telephony-daemon
Requires(postun): /sbin/ldconfig
Requires: sys-assert
%description
Contacts Service Library
%package -n contacts-service2
Summary: New Contacts service library
Group: Development/Libraries
Requires: sys-assert
Requires(post): telephony-daemon
Requires(post): libprivilege-control-conf
%description -n contacts-service2
New Contact Serivce Library
%package -n contacts-service2-devel
Summary: New Contacts Service (devel)
Group: Development/Libraries
Requires: %{name}2 = %{version}-%{release}
%description -n contacts-service2-devel
New Contacts Service Library (devel)
%prep
%setup -q
%build
%cmake .
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants
install -m 0644 %SOURCE1 %{buildroot}/usr/lib/systemd/user/contacts-service.service
ln -s ../contacts-service.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service
%post -n contacts-service2
/sbin/ldconfig
chown :6005 /opt/usr/data/contacts-svc
chown :6005 /opt/usr/dbspace/.contacts-svc.db
chown :6005 /opt/usr/dbspace/.contacts-svc.db-journal
chown :6005 -R /opt/usr/data/contacts-svc/img
chown :6005 /opt/usr/data/contacts-svc/.CONTACTS_SVC_*_CHANGED
chmod 660 /opt/usr/dbspace/.contacts-svc.db
chmod 660 /opt/usr/dbspace/.contacts-svc.db-journal
chmod 775 /opt/usr/data/contacts-svc
chmod 770 -R /opt/usr/data/contacts-svc/img/
chmod 660 /opt/usr/data/contacts-svc/.CONTACTS_SVC_*
vconftool set -t int file/private/contacts-service/default_lang 0 -g 6005 -s contacts-service::vconf-private
vconftool set -t int db/contacts-svc/name_sorting_order 0 -g 6005 -s contacts-service::vconf
vconftool set -t int db/contacts-svc/name_display_order 0 -g 6005 -s contacts-service::vconf
vconftool set -t int db/contacts-svc/phonenumber_min_match_digit 8 -g 6005 -s contacts-service::vconf
%postun -p /sbin/ldconfig
%files -n contacts-service2
%manifest contacts-service2.manifest
%defattr(-,root,root,-)
%{_libdir}/libcontacts-service2.so.*
%{_bindir}/contacts-service-ipcd*
/opt/usr/data/contacts-svc/.CONTACTS_SVC_*
/opt/usr/data/contacts-svc/img/*
/usr/lib/systemd/user/contacts-service.service
/usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service
%config(noreplace) /opt/usr/dbspace/.contacts-svc.db*
/usr/share/packages/%{name}2.xml
/opt/etc/smack/accesses.d/%{name}2.rule
%files -n contacts-service2-devel
%defattr(-,root,root,-)
%{_libdir}/libcontacts-service2.so
%{_libdir}/pkgconfig/contacts-service2.pc
%{_includedir}/contacts-svc/contacts.h
%{_includedir}/contacts-svc/contacts_*.h
|