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
|
Name: contacts
Summary: Contacts application
Version: 0.3.1
Release: 4
Group: devel
License: Flora Software License
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/contacts.manifest
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(contacts-service)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(ui-gadget)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: cmake
BuildRequires: edje-bin
BuildRequires: gettext-devel
%description
Contacts application
%package -n org.tizen.contacts
Summary: Contacts application
Group: Development/Libraries
%description -n org.tizen.contacts
Contacts application
%package -n org.tizen.contacts-viewer
Summary: Contacts viewer application
Group: Development/Libraries
%description -n org.tizen.contacts-viewer
Contacts viewer application
%package -n libug-contacts-efl
Summary: Contacts UI gadget library
Group: Development/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description -n libug-contacts-efl
Contacts UI gadget library
%package -n libug-contacts-devel
Summary: Contacts UI gadget Header
Group: Development/Libraries
Requires: libug-contacts-efl = %{version}-%{release}
%description -n libug-contacts-devel
Contacts UI gadget Header
%prep
%setup -q
%build
cp %{SOURCE1001} .
export PREFIX="/opt/apps/org.tizen.contacts"
export UGDIR="/opt/ug"
export LDFLAGS+=" -Wl,--hash-style=both -Wl,--rpath=/usr/lib -Wl,--rpath=$UGDIR/lib -Wl,--as-needed"
cmake . -DCMAKE_INSTALL_PREFIX=$PREFIX
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%post
chgrp 6005 /opt/data/ug-contacts
chmod 770 /opt/data/ug-contacts
chown -R 5000:5000 /opt/apps/org.tizen.contacts/data
chown -R 5000:5000 /opt/apps/org.tizen.contacts-viewer/data
%postun
%files -n org.tizen.contacts
%manifest contacts.manifest
%defattr(-,root,root,-)
/opt/apps/org.tizen.contacts/*
/opt/share/applications/org.tizen.contacts.desktop
%files -n org.tizen.contacts-viewer
%manifest contacts.manifest
%defattr(-,root,root,-)
/opt/apps/org.tizen.contacts-viewer/*
/opt/share/applications/org.tizen.contacts-viewer.desktop
%files -n libug-contacts-efl
%manifest contacts.manifest
%defattr(-,root,root,-)
/opt/ug/lib/*
/opt/ug/res/*
%files -n libug-contacts-devel
%manifest contacts.manifest
%defattr(-,root,root,-)
/usr/include/*
|