launch: implement appinfo interface
[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(cynara-client)
30 BuildRequires:  pkgconfig(cynara-session)
31 BuildRequires:  pkgconfig(libsmack)
32 BuildRequires:  pkgconfig(gmock)
33
34 %description
35 Wayland Compositor Library for Tizen
36
37 ## libds-tizen-allocator-tbm
38 %package allocator-tbm
39 Summary: Allocator Library with TBM
40 Group:   Development/Libraries
41
42 %description allocator-tbm
43 Allocator Library with TBM
44
45 %package allocator-tbm-devel
46 Summary: TBM Allocator Development package
47 Group:   Development/Libraries
48
49 %description allocator-tbm-devel
50 TBM Allocator Development package
51
52 ## libds-tizen-backend-tdm
53 %package backend-tdm
54 Summary: Display Backend Library with TDM
55 Group:   Development/Libraries
56
57 %description backend-tdm
58 Display Backend Library with TDM
59
60 %package backend-tdm-devel
61 Summary: TDM Display Backend Development package
62 Group:   Development/Libraries
63
64 %description backend-tdm-devel
65 TDM Display Backend Development package
66
67 ## libds-tizen-tbm-server
68 %package tbm-server
69 Summary: Library for wayland-tbm-server
70 Group:   Development/Libraries
71
72 %description tbm-server
73 Library for tizen input devicemgr
74
75 %package tbm-server-devel
76 Summary: Development package for wayland-tbm-server
77 Group:   Development/Libraries
78
79 %description tbm-server-devel
80 Development package for tizen wayland-tbm-server
81
82 ## libds-tizen-keyrouter
83 %package keyrouter
84 Summary: Wayland Compositor Library for keyrouter
85 Group:   Development/Libraries
86
87 %description keyrouter
88 Wayland Compositor Library for tizen keyrouter
89
90 %package keyrouter-devel
91 Summary: Keyrouter Development package for Wayland Compositor Library
92 Group:   Development/Libraries
93
94 %description keyrouter-devel
95 Keyrouter Development package for Wayland Compositor Library
96
97 ## libds-tizen-input-devicemgr
98 %package input-devicemgr
99 Summary: Library for tizen input devicemgr
100 Group:   Development/Libraries
101
102 %description input-devicemgr
103 Library for tizen input devicemgr
104
105 %package input-devicemgr-devel
106 Summary: Development package for tizen input devicemgr
107 Group:   Development/Libraries
108
109 %description input-devicemgr-devel
110 Development package for tizen input devicemgr
111
112 ## libds-tizen-dpms
113 %package dpms
114 Summary: Library for tizen dpms
115 Group:   Development/Libraries
116
117 %description dpms
118 Library for tizen dpms
119
120 %package dpms-devel
121 Summary: Development package for tizen dpms
122 Group:   Development/Libraries
123
124 %description dpms-devel
125 Development package for tizen dpms
126
127 ## libds-tizen-indicator
128 %package indicator
129 Summary: Library for tizen indicator
130 Group:   Development/Libraries
131
132 %description indicator
133 Library for tizen indicator
134
135 %package indicator-devel
136 Summary: Development package for tizen indicator
137 Group:   Development/Libraries
138
139 %description indicator-devel
140 Development package for tizen indicator
141
142 ## libds-tizen-clipboard
143 %package clipboard
144 Summary: Library for tizen clipboard
145 Group:   Development/Libraries
146
147 %description clipboard
148 Library for tizen clipboard
149
150 %package clipboard-devel
151 Summary: Development package for tizen clipboard
152 Group:   Development/Libraries
153
154 %description clipboard-devel
155 Development package for tizen clipboard
156
157 ## libds-tizen-launch
158 %package launch
159 Summary: Library for tizen launch
160 Group:   Development/Libraries
161
162 %description launch
163 Library for tizen launch
164
165 %package launch-devel
166 Summary: Development package for tizen launch
167 Group:   Development/Libraries
168
169 %description launch-devel
170 Development package for tizen launch
171
172 %prep
173 %setup -q
174 cp %{SOURCE1001} .
175
176 %build
177 meson setup \
178     --prefix /usr \
179     --libdir %{_libdir} \
180     --bindir %{_bindir} \
181     builddir \
182     -Dkeylayout_dir="%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
183 ninja -C builddir all
184
185 %install
186 export DESTDIR=%{buildroot}
187 ninja -C builddir install
188
189 %files allocator-tbm
190 %manifest %{name}.manifest
191 %defattr(-,root,root,-)
192 %license LICENSE
193 %{_libdir}/libds-tizen-allocator-tbm.so.*
194
195 %files allocator-tbm-devel
196 %manifest %{name}.manifest
197 %defattr(-,root,root,-)
198 %license LICENSE
199 %{_includedir}/libds-tizen/allocator/tbm.h
200 %{_libdir}/pkgconfig/libds-tizen-allocator-tbm.pc
201 %{_libdir}/libds-tizen-allocator-tbm.so
202 %{_bindir}/libds-tizen-allocator-tbm-tests
203
204 %files backend-tdm
205 %manifest %{name}.manifest
206 %defattr(-,root,root,-)
207 %license LICENSE
208 %{_libdir}/libds-tizen-backend-tdm.so.*
209
210 %files backend-tdm-devel
211 %manifest %{name}.manifest
212 %defattr(-,root,root,-)
213 %license LICENSE
214 %{_includedir}/libds-tizen/backend/tdm.h
215 %{_includedir}/libds-tizen/backend/tdm_output_hwc.h
216 %{_libdir}/pkgconfig/libds-tizen-backend-tdm.pc
217 %{_libdir}/libds-tizen-backend-tdm.so
218 %{_bindir}/tdm-backend
219 %{_bindir}/tinyds-tdm
220 %{_bindir}/tinyds-tdm-hwc
221 %{_bindir}/ds-simple-tbm
222
223 %files tbm-server
224 %manifest %{name}.manifest
225 %defattr(-,root,root,-)
226 %license LICENSE
227 %{_libdir}/libds-tizen-tbm-server.so.*
228
229 %files tbm-server-devel
230 %manifest %{name}.manifest
231 %defattr(-,root,root,-)
232 %license LICENSE
233 %{_includedir}/libds-tizen/tbm_server.h
234 %{_libdir}/pkgconfig/libds-tizen-tbm-server.pc
235 %{_libdir}/libds-tizen-tbm-server.so
236
237 %files keyrouter
238 %manifest %{name}.manifest
239 %defattr(-,root,root,-)
240 %license LICENSE
241 %{_libdir}/libds-tizen-keyrouter.so.*
242
243 %files keyrouter-devel
244 %manifest %{name}.manifest
245 %defattr(-,root,root,-)
246 %license LICENSE
247 %{_includedir}/libds-tizen/keyrouter.h
248 %{_libdir}/pkgconfig/libds-tizen-keyrouter.pc
249 %{_libdir}/libds-tizen-keyrouter.so
250
251 %files input-devicemgr
252 %manifest %{name}.manifest
253 %defattr(-,root,root,-)
254 %license LICENSE
255 %{_libdir}/libds-tizen-input-devicemgr.so.*
256
257 %files input-devicemgr-devel
258 %manifest %{name}.manifest
259 %defattr(-,root,root,-)
260 %license LICENSE
261 %{_includedir}/libds-tizen/input_devicemgr.h
262 %{_libdir}/pkgconfig/libds-tizen-input-devicemgr.pc
263 %{_libdir}/libds-tizen-input-devicemgr.so
264 %{_bindir}/tinyds-tdm-libinput
265 %{_bindir}/input-generator
266
267 %files dpms
268 %manifest %{name}.manifest
269 %defattr(-,root,root,-)
270 %license LICENSE
271 %{_libdir}/libds-tizen-dpms.so.*
272
273 %files dpms-devel
274 %manifest %{name}.manifest
275 %defattr(-,root,root,-)
276 %license LICENSE
277 %{_includedir}/libds-tizen/dpms.h
278 %{_libdir}/pkgconfig/libds-tizen-dpms.pc
279 %{_libdir}/libds-tizen-dpms.so
280 %{_bindir}/tinyds-tdm-dpms
281 %{_bindir}/ds-simple-dpms
282
283 %files indicator
284 %manifest %{name}.manifest
285 %defattr(-,root,root,-)
286 %license LICENSE
287 %{_libdir}/libds-tizen-indicator.so.*
288
289 %files indicator-devel
290 %manifest %{name}.manifest
291 %defattr(-,root,root,-)
292 %license LICENSE
293 %{_includedir}/libds-tizen/indicator.h
294 %{_libdir}/pkgconfig/libds-tizen-indicator.pc
295 %{_libdir}/libds-tizen-indicator.so
296 %{_bindir}/libds-tizen-indicator-tests
297
298 %files clipboard
299 %manifest %{name}.manifest
300 %defattr(-,root,root,-)
301 %license LICENSE
302 %{_libdir}/libds-tizen-clipboard.so.*
303
304 %files clipboard-devel
305 %manifest %{name}.manifest
306 %defattr(-,root,root,-)
307 %license LICENSE
308 %{_includedir}/libds-tizen/clipboard.h
309 %{_libdir}/pkgconfig/libds-tizen-clipboard.pc
310 %{_libdir}/libds-tizen-clipboard.so
311 %{_bindir}/libds-tizen-clipboard-tests
312
313 %files launch
314 %manifest %{name}.manifest
315 %defattr(-,root,root,-)
316 %license LICENSE
317 %{_libdir}/libds-tizen-launch.so.*
318
319 %files launch-devel
320 %manifest %{name}.manifest
321 %defattr(-,root,root,-)
322 %license LICENSE
323 %{_includedir}/libds-tizen/launch/appinfo.h
324 %{_libdir}/pkgconfig/libds-tizen-launch.pc
325 %{_libdir}/libds-tizen-launch.so
326 %{_bindir}/libds-tizen-launch-appinfo-tests