merge tinyds-tdm-hwc code to tinyds-tdm
[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(pixman-1)
20 BuildRequires:  pkgconfig(libdrm)
21 BuildRequires:  pkgconfig(xkbcommon)
22
23 BuildRequires:  pkgconfig(libtdm)
24 BuildRequires:  pkgconfig(libtbm)
25 BuildRequires:  pkgconfig(wayland-tbm-server)
26 BuildRequires:  pkgconfig(wayland-tbm-client)
27 BuildRequires:  pkgconfig(tizen-dpms-server)
28 BuildRequires:  pkgconfig(tizen-dpms-client)
29 BuildRequires:  pkgconfig(tizen-surface-server)
30 BuildRequires:  pkgconfig(tizen-surface-client)
31 BuildRequires:  pkgconfig(cynara-client)
32 BuildRequires:  pkgconfig(cynara-session)
33 BuildRequires:  pkgconfig(libsmack)
34 BuildRequires:  pkgconfig(gmock)
35
36 %description
37 Wayland Compositor Library for Tizen
38
39 ## libds-tizen-allocator-tbm
40 %package allocator-tbm
41 Summary: Allocator Library with TBM
42 Group:   Development/Libraries
43
44 %description allocator-tbm
45 Allocator Library with TBM
46
47 %package allocator-tbm-devel
48 Summary: TBM Allocator Development package
49 Group:   Development/Libraries
50
51 %description allocator-tbm-devel
52 TBM Allocator Development package
53
54 ## libds-tizen-backend-tdm
55 %package backend-tdm
56 Summary: Display Backend Library with TDM
57 Group:   Development/Libraries
58
59 %description backend-tdm
60 Display Backend Library with TDM
61
62 %package backend-tdm-devel
63 Summary: TDM Display Backend Development package
64 Group:   Development/Libraries
65
66 %description backend-tdm-devel
67 TDM Display Backend Development package
68
69 ## libds-tizen-tbm-server
70 %package tbm-server
71 Summary: Library for wayland-tbm-server
72 Group:   Development/Libraries
73
74 %description tbm-server
75 Library for tizen input devicemgr
76
77 %package tbm-server-devel
78 Summary: Development package for wayland-tbm-server
79 Group:   Development/Libraries
80
81 %description tbm-server-devel
82 Development package for tizen wayland-tbm-server
83
84 ## libds-tizen-keyrouter
85 %package keyrouter
86 Summary: Wayland Compositor Library for keyrouter
87 Group:   Development/Libraries
88
89 %description keyrouter
90 Wayland Compositor Library for tizen keyrouter
91
92 %package keyrouter-devel
93 Summary: Keyrouter Development package for Wayland Compositor Library
94 Group:   Development/Libraries
95
96 %description keyrouter-devel
97 Keyrouter Development package for Wayland Compositor Library
98
99 ## libds-tizen-input-devicemgr
100 %package input-devicemgr
101 Summary: Library for tizen input devicemgr
102 Group:   Development/Libraries
103
104 %description input-devicemgr
105 Library for tizen input devicemgr
106
107 %package input-devicemgr-devel
108 Summary: Development package for tizen input devicemgr
109 Group:   Development/Libraries
110
111 %description input-devicemgr-devel
112 Development package for tizen input devicemgr
113
114 ## libds-tizen-dpms
115 %package dpms
116 Summary: Library for tizen dpms
117 Group:   Development/Libraries
118
119 %description dpms
120 Library for tizen dpms
121
122 %package dpms-devel
123 Summary: Development package for tizen dpms
124 Group:   Development/Libraries
125
126 %description dpms-devel
127 Development package for tizen dpms
128
129 ## libds-tizen-indicator
130 %package indicator
131 Summary: Library for tizen indicator
132 Group:   Development/Libraries
133
134 %description indicator
135 Library for tizen indicator
136
137 %package indicator-devel
138 Summary: Development package for tizen indicator
139 Group:   Development/Libraries
140
141 %description indicator-devel
142 Development package for tizen indicator
143
144 ## libds-tizen-clipboard
145 %package clipboard
146 Summary: Library for tizen clipboard
147 Group:   Development/Libraries
148
149 %description clipboard
150 Library for tizen clipboard
151
152 %package clipboard-devel
153 Summary: Development package for tizen clipboard
154 Group:   Development/Libraries
155
156 %description clipboard-devel
157 Development package for tizen clipboard
158
159 ## libds-tizen-launch
160 %package launch
161 Summary: Library for tizen launch
162 Group:   Development/Libraries
163
164 %description launch
165 Library for tizen launch
166
167 %package launch-devel
168 Summary: Development package for tizen launch
169 Group:   Development/Libraries
170
171 %description launch-devel
172 Development package for tizen launch
173
174 ## libds-tizen-display-policy
175 %package display-policy
176 Summary: Library for tizen display-policy
177 Group:   Development/Libraries
178
179 %description display-policy
180 Library for tizen display-policy
181
182 %package display-policy-devel
183 Summary: Development package for tizen display-policy
184 Group:   Development/Libraries
185
186 %description display-policy-devel
187 Development package for tizen display-policy
188
189 ## libds-tizen-memory-flusher
190 %package memory-flusher
191 Summary: Library for tizen memory flusher
192 Group:   Development/Libraries
193
194 %description memory-flusher
195 Library for tizen memory flusher
196
197 %package memory-flusher-devel
198 Summary: Development package for tizen memory flusher
199 Group:   Development/Libraries
200
201 %description memory-flusher-devel
202 Development package for tizen memory flusher
203
204 ## libds-tizen-renderer
205 %package renderer
206 Summary: Library for tizen renderer
207 Group:   Development/Libraries
208
209 %description renderer
210 Library for tizen renderer
211
212 %package renderer-devel
213 Summary: Development package for tizen renderer
214 Group:   Development/Libraries
215
216 %description renderer-devel
217 Development package for tizen renderer
218
219 ## libds-tizen-screen-rotation
220 %package screen-rotation
221 Summary: Library for tizen screen rotation
222 Group:   Development/Libraries
223
224 %description screen-rotation
225 Library for tizen screen rotation
226
227 %package screen-rotation-devel
228 Summary: Development package for tizen screen rotation
229 Group:   Development/Libraries
230
231 %description screen-rotation-devel
232 Development package for tizen screen rotation
233
234 ## libds-tizen-global-resource
235 %package global-resource
236 Summary: Library for tizen global resource
237 Group:   Development/Libraries
238
239 %description global-resource
240 Library for tizen global resource
241
242 %package global-resource-devel
243 Summary: Development package for tizen global resource
244 Group:   Development/Libraries
245
246 %description global-resource-devel
247 Development package for tizen global resource
248
249 ## libds-tizen-embedded-compositor
250 %package embedded-compositor
251 Summary: Library for tizen embedded compositor
252 Group:   Development/Libraries
253
254 %description embedded-compositor
255 Library for tizen embedded compositor
256
257 %package embedded-compositor-devel
258 Summary: Development package for tizen embedded compositor
259 Group:   Development/Libraries
260
261 %description embedded-compositor-devel
262 Development package for tizen embedded compositor
263
264 %prep
265 %setup -q
266 cp %{SOURCE1001} .
267
268 %build
269 meson setup \
270     --prefix /usr \
271     --libdir %{_libdir} \
272     --bindir %{_bindir} \
273     builddir \
274     -Dkeylayout_dir="%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
275 ninja -C builddir all
276
277 %install
278 export DESTDIR=%{buildroot}
279 ninja -C builddir install
280
281 %files allocator-tbm
282 %manifest %{name}.manifest
283 %defattr(-,root,root,-)
284 %license LICENSE
285 %{_libdir}/libds-tizen-allocator-tbm.so.*
286
287 %files allocator-tbm-devel
288 %manifest %{name}.manifest
289 %defattr(-,root,root,-)
290 %license LICENSE
291 %{_includedir}/libds-tizen/allocator/tbm.h
292 %{_libdir}/pkgconfig/libds-tizen-allocator-tbm.pc
293 %{_libdir}/libds-tizen-allocator-tbm.so
294 %{_bindir}/libds-tizen-allocator-tbm-tests
295
296 %files backend-tdm
297 %manifest %{name}.manifest
298 %defattr(-,root,root,-)
299 %license LICENSE
300 %{_libdir}/libds-tizen-backend-tdm.so.*
301
302 %files backend-tdm-devel
303 %manifest %{name}.manifest
304 %defattr(-,root,root,-)
305 %license LICENSE
306 %{_includedir}/libds-tizen/backend/tdm.h
307 %{_includedir}/libds-tizen/backend/tdm_output_hwc.h
308 %{_libdir}/pkgconfig/libds-tizen-backend-tdm.pc
309 %{_libdir}/libds-tizen-backend-tdm.so
310 %{_bindir}/tdm-backend
311 %{_bindir}/tinyds-tdm
312 %{_bindir}/ds-simple-tbm
313
314 %files tbm-server
315 %manifest %{name}.manifest
316 %defattr(-,root,root,-)
317 %license LICENSE
318 %{_libdir}/libds-tizen-tbm-server.so.*
319
320 %files tbm-server-devel
321 %manifest %{name}.manifest
322 %defattr(-,root,root,-)
323 %license LICENSE
324 %{_includedir}/libds-tizen/tbm_server.h
325 %{_libdir}/pkgconfig/libds-tizen-tbm-server.pc
326 %{_libdir}/libds-tizen-tbm-server.so
327
328 %files keyrouter
329 %manifest %{name}.manifest
330 %defattr(-,root,root,-)
331 %license LICENSE
332 %{_libdir}/libds-tizen-keyrouter.so.*
333
334 %files keyrouter-devel
335 %manifest %{name}.manifest
336 %defattr(-,root,root,-)
337 %license LICENSE
338 %{_includedir}/libds-tizen/keyrouter.h
339 %{_libdir}/pkgconfig/libds-tizen-keyrouter.pc
340 %{_libdir}/libds-tizen-keyrouter.so
341
342 %files input-devicemgr
343 %manifest %{name}.manifest
344 %defattr(-,root,root,-)
345 %license LICENSE
346 %{_libdir}/libds-tizen-input-devicemgr.so.*
347
348 %files input-devicemgr-devel
349 %manifest %{name}.manifest
350 %defattr(-,root,root,-)
351 %license LICENSE
352 %{_includedir}/libds-tizen/input_devicemgr.h
353 %{_libdir}/pkgconfig/libds-tizen-input-devicemgr.pc
354 %{_libdir}/libds-tizen-input-devicemgr.so
355 %{_bindir}/input-generator
356
357 %files dpms
358 %manifest %{name}.manifest
359 %defattr(-,root,root,-)
360 %license LICENSE
361 %{_libdir}/libds-tizen-dpms.so.*
362
363 %files dpms-devel
364 %manifest %{name}.manifest
365 %defattr(-,root,root,-)
366 %license LICENSE
367 %{_includedir}/libds-tizen/dpms.h
368 %{_libdir}/pkgconfig/libds-tizen-dpms.pc
369 %{_libdir}/libds-tizen-dpms.so
370 %{_bindir}/ds-simple-dpms
371
372 %files indicator
373 %manifest %{name}.manifest
374 %defattr(-,root,root,-)
375 %license LICENSE
376 %{_libdir}/libds-tizen-indicator.so.*
377
378 %files indicator-devel
379 %manifest %{name}.manifest
380 %defattr(-,root,root,-)
381 %license LICENSE
382 %{_includedir}/libds-tizen/indicator.h
383 %{_libdir}/pkgconfig/libds-tizen-indicator.pc
384 %{_libdir}/libds-tizen-indicator.so
385 %{_bindir}/libds-tizen-indicator-tests
386
387 %files clipboard
388 %manifest %{name}.manifest
389 %defattr(-,root,root,-)
390 %license LICENSE
391 %{_libdir}/libds-tizen-clipboard.so.*
392
393 %files clipboard-devel
394 %manifest %{name}.manifest
395 %defattr(-,root,root,-)
396 %license LICENSE
397 %{_includedir}/libds-tizen/clipboard.h
398 %{_libdir}/pkgconfig/libds-tizen-clipboard.pc
399 %{_libdir}/libds-tizen-clipboard.so
400 %{_bindir}/libds-tizen-clipboard-tests
401
402 %files launch
403 %manifest %{name}.manifest
404 %defattr(-,root,root,-)
405 %license LICENSE
406 %{_libdir}/libds-tizen-launch.so.*
407
408 %files launch-devel
409 %manifest %{name}.manifest
410 %defattr(-,root,root,-)
411 %license LICENSE
412 %{_includedir}/libds-tizen/launch.h
413 %{_libdir}/pkgconfig/libds-tizen-launch.pc
414 %{_libdir}/libds-tizen-launch.so
415 %{_bindir}/libds-tizen-launch-appinfo-tests
416 %{_bindir}/libds-tizen-launch-effect-tests
417
418 %files display-policy
419 %manifest %{name}.manifest
420 %defattr(-,root,root,-)
421 %license LICENSE
422 %{_libdir}/libds-tizen-display-policy.so.*
423
424 %files display-policy-devel
425 %manifest %{name}.manifest
426 %defattr(-,root,root,-)
427 %license LICENSE
428 %{_includedir}/libds-tizen/display_policy.h
429 %{_libdir}/pkgconfig/libds-tizen-display-policy.pc
430 %{_libdir}/libds-tizen-display-policy.so
431 %{_bindir}/libds-tizen-display-policy-tests
432
433 %files memory-flusher
434 %manifest %{name}.manifest
435 %defattr(-,root,root,-)
436 %license LICENSE
437 %{_libdir}/libds-tizen-memory-flusher.so.*
438
439 %files memory-flusher-devel
440 %manifest %{name}.manifest
441 %defattr(-,root,root,-)
442 %license LICENSE
443 %{_includedir}/libds-tizen/memory_flusher.h
444 %{_libdir}/pkgconfig/libds-tizen-memory-flusher.pc
445 %{_libdir}/libds-tizen-memory-flusher.so
446 %{_bindir}/libds-tizen-memory-flusher-tests
447
448 %files renderer
449 %manifest %{name}.manifest
450 %defattr(-,root,root,-)
451 %license LICENSE
452 %{_libdir}/libds-tizen-renderer.so.*
453
454 %files renderer-devel
455 %manifest %{name}.manifest
456 %defattr(-,root,root,-)
457 %license LICENSE
458 %{_includedir}/libds-tizen/renderer.h
459 %{_libdir}/pkgconfig/libds-tizen-renderer.pc
460 %{_libdir}/libds-tizen-renderer.so
461 %{_bindir}/libds-tizen-renderer-tests
462
463 %files screen-rotation
464 %manifest %{name}.manifest
465 %defattr(-,root,root,-)
466 %license LICENSE
467 %{_libdir}/libds-tizen-screen-rotation.so.*
468
469 %files screen-rotation-devel
470 %manifest %{name}.manifest
471 %defattr(-,root,root,-)
472 %license LICENSE
473 %{_includedir}/libds-tizen/screen_rotation.h
474 %{_libdir}/pkgconfig/libds-tizen-screen-rotation.pc
475 %{_libdir}/libds-tizen-screen-rotation.so
476 %{_bindir}/libds-tizen-screen-rotation-tests
477
478 %files global-resource
479 %manifest %{name}.manifest
480 %defattr(-,root,root,-)
481 %license LICENSE
482 %{_libdir}/libds-tizen-global-resource.so.*
483
484 %files global-resource-devel
485 %manifest %{name}.manifest
486 %defattr(-,root,root,-)
487 %license LICENSE
488 %{_includedir}/libds-tizen/global_resource.h
489 %{_libdir}/pkgconfig/libds-tizen-global-resource.pc
490 %{_libdir}/libds-tizen-global-resource.so
491 %{_bindir}/libds-tizen-global-resource-tests
492
493 %files embedded-compositor
494 %manifest %{name}.manifest
495 %defattr(-,root,root,-)
496 %license LICENSE
497 %{_libdir}/libds-tizen-embedded-compositor.so.*
498
499 %files embedded-compositor-devel
500 %manifest %{name}.manifest
501 %defattr(-,root,root,-)
502 %license LICENSE
503 %{_includedir}/libds-tizen/embedded_compositor.h
504 %{_libdir}/pkgconfig/libds-tizen-embedded-compositor.pc
505 %{_libdir}/libds-tizen-embedded-compositor.so
506 %{_bindir}/libds-tizen-embedded-compositor-tests