summaryrefslogtreecommitdiff
path: root/packaging/phone.spec
blob: 54d7c86f95c38beee02945a96b5359f51dec98b7 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
Name:       phone
Summary:    Phone Application and gadgets
Version:    0.4.37
Release:    1
Group:      devel
License:    Flora Software License
URL:        N/A
Source0:    %{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(appcore-efl)
BuildRequires:  pkgconfig(contacts-service)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(heynoti)
BuildRequires:  pkgconfig(ui-gadget-1)
BuildRequires:  pkgconfig(tapi)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(notification)
BuildRequires:  pkgconfig(ecore-x)
BuildRequires:  pkgconfig(ecore-input)
BuildRequires:  pkgconfig(ecore)
BuildRequires:  pkgconfig(evas)
BuildRequires:  pkgconfig(eina)
BuildRequires:  pkgconfig(libprivilege-control)
BuildRequires:  pkgconfig(accounts-svc)
BuildRequires:  pkgconfig(msg-service)
BuildRequires:  pkgconfig(syspopup-caller)
BuildRequires:  pkgconfig(capi-appfw-application)
BuildRequires:  pkgconfig(capi-system-runtime-info)
BuildRequires:  pkgconfig(capi-uix-feedback)
BuildRequires:  pkgconfig(capi-system-info)

BuildRequires:  cmake
BuildRequires:  edje-bin
BuildRequires:  embryo-bin
BuildRequires:  gettext-devel

%description
Phone application.

%package -n org.tizen.phone
Summary:    Phone application
Group:      Development/Libraries

%description -n org.tizen.phone
Phone application.

%package -n org.tizen.contacts
Summary:    Contacts launcher
Group:      Development/Libraries

%description -n org.tizen.contacts
Contacts launcher

%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-phone-efl
Summary:    Phone UI gadget library
Group:      devel

%description -n libug-phone-efl
Phone UI gadget library.

%package -n libug-contacts-devel
Summary:    Phone UI gadget Header
Group:      devel
Requires:   libug-phone-efl = %{version}-%{release}

%description -n libug-contacts-devel
Phone UI gadget Header.

%package -n libug-phone-devel
Summary:    Phone UI gadget Header
Group:      devel
Requires:   libug-phone-efl = %{version}-%{release}

%description -n libug-phone-devel
Phone UI gadget Header.


%prep
%setup -q

%build
%define PREFIX    "/usr/apps/org.tizen.phone"
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX}
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

%post -n libug-phone-efl
mkdir -p /opt/ug/data/ug-phone
chgrp 6005 -R /opt/ug/data/ug-phone
chmod 770 -R /opt/ug/data/ug-phone
mkdir -p /opt/ug/bin/
ln -sf /usr/bin/ug-client /opt/ug/bin/contacts-details-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/contacts-list-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/contacts-settings-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/contacts-tabui-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/dialer-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/phone-tabui-efl
ln -sf /usr/bin/ug-client /opt/ug/bin/speeddial-efl

%post -n org.tizen.phone
mkdir /opt/apps/org.tizen.phone
cp -fr /usr/apps/org.tizen.phone/data /opt/apps/org.tizen.phone
chown -R 5000:5000 /opt/apps/org.tizen.phone/data

%post -n org.tizen.contacts
mkdir -p /opt/apps/org.tizen.contacts
cp -fr /usr/apps/org.tizen.contacts/data /opt/apps/org.tizen.contacts
chown -R 5000:5000 /opt/apps/org.tizen.contacts/data

%post -n org.tizen.contacts-viewer
mkdir -p /opt/apps/org.tizen.contacts-viewer
cp -fr /usr/apps/org.tizen.contacts-viewer/data /opt/apps/org.tizen.contacts-viewer
chown -R 5000:5000 /opt/apps/org.tizen.contacts-viewer/data


%postun


%files -n org.tizen.phone
%defattr(-,root,root,-)
/usr/apps/org.tizen.phone/*
/usr/share/packages/org.tizen.phone.xml
/usr/share/icons/default/small/org.tizen.phone.png
/usr/ug/lib/libug-speeddial-efl.*
/usr/ug/lib/libug-dialer-efl.*
/usr/ug/lib/libug-phone-tabui-efl.*
#/opt/share/applications/*.desktop

%files -n org.tizen.contacts
%defattr(-,root,root,-)
/usr/apps/org.tizen.contacts/*
/usr/share/packages/org.tizen.contacts.xml
/usr/share/icons/default/small/org.tizen.contacts.png
/usr/ug/lib/libug-contacts-tabui-efl.*
/usr/ug/lib/libug-contacts-settings-efl.*
#/opt/share/applications/*.desktop

%files -n org.tizen.contacts-viewer
%defattr(-,root,root,-)
/usr/apps/org.tizen.contacts-viewer/*
/usr/share/packages/org.tizen.contacts-viewer.xml
/usr/share/icons/default/small/org.tizen.contacts-viewer.png

%files -n libug-phone-efl
%defattr(-,root,root,-)
/usr/ug/res/images/*
/usr/ug/res/edje/*
/usr/ug/res/locale/*
/usr/ug/lib/libug-contacts-list-efl.*
/usr/ug/lib/libug-contacts-details-efl.*
/usr/ug/lib/libug-phonelog-efl.*
/usr/share/packages/dialer-efl.xml
/usr/share/packages/speeddial-efl.xml
/usr/share/packages/contacts-details-efl.xml
/usr/share/packages/contacts-tabui-efl.xml
/usr/share/packages/phone-tabui-efl.xml
/usr/share/packages/contacts-settings-efl.xml
/usr/share/packages/contacts-list-efl.xml

%files -n libug-contacts-devel
%defattr(-,root,root,-)
/usr/include/contacts-ug.h

%files -n libug-phone-devel
%defattr(-,root,root,-)
/usr/include/phone-ug.h