Init tizen-screenshooter
[platform/core/uifw/libds-tizen.git] / packaging / libds-tizen.spec
1 Name:           libds-tizen
2 Version:        0.1.2
3 Release:        0
4 Summary:        Wayland Compositor Library for Tizen
5 License:        MIT
6 URL:            http://www.tizen.org/
7 Source:         %name-%version.tar.xz
8 Source1001:     %name.manifest
9
10 BuildRequires:  meson
11 BuildRequires:  pkgconfig(libds)
12 BuildRequires:  pkgconfig(wayland-server)
13 BuildRequires:  pkgconfig(wayland-client)
14 BuildRequires:  pkgconfig(wayland-protocols)
15 BuildRequires:  pkgconfig(tizen-extension-server)
16 BuildRequires:  pkgconfig(tizen-extension-client)
17 BuildRequires:  pkgconfig(tizen-launch-server)
18 BuildRequires:  pkgconfig(tizen-launch-client)
19 BuildRequires:  pkgconfig(text-server)
20 BuildRequires:  pkgconfig(text-client)
21 BuildRequires:  pkgconfig(input-method-server)
22 BuildRequires:  pkgconfig(input-method-client)
23 BuildRequires:  pkgconfig(pixman-1)
24 BuildRequires:  pkgconfig(libdrm)
25 BuildRequires:  pkgconfig(xkbcommon)
26
27 BuildRequires:  pkgconfig(libtdm)
28 BuildRequires:  pkgconfig(libtbm)
29 BuildRequires:  pkgconfig(wayland-tbm-server)
30 BuildRequires:  pkgconfig(wayland-tbm-client)
31 BuildRequires:  pkgconfig(tizen-dpms-server)
32 BuildRequires:  pkgconfig(tizen-dpms-client)
33 BuildRequires:  pkgconfig(tizen-surface-server)
34 BuildRequires:  pkgconfig(tizen-surface-client)
35 BuildRequires : pkgconfig(tizen-hwc-server)
36 BuildRequires : pkgconfig(tizen-hwc-client)
37 BuildRequires:  pkgconfig(cynara-client)
38 BuildRequires:  pkgconfig(cynara-session)
39 BuildRequires:  pkgconfig(libsmack)
40 BuildRequires:  pkgconfig(gmock)
41
42 %description
43 Wayland Compositor Library for Tizen
44
45 ## libds-tizen-allocator-tbm
46 %package allocator-tbm
47 Summary: Allocator Library with TBM
48 Group:   Development/Libraries
49
50 %description allocator-tbm
51 Allocator Library with TBM
52
53 %package allocator-tbm-devel
54 Summary: TBM Allocator Development package
55 Group:   Development/Libraries
56
57 %description allocator-tbm-devel
58 TBM Allocator Development package
59
60 ## libds-tizen-backend-tdm
61 %package backend-tdm
62 Summary: Display Backend Library with TDM
63 Group:   Development/Libraries
64
65 %description backend-tdm
66 Display Backend Library with TDM
67
68 %package backend-tdm-devel
69 Summary: TDM Display Backend Development package
70 Group:   Development/Libraries
71
72 %description backend-tdm-devel
73 TDM Display Backend Development package
74
75 ## libds-tizen-tbm-server
76 %package tbm-server
77 Summary: Library for wayland-tbm-server
78 Group:   Development/Libraries
79
80 %description tbm-server
81 Library for tizen input devicemgr
82
83 %package tbm-server-devel
84 Summary: Development package for wayland-tbm-server
85 Group:   Development/Libraries
86
87 %description tbm-server-devel
88 Development package for tizen wayland-tbm-server
89
90 ## libds-tizen-keyrouter
91 %package keyrouter
92 Summary: Wayland Compositor Library for keyrouter
93 Group:   Development/Libraries
94
95 %description keyrouter
96 Wayland Compositor Library for tizen keyrouter
97
98 %package keyrouter-devel
99 Summary: Keyrouter Development package for Wayland Compositor Library
100 Group:   Development/Libraries
101
102 %description keyrouter-devel
103 Keyrouter Development package for Wayland Compositor Library
104
105 ## libds-tizen-input-devicemgr
106 %package input-devicemgr
107 Summary: Library for tizen input devicemgr
108 Group:   Development/Libraries
109
110 %description input-devicemgr
111 Library for tizen input devicemgr
112
113 %package input-devicemgr-devel
114 Summary: Development package for tizen input devicemgr
115 Group:   Development/Libraries
116
117 %description input-devicemgr-devel
118 Development package for tizen input devicemgr
119
120 ## libds-tizen-dpms
121 %package dpms
122 Summary: Library for tizen dpms
123 Group:   Development/Libraries
124
125 %description dpms
126 Library for tizen dpms
127
128 %package dpms-devel
129 Summary: Development package for tizen dpms
130 Group:   Development/Libraries
131
132 %description dpms-devel
133 Development package for tizen dpms
134
135 ## libds-tizen-indicator
136 %package indicator
137 Summary: Library for tizen indicator
138 Group:   Development/Libraries
139
140 %description indicator
141 Library for tizen indicator
142
143 %package indicator-devel
144 Summary: Development package for tizen indicator
145 Group:   Development/Libraries
146
147 %description indicator-devel
148 Development package for tizen indicator
149
150 ## libds-tizen-clipboard
151 %package clipboard
152 Summary: Library for tizen clipboard
153 Group:   Development/Libraries
154
155 %description clipboard
156 Library for tizen clipboard
157
158 %package clipboard-devel
159 Summary: Development package for tizen clipboard
160 Group:   Development/Libraries
161
162 %description clipboard-devel
163 Development package for tizen clipboard
164
165 ## libds-tizen-launch
166 %package launch
167 Summary: Library for tizen launch
168 Group:   Development/Libraries
169
170 %description launch
171 Library for tizen launch
172
173 %package launch-devel
174 Summary: Development package for tizen launch
175 Group:   Development/Libraries
176
177 %description launch-devel
178 Development package for tizen launch
179
180 ## libds-tizen-display-policy
181 %package display-policy
182 Summary: Library for tizen display-policy
183 Group:   Development/Libraries
184
185 %description display-policy
186 Library for tizen display-policy
187
188 %package display-policy-devel
189 Summary: Development package for tizen display-policy
190 Group:   Development/Libraries
191
192 %description display-policy-devel
193 Development package for tizen display-policy
194
195 ## libds-tizen-memory-flusher
196 %package memory-flusher
197 Summary: Library for tizen memory flusher
198 Group:   Development/Libraries
199
200 %description memory-flusher
201 Library for tizen memory flusher
202
203 %package memory-flusher-devel
204 Summary: Development package for tizen memory flusher
205 Group:   Development/Libraries
206
207 %description memory-flusher-devel
208 Development package for tizen memory flusher
209
210 ## libds-tizen-renderer
211 %package renderer
212 Summary: Library for tizen renderer
213 Group:   Development/Libraries
214
215 %description renderer
216 Library for tizen renderer
217
218 %package renderer-devel
219 Summary: Development package for tizen renderer
220 Group:   Development/Libraries
221
222 %description renderer-devel
223 Development package for tizen renderer
224
225 ## libds-tizen-screen-rotation
226 %package screen-rotation
227 Summary: Library for tizen screen rotation
228 Group:   Development/Libraries
229
230 %description screen-rotation
231 Library for tizen screen rotation
232
233 %package screen-rotation-devel
234 Summary: Development package for tizen screen rotation
235 Group:   Development/Libraries
236
237 %description screen-rotation-devel
238 Development package for tizen screen rotation
239
240 ## libds-tizen-global-resource
241 %package global-resource
242 Summary: Library for tizen global resource
243 Group:   Development/Libraries
244
245 %description global-resource
246 Library for tizen global resource
247
248 %package global-resource-devel
249 Summary: Development package for tizen global resource
250 Group:   Development/Libraries
251
252 %description global-resource-devel
253 Development package for tizen global resource
254
255 ## libds-tizen-embedded-compositor
256 %package embedded-compositor
257 Summary: Library for tizen embedded compositor
258 Group:   Development/Libraries
259
260 %description embedded-compositor
261 Library for tizen embedded compositor
262
263 %package embedded-compositor-devel
264 Summary: Development package for tizen embedded compositor
265 Group:   Development/Libraries
266
267 %description embedded-compositor-devel
268 Development package for tizen embedded compositor
269
270 ## libds-tizen-text-input
271 %package text-input
272 Summary: Library for tizen text-input
273 Group:   Development/Libraries
274
275 %description text-input
276 Library for tizen text-input
277
278 %package text-input-devel
279 Summary: Development package for tizen text-input
280 Group:   Development/Libraries
281
282 %description text-input-devel
283 Development package for tizen text-input
284
285 ## libds-tizen-input-method
286 %package input-method
287 Summary: Library for tizen input-method
288 Group:   Development/Libraries
289
290 %description input-method
291 Library for tizen input-method
292
293 %package input-method-devel
294 Summary: Development package for tizen input-method
295 Group:   Development/Libraries
296
297 %description input-method-devel
298 Development package for tizen input-method
299
300 ## libds-tizen-hwc
301 %package hwc
302 Summary: Library for tizen hwc
303 Group:   Development/Libraries
304
305 %description hwc
306 Library for tizen hwc
307
308 %package hwc-devel
309 Summary: Development package for tizen hwc
310 Group:   Development/Libraries
311
312 %description hwc-devel
313 Development package for tizen hwc
314
315 ## libds-tizen-policy
316 %package policy
317 Summary: Library for tizen policy
318 Group:   Development/Libraries
319
320 %description policy
321 Library for tizen policy
322
323 %package policy-devel
324 Summary: Development package for tizen policy
325 Group:   Development/Libraries
326
327 %description policy-devel
328 Development package for tizen policy
329
330 ## libds-tizen-screenshooter
331 %package screenshooter
332 Summary: Library for tizen screenshooter
333 Group:   Development/Libraries
334
335 %description screenshooter
336 Library for tizen screenshooter
337
338 %package screenshooter-devel
339 Summary: Development package for tizen screenshooter
340 Group:   Development/Libraries
341
342 %description screenshooter-devel
343 Development package for tizen screenshooter
344
345 %prep
346 %setup -q
347 cp %{SOURCE1001} .
348
349 %build
350 meson setup \
351     --prefix /usr \
352     --libdir %{_libdir} \
353     --bindir %{_bindir} \
354     builddir \
355     -Dkeylayout_dir="%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
356 ninja -C builddir all
357
358 %install
359 export DESTDIR=%{buildroot}
360 ninja -C builddir install
361
362 %files allocator-tbm
363 %manifest %{name}.manifest
364 %defattr(-,root,root,-)
365 %license LICENSE
366 %{_libdir}/libds-tizen-allocator-tbm.so.*
367
368 %files allocator-tbm-devel
369 %manifest %{name}.manifest
370 %defattr(-,root,root,-)
371 %license LICENSE
372 %{_includedir}/libds-tizen/allocator/tbm.h
373 %{_libdir}/pkgconfig/libds-tizen-allocator-tbm.pc
374 %{_libdir}/libds-tizen-allocator-tbm.so
375 %{_bindir}/libds-tizen-allocator-tbm-tests
376
377 %files backend-tdm
378 %manifest %{name}.manifest
379 %defattr(-,root,root,-)
380 %license LICENSE
381 %{_libdir}/libds-tizen-backend-tdm.so.*
382
383 %files backend-tdm-devel
384 %manifest %{name}.manifest
385 %defattr(-,root,root,-)
386 %license LICENSE
387 %{_includedir}/libds-tizen/backend/tdm.h
388 %{_includedir}/libds-tizen/backend/tdm_output_hwc.h
389 %{_libdir}/pkgconfig/libds-tizen-backend-tdm.pc
390 %{_libdir}/libds-tizen-backend-tdm.so
391 %{_bindir}/tdm-backend
392 %{_bindir}/tinyds-tdm
393 %{_bindir}/ds-simple-tbm
394
395 %files tbm-server
396 %manifest %{name}.manifest
397 %defattr(-,root,root,-)
398 %license LICENSE
399 %{_libdir}/libds-tizen-tbm-server.so.*
400
401 %files tbm-server-devel
402 %manifest %{name}.manifest
403 %defattr(-,root,root,-)
404 %license LICENSE
405 %{_includedir}/libds-tizen/tbm_server.h
406 %{_libdir}/pkgconfig/libds-tizen-tbm-server.pc
407 %{_libdir}/libds-tizen-tbm-server.so
408
409 %files keyrouter
410 %manifest %{name}.manifest
411 %defattr(-,root,root,-)
412 %license LICENSE
413 %{_libdir}/libds-tizen-keyrouter.so.*
414
415 %files keyrouter-devel
416 %manifest %{name}.manifest
417 %defattr(-,root,root,-)
418 %license LICENSE
419 %{_includedir}/libds-tizen/keyrouter.h
420 %{_libdir}/pkgconfig/libds-tizen-keyrouter.pc
421 %{_libdir}/libds-tizen-keyrouter.so
422
423 %files input-devicemgr
424 %manifest %{name}.manifest
425 %defattr(-,root,root,-)
426 %license LICENSE
427 %{_libdir}/libds-tizen-input-devicemgr.so.*
428
429 %files input-devicemgr-devel
430 %manifest %{name}.manifest
431 %defattr(-,root,root,-)
432 %license LICENSE
433 %{_includedir}/libds-tizen/input_devicemgr.h
434 %{_libdir}/pkgconfig/libds-tizen-input-devicemgr.pc
435 %{_libdir}/libds-tizen-input-devicemgr.so
436 %{_bindir}/input-generator
437
438 %files dpms
439 %manifest %{name}.manifest
440 %defattr(-,root,root,-)
441 %license LICENSE
442 %{_libdir}/libds-tizen-dpms.so.*
443
444 %files dpms-devel
445 %manifest %{name}.manifest
446 %defattr(-,root,root,-)
447 %license LICENSE
448 %{_includedir}/libds-tizen/dpms.h
449 %{_libdir}/pkgconfig/libds-tizen-dpms.pc
450 %{_libdir}/libds-tizen-dpms.so
451 %{_bindir}/ds-simple-dpms
452
453 %files indicator
454 %manifest %{name}.manifest
455 %defattr(-,root,root,-)
456 %license LICENSE
457 %{_libdir}/libds-tizen-indicator.so.*
458
459 %files indicator-devel
460 %manifest %{name}.manifest
461 %defattr(-,root,root,-)
462 %license LICENSE
463 %{_includedir}/libds-tizen/indicator.h
464 %{_libdir}/pkgconfig/libds-tizen-indicator.pc
465 %{_libdir}/libds-tizen-indicator.so
466 %{_bindir}/libds-tizen-indicator-tests
467
468 %files clipboard
469 %manifest %{name}.manifest
470 %defattr(-,root,root,-)
471 %license LICENSE
472 %{_libdir}/libds-tizen-clipboard.so.*
473
474 %files clipboard-devel
475 %manifest %{name}.manifest
476 %defattr(-,root,root,-)
477 %license LICENSE
478 %{_includedir}/libds-tizen/clipboard.h
479 %{_libdir}/pkgconfig/libds-tizen-clipboard.pc
480 %{_libdir}/libds-tizen-clipboard.so
481 %{_bindir}/libds-tizen-clipboard-tests
482
483 %files launch
484 %manifest %{name}.manifest
485 %defattr(-,root,root,-)
486 %license LICENSE
487 %{_libdir}/libds-tizen-launch.so.*
488
489 %files launch-devel
490 %manifest %{name}.manifest
491 %defattr(-,root,root,-)
492 %license LICENSE
493 %{_includedir}/libds-tizen/launch.h
494 %{_libdir}/pkgconfig/libds-tizen-launch.pc
495 %{_libdir}/libds-tizen-launch.so
496 %{_bindir}/libds-tizen-launch-appinfo-tests
497 %{_bindir}/libds-tizen-launch-effect-tests
498
499 %files display-policy
500 %manifest %{name}.manifest
501 %defattr(-,root,root,-)
502 %license LICENSE
503 %{_libdir}/libds-tizen-display-policy.so.*
504
505 %files display-policy-devel
506 %manifest %{name}.manifest
507 %defattr(-,root,root,-)
508 %license LICENSE
509 %{_includedir}/libds-tizen/display_policy.h
510 %{_libdir}/pkgconfig/libds-tizen-display-policy.pc
511 %{_libdir}/libds-tizen-display-policy.so
512 %{_bindir}/libds-tizen-display-policy-tests
513
514 %files memory-flusher
515 %manifest %{name}.manifest
516 %defattr(-,root,root,-)
517 %license LICENSE
518 %{_libdir}/libds-tizen-memory-flusher.so.*
519
520 %files memory-flusher-devel
521 %manifest %{name}.manifest
522 %defattr(-,root,root,-)
523 %license LICENSE
524 %{_includedir}/libds-tizen/memory_flusher.h
525 %{_libdir}/pkgconfig/libds-tizen-memory-flusher.pc
526 %{_libdir}/libds-tizen-memory-flusher.so
527 %{_bindir}/libds-tizen-memory-flusher-tests
528
529 %files renderer
530 %manifest %{name}.manifest
531 %defattr(-,root,root,-)
532 %license LICENSE
533 %{_libdir}/libds-tizen-renderer.so.*
534
535 %files renderer-devel
536 %manifest %{name}.manifest
537 %defattr(-,root,root,-)
538 %license LICENSE
539 %{_includedir}/libds-tizen/renderer.h
540 %{_libdir}/pkgconfig/libds-tizen-renderer.pc
541 %{_libdir}/libds-tizen-renderer.so
542 %{_bindir}/libds-tizen-renderer-tests
543
544 %files screen-rotation
545 %manifest %{name}.manifest
546 %defattr(-,root,root,-)
547 %license LICENSE
548 %{_libdir}/libds-tizen-screen-rotation.so.*
549
550 %files screen-rotation-devel
551 %manifest %{name}.manifest
552 %defattr(-,root,root,-)
553 %license LICENSE
554 %{_includedir}/libds-tizen/screen_rotation.h
555 %{_libdir}/pkgconfig/libds-tizen-screen-rotation.pc
556 %{_libdir}/libds-tizen-screen-rotation.so
557 %{_bindir}/libds-tizen-screen-rotation-tests
558
559 %files global-resource
560 %manifest %{name}.manifest
561 %defattr(-,root,root,-)
562 %license LICENSE
563 %{_libdir}/libds-tizen-global-resource.so.*
564
565 %files global-resource-devel
566 %manifest %{name}.manifest
567 %defattr(-,root,root,-)
568 %license LICENSE
569 %{_includedir}/libds-tizen/global_resource.h
570 %{_libdir}/pkgconfig/libds-tizen-global-resource.pc
571 %{_libdir}/libds-tizen-global-resource.so
572 %{_bindir}/libds-tizen-global-resource-tests
573
574 %files embedded-compositor
575 %manifest %{name}.manifest
576 %defattr(-,root,root,-)
577 %license LICENSE
578 %{_libdir}/libds-tizen-embedded-compositor.so.*
579
580 %files embedded-compositor-devel
581 %manifest %{name}.manifest
582 %defattr(-,root,root,-)
583 %license LICENSE
584 %{_includedir}/libds-tizen/embedded_compositor.h
585 %{_libdir}/pkgconfig/libds-tizen-embedded-compositor.pc
586 %{_libdir}/libds-tizen-embedded-compositor.so
587 %{_bindir}/libds-tizen-embedded-compositor-tests
588
589 %files text-input
590 %manifest %{name}.manifest
591 %defattr(-,root,root,-)
592 %license LICENSE
593 %{_libdir}/libds-tizen-text-input.so.*
594
595 %files text-input-devel
596 %manifest %{name}.manifest
597 %defattr(-,root,root,-)
598 %license LICENSE
599 %{_includedir}/libds-tizen/text_input.h
600 %{_libdir}/pkgconfig/libds-tizen-text-input.pc
601 %{_libdir}/libds-tizen-text-input.so
602 %{_bindir}/libds-tizen-text-input-tests
603
604 %files input-method
605 %manifest %{name}.manifest
606 %defattr(-,root,root,-)
607 %license LICENSE
608 %{_libdir}/libds-tizen-input-method.so.*
609
610 %files input-method-devel
611 %manifest %{name}.manifest
612 %defattr(-,root,root,-)
613 %license LICENSE
614 %{_includedir}/libds-tizen/input_method.h
615 %{_libdir}/pkgconfig/libds-tizen-input-method.pc
616 %{_libdir}/libds-tizen-input-method.so
617 %{_bindir}/libds-tizen-input-method-tests
618 %{_bindir}/libds-tizen-input-method-manager-tests
619
620 %files hwc
621 %manifest %{name}.manifest
622 %defattr(-,root,root,-)
623 %license LICENSE
624 %{_libdir}/libds-tizen-hwc.so*
625
626 %files hwc-devel
627 %manifest %{name}.manifest
628 %defattr(-,root,root,-)
629 %license LICENSE
630 %{_includedir}/libds-tizen/hwc.h
631 %{_libdir}/pkgconfig/libds-tizen-hwc.pc
632 %{_libdir}/libds-tizen-hwc.so*
633 %{_bindir}/libds-tizen-hwc-tests
634
635 %files policy
636 %manifest %{name}.manifest
637 %defattr(-,root,root,-)
638 %license LICENSE
639 %{_libdir}/libds-tizen-policy.so.*
640
641 %files policy-devel
642 %manifest %{name}.manifest
643 %defattr(-,root,root,-)
644 %license LICENSE
645 %{_includedir}/libds-tizen/policy.h
646 %{_libdir}/pkgconfig/libds-tizen-policy.pc
647 %{_libdir}/libds-tizen-policy.so
648 %{_bindir}/libds-tizen-policy-tests
649
650 %files screenshooter
651 %manifest %{name}.manifest
652 %defattr(-,root,root,-)
653 %license LICENSE
654 %{_libdir}/libds-tizen-screenshooter.so.*
655
656 %files screenshooter-devel
657 %manifest %{name}.manifest
658 %defattr(-,root,root,-)
659 %license LICENSE
660 %{_includedir}/libds-tizen/screenshooter.h
661 %{_libdir}/pkgconfig/libds-tizen-screenshooter.pc
662 %{_libdir}/libds-tizen-screenshooter.so
663 %{_bindir}/libds-tizen-screenshooter-tests