summaryrefslogtreecommitdiff
path: root/packaging/libscreen_connector.spec
blob: 7c04373f8107d832d7c2ed75e76861c968d22994 (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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
Name: libscreen_connector
Summary: Library for developing the application
Version: 1.9.1
Release: 1
Group: Applications/Core Applications
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}_watcher.manifest
Source1002: %{name}_watcher_evas.manifest
Source1003: %{name}_provider.manifest
Source1004: %{name}_remote_surface.manifest
Source1005: %{name}_remote_surface_evas.manifest
Source1006: %{name}_launcher_service.manifest
Source1007: %{name}_launcher_service_evas.manifest
Source1008: %{name}_shared_widget_launch.manifest
Source1009: %{name}_input.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(wayland-tbm-client)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(gmock)
BuildRequires: pkgconfig(tzsh-launcher-service)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(rpc-port)
BuildRequires: tidl

%if 0%{?gcov:1}
BuildRequires:  lcov
BuildRequires:  zip
%endif

%description
API for creating a new instance of the widget and managing its life-cycle.

%package devel
Summary: Development Library for widget Viewer Application (dev)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
Header and package configuration files for the widget viewer development

%package unittests
Summary:    %{name} unittests binary

%description unittests
unittests binary

%if 0%{?gcov:1}
%package gcov
Summary:  Screen Connector(gcov)
Group:    Application Framework/Libraries

%description gcov
gcov objects of a screen-connector library
%endif

%prep
%setup -q
cp %{SOURCE1001} .
cp %{SOURCE1002} .
cp %{SOURCE1003} .
cp %{SOURCE1004} .
cp %{SOURCE1005} .
cp %{SOURCE1006} .
cp %{SOURCE1007} .
cp %{SOURCE1008} .
cp %{SOURCE1009} .

tidlc -p -l C++ -i tidl/screen_connector_input.tidl -o screen_connector_input_proxy
tidlc -s -l C++ -i tidl/screen_connector_input.tidl -o screen_connector_input_stub
mv screen_connector_input_* screen_connector_input/

%build
%if 0%{?gcov:1}
export CFLAGS+=" -fprofile-arcs -ftest-coverage"
export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
export FFLAGS+=" -fprofile-arcs -ftest-coverage"
export LDFLAGS+=" -lgcov"
%endif

export CFLAGS+=" -DEFL_BETA_API_SUPPORT"
export CXXFLAGS+=" -DEFL_BETA_API_SUPPORT"
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DTZ_SYS_SHARE=/usr/share -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DBIN_INSTALL_DIR:PATH=%{_bindir}
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

%if 0%{?gcov:1}
builddir=$(basename $PWD)
gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
mkdir -p "$gcno_obj_dir"
find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
%endif

cat << EOF > run-unittest.sh
#!/bin/sh
setup() {
    echo "setup start"
}

test_main() {
    echo "test_main start"
    /usr/bin/%{name}-unittest
}

teardown() {
    echo "teardown start"
}

main() {
    setup
    test_main
    teardown
}

main "\$*"
EOF

mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/

%check
export LD_LIBRARY_PATH=../../screen_connector_remote_surface:../../screen_connector_input
ctest -V

%if 0%{?gcov:1}
lcov -c --ignore-errors graph --no-external -q -d . -o screen-connector.info
genhtml screen-connector.info -o screen-connector.out
zip -r screen-connector.zip screen-connector.out
install -m 0644 screen-connector.zip %{buildroot}%{_datadir}/gcov/obj/
%endif

%if 0%{?gcov:1}
%files gcov
%{_datadir}/gcov/obj/*
%endif

#################################################
# libscreen_connector_watcher
#################################################
%package -n %{name}_watcher
Summary: Library for developing the screen connector watcher
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_watcher
Provider APIs to develop the screen connector watcher application.

%package -n %{name}_watcher-devel
Summary: Screen connector watcher application development library (dev)
Group: Development/Libraries
Requires: %{name}_watcher

%description -n %{name}_watcher-devel
Header & package configuration files to support development of the widget viewer applications.

%post -n %{name}_watcher -p /sbin/ldconfig
%postun -n %{name}_watcher -p /sbin/ldconfig

%files -n %{name}_watcher
%manifest %{name}_watcher.manifest
%attr(0644,root,root) %{_libdir}/%{name}_watcher.so.*
%license LICENSE

%files -n %{name}_watcher-devel
%{_includedir}/screen_connector_watcher/*.h
%{_libdir}/pkgconfig/screen_connector_watcher.pc
%{_libdir}/%{name}_watcher.so


#################################################
# libscreen_connector_provider
#################################################
%package -n %{name}_provider
Summary: Library for developing the screen connector provider
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_provider
Provider APIs to develop the screen connector provider application.

%package -n %{name}_provider-devel
Summary: Screen connector provider application development library (dev)
Group: Development/Libraries
Requires: %{name}_provider

%description -n %{name}_provider-devel
Header & package configuration files to support development of the widget viewer applications.

%post -n %{name}_provider -p /sbin/ldconfig
%postun -n %{name}_provider -p /sbin/ldconfig

%files -n %{name}_provider
%manifest %{name}_provider.manifest
%attr(0644,root,root) %{_libdir}/%{name}_provider.so.*
%license LICENSE

%files -n %{name}_provider-devel
%{_includedir}/screen_connector_provider/*.h
%{_libdir}/pkgconfig/screen_connector_provider.pc
%{_libdir}/%{name}_provider.so


#################################################
# libscreen_connector_watcher_evas
#################################################
%package -n %{name}_watcher_evas
Summary: Library for developing the screen connector watcher evas
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_watcher_evas
Provider APIs to develop the widget viewer EFL application.

%package -n %{name}_watcher_evas-devel
Summary: Screen connector watcher evas application development library (dev)
Group: Development/Libraries
Requires: %{name}_watcher_evas

%description -n %{name}_watcher_evas-devel
Header & package configuration files to support development of the widget viewer applications.

%post -n %{name}_watcher_evas -p /sbin/ldconfig
%postun -n %{name}_watcher_evas -p /sbin/ldconfig

%files -n %{name}_watcher_evas
%manifest %{name}_watcher_evas.manifest
%attr(0644,root,root) %{_libdir}/%{name}_watcher_evas.so.*
%license LICENSE

%files -n %{name}_watcher_evas-devel
%{_includedir}/screen_connector_watcher_evas/*.h
%{_libdir}/pkgconfig/screen_connector_watcher_evas.pc
%{_libdir}/%{name}_watcher_evas.so

#################################################
# libscreen_connector_remote_surface
#################################################
%package -n %{name}_remote_surface
Summary: Library for developing the screen connector remote surface
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_remote_surface
Provider APIs to develop the screen connector viewer application.

%package -n %{name}_remote_surface-devel
Summary: Screen connector watcher application development library (dev)
Group: Development/Libraries
Requires: %{name}_remote_surface

%description -n %{name}_remote_surface-devel
Header & package files to support development of the widget viewer applications.

%post -n %{name}_remote_surface -p /sbin/ldconfig
%postun -n %{name}_remote_surface -p /sbin/ldconfig

%files -n %{name}_remote_surface
%manifest %{name}_remote_surface.manifest
%attr(0644,root,root) %{_libdir}/%{name}_remote_surface.so.*
%license LICENSE

%files -n %{name}_remote_surface-devel
%{_includedir}/screen_connector_remote_surface/*.h
%{_libdir}/pkgconfig/screen_connector_remote_surface.pc
%{_libdir}/%{name}_remote_surface.so

#################################################
# libscreen_connector_remote_surface_mock
#################################################
%package -n %{name}_remote_surface_mock
Summary: Mockup header for developing the screen connector remote surface
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_remote_surface_mock
Provider APIs to develop unittests.

%license LICENSE

%files -n %{name}_remote_surface_mock
%{_includedir}/screen_connector_remote_surface_mock/*.h
%{_libdir}/pkgconfig/screen_connector_remote_surface_mock.pc

#################################################
# libscreen_connector_remote_surface_evas
#################################################
%package -n %{name}_remote_surface_evas
Summary: Library for developing the screen connector remote surface evas
Group: Applications/Core Applications
Requires: %{name}_remote_surface
License: Apache-2.0

%description -n %{name}_remote_surface_evas
Provider APIs to develop the screen connector viewer application.

%package -n %{name}_remote_surface_evas-devel
Summary: Screen connector watcher application development library (dev)
Group: Development/Libraries
Requires: %{name}_remote_surface_evas

%description -n %{name}_remote_surface_evas-devel
Header & package files to support development of the widget viewer applications.

%post -n %{name}_remote_surface_evas -p /sbin/ldconfig
%postun -n %{name}_remote_surface_evas -p /sbin/ldconfig

%files -n %{name}_remote_surface_evas
%manifest %{name}_remote_surface_evas.manifest
%attr(0644,root,root) %{_libdir}/%{name}_remote_surface_evas.so.*
%license LICENSE

%files -n %{name}_remote_surface_evas-devel
%{_includedir}/screen_connector_remote_surface_evas/*.h
%{_libdir}/pkgconfig/screen_connector_remote_surface_evas.pc
%{_libdir}/%{name}_remote_surface_evas.so

#################################################
# libscreen_connector_remote_surface_evas_mock
#################################################
%package -n %{name}_remote_surface_evas_mock
Summary: Mockup header for developing the screen connector remote surface evas
Group: Applications/Core Applications
Requires: %{name}_remote_surface_mock
License: Apache-2.0

%description -n %{name}_remote_surface_evas_mock
Provider APIs to develop unittests.

%license LICENSE

%files -n %{name}_remote_surface_evas_mock
%{_includedir}/screen_connector_remote_surface_evas_mock/*.h
%{_libdir}/pkgconfig/screen_connector_remote_surface_evas_mock.pc

#################################################
# libscreen_connector-unittest
#################################################
%package    unittest
Summary:    libscreen-connector unittests
Group:      Development/Libraries
Requires:   %{name}_watcher_evas

%description unittest
libscreen-connector unittests

%files unittest
%{_bindir}/%{name}-unittest
%{_bindir}/tizen-unittests/%{name}/run-unittest.sh

#################################################
# libscreen_connector_launcher_service
#################################################
%package -n %{name}_launcher_service
Summary: Library for developing the screen connector launcher service
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_launcher_service
Launcher Service APIs to develop the screen connector launcher application.

%package -n %{name}_launcher_service-devel
Summary: Screen connector launcher application development library (dev)
Group: Development/Libraries
Requires: %{name}_launcher_service

%description -n %{name}_launcher_service-devel
Header & package files to support development of the launcher applications.

%post -n %{name}_launcher_service -p /sbin/ldconfig

%postun -n %{name}_launcher_service -p /sbin/ldconfig

%files -n %{name}_launcher_service
%manifest %{name}_launcher_service.manifest
%attr(0644,root,root) %{_libdir}/%{name}_launcher_service.so.*
%license LICENSE

%files -n %{name}_launcher_service-devel
%{_includedir}/screen_connector_launcher_service/*
%{_libdir}/pkgconfig/screen_connector_launcher_service.pc
%{_libdir}/%{name}_launcher_service.so

#################################################
# libscreen_connector_launcher_service_evas
#################################################
%package -n %{name}_launcher_service_evas
Summary: Library for developing the screen connector launcher service evas
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_launcher_service_evas
Launcher Service Evas APIs to develop the screen connector launcher application.

%package -n %{name}_launcher_service_evas-devel
Summary: Screen connector launcher service evas application development library (dev)
Group: Development/Libraries
Requires: %{name}_launcher_service_evas

%description -n %{name}_launcher_service_evas-devel
Header & package files to support development of the launcher service evas applications.

%post -n %{name}_launcher_service_evas -p /sbin/ldconfig

%postun -n %{name}_launcher_service_evas -p /sbin/ldconfig

%files -n %{name}_launcher_service_evas
%manifest %{name}_launcher_service_evas.manifest
%attr(0644,root,root) %{_libdir}/%{name}_launcher_service_evas.so.*
%license LICENSE

%files -n %{name}_launcher_service_evas-devel
%{_includedir}/screen_connector_launcher_service_evas/*
%{_libdir}/pkgconfig/screen_connector_launcher_service_evas.pc
%{_libdir}/%{name}_launcher_service_evas.so

#################################################
# libscreen_connector_shared_widget_launch
#################################################
%package -n %{name}_shared_widget_launch
Summary: Library for developing the screen connector shared launch widget
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_shared_widget_launch
Shared Widget Launch APIs to develop the screen connector launcher application.

%package -n %{name}_shared_widget_launch-devel
Summary: Screen connector shared widget launch application development library (dev)
Group: Development/Libraries
Requires: %{name}_launcher_service_evas

%description -n %{name}_shared_widget_launch-devel
Header & package files to support development of the shared widget launch applications.

%post -n %{name}_shared_widget_launch -p /sbin/ldconfig

%postun -n %{name}_shared_widget_launch -p /sbin/ldconfig

%files -n %{name}_shared_widget_launch
%manifest %{name}_shared_widget_launch.manifest
%attr(0644,root,root) %{_libdir}/%{name}_shared_widget_launch.so.*
%license LICENSE

%files -n %{name}_shared_widget_launch-devel
%{_includedir}/screen_connector_shared_widget_launch/*
%{_libdir}/pkgconfig/screen_connector_shared_widget_launch.pc
%{_libdir}/%{name}_shared_widget_launch.so

#################################################
# libscreen_connector_input
#################################################
%package -n %{name}_input
Summary: Library for developing the screen connector input
Group: Applications/Core Applications
License: Apache-2.0

%description -n %{name}_input
Input APIs to develop the screen connector provider and watcher applications.

%package -n %{name}_input-devel
Summary: Screen connector input application development library (dev)
Group: Development/Libraries

%description -n %{name}_input-devel
Header & package files to support development of the screen connector applications.

%post -n %{name}_input -p /sbin/ldconfig

%postun -n %{name}_input -p /sbin/ldconfig

%files -n %{name}_input
%manifest %{name}_input.manifest
%attr(0644,root,root) %{_libdir}/%{name}_input.so.*
%license LICENSE

%files -n %{name}_input-devel
%{_includedir}/screen_connector_input/*
%{_libdir}/pkgconfig/screen_connector_input.pc
%{_libdir}/%{name}_input.so


# End of a file