summaryrefslogtreecommitdiff
path: root/packaging/media-config.spec
blob: 5ce2671abc855d87fd847d3282d760afd443e849 (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
%define debug_package %{nil}

Name:       media-config
Summary:    Multimedia Framework system configuration package
Version:    0.3.38
Release:    0
Group:      Multimedia/Configuration
License:    LGPL-2.1 and Apache-2.0
Source0:    %{name}-%{version}.tar.gz
Requires: sed

%description
Multimedia Framework system configuration package including ini, conf and etc files.


%ifarch %arm aarch64

%package target-tm1
Summary: Multimedia Framework system configuration package for tm1
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-tm1
Multimedia Framework system configuration package including ini, conf and etc files for tm1 target.

%package target-artik10
Summary: Multimedia Framework system configuration package for artik 10
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-artik10
Multimedia Framework system configuration package including ini, conf and etc files for artik 10 target.

%package target-rpi3
Summary: Multimedia Framework system configuration package for rpi3
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-rpi3
Multimedia Framework system configuration package including ini, conf and etc files for rpi3 target.

%package target-tw3
Summary: Multimedia Framework system configuration package for tw3
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-tw3
Multimedia Framework system configuration package including ini, conf and etc files for tw3 target.

%package target-rpi3-spk
Summary: Multimedia Framework system configuration package for rpi3 speaker
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-rpi3-spk
Multimedia Framework system configuration package including ini, conf and etc files for rpi3 speaker target.

%package target-c4
Summary: Multimedia Framework system configuration package for ODROID-C4
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-c4
Multimedia Framework system configuration package including ini, conf and etc files for ODROID-C4

%package target-vim3
Summary: Multimedia Framework system configuration package for VIM3
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description target-vim3
Multimedia Framework system configuration package including ini, conf and etc files for VIM3

%package generic
Summary: Multimedia Framework system configuration package for generic
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description generic
Multimedia Framework system configuration package including ini, conf and etc files for generic

%else

%package simulator
Summary: Multimedia Framework system configuration package for simulator
Group: Multimedia/Configuration
License: LGPL-2.1 and Apache-2.0

%description simulator
Multimedia Framework system configuration package including ini, conf and etc files for simulator.

%endif


%prep
%setup -q -n %{name}-%{version}


%build


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_hal_datadir}


%ifarch %arm aarch64

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-tm1
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-tm1
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-tm1
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-tm1
cp -arf %{name}-target-tm1/* %{buildroot}%{_hal_datadir}/%{name}-target-tm1

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-artik10
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-artik10
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-artik10
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-artik10
cp -arf %{name}-target-artik10/* %{buildroot}%{_hal_datadir}/%{name}-target-artik10

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-rpi3
cp -arf %{name}-target-rpi3/* %{buildroot}%{_hal_datadir}/%{name}-target-rpi3

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-tw3
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-tw3
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-tw3
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-tw3
cp -arf %{name}-target-tw3/* %{buildroot}%{_hal_datadir}/%{name}-target-tw3

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3-spk
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3-spk
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-rpi3-spk
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-rpi3-spk
cp -arf %{name}-target-rpi3-spk/* %{buildroot}%{_hal_datadir}/%{name}-target-rpi3-spk

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-c4
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-c4
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-c4
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-c4
cp -arf %{name}-target-c4/* %{buildroot}%{_hal_datadir}/%{name}-target-c4

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-target-vim3
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-target-vim3
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-target-vim3
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-target-vim3
cp -arf %{name}-target-vim3/* %{buildroot}%{_hal_datadir}/%{name}-target-vim3

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-generic
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-generic
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-generic
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-generic
cp -arf %{name}-generic/* %{buildroot}%{_hal_datadir}/%{name}-generic

%else

mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-simulator
cp LICENSE.APLv2.0 %{buildroot}%{_hal_licensedir}/%{name}-simulator
cp LICENSE.LGPLv2.1 %{buildroot}%{_hal_licensedir}/%{name}-simulator
mkdir -p %{buildroot}%{_hal_datadir}/%{name}-simulator
cp -arf %{name}-simulator/* %{buildroot}%{_hal_datadir}/%{name}-simulator

%endif

%ifarch %arm aarch64

%post target-tm1
cp -arf %{_hal_datadir}/%{name}-target-tm1/* /
rm -rf %{_hal_datadir}/%{name}-target-tm1

%post target-artik10
cp -arf %{_hal_datadir}/%{name}-target-artik10/* /
rm -rf %{_hal_datadir}/%{name}-target-artik10

%post target-rpi3
cp -arf %{_hal_datadir}/%{name}-target-rpi3/* /
rm -rf %{_hal_datadir}/%{name}-target-rpi3

%post target-tw3
sed -i -e 's|@HAL_LIBDIR@|%{_hal_libdir}|g' %{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/xdg/gstomx.conf
cp -arf %{_hal_datadir}/%{name}-target-tw3/* /
rm -rf %{_hal_datadir}/%{name}-target-tw3

%post target-rpi3-spk
cp -arf %{_hal_datadir}/%{name}-target-rpi3-spk/* /
rm -rf %{_hal_datadir}/%{name}-target-rpi3-spk

%post target-c4
cp -arf %{_hal_datadir}/%{name}-target-c4/* /
rm -rf %{_hal_datadir}/%{name}-target-c4

%post target-vim3
cp -arf %{_hal_datadir}/%{name}-target-vim3/* /
rm -rf %{_hal_datadir}/%{name}-target-vim3

%post generic
cp -arf %{_hal_datadir}/%{name}-generic/* /
rm -rf %{_hal_datadir}/%{name}-target-generric

%else

%post simulator
cp -arf %{_hal_datadir}/%{name}-simulator/* /
rm -rf %{_hal_datadir}/%{name}-simulator

%endif


%postun


%ifarch %arm aarch64

%files target-tm1
%manifest %{name}-target-tm1.manifest
%{_hal_licensedir}/%{name}-target-tm1/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-tm1%{_hal_sysconfdir}/multimedia/audio_hw.xml
%{_hal_datadir}/%{name}-target-tm1%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-tm1%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-tm1%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files target-artik10
%manifest %{name}-target-artik10.manifest
%{_hal_licensedir}/%{name}-target-artik10/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-artik10%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-artik10%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-artik10%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-artik10%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-artik10%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-artik10%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-artik10%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-artik10%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files target-rpi3
%manifest %{name}-target-rpi3.manifest
%{_hal_licensedir}/%{name}-target-rpi3/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-rpi3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-rpi3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-rpi3%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files target-tw3
%manifest %{name}-target-tw3.manifest
%{_hal_licensedir}/%{name}-target-tw3/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-tw3%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-tw3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-tw3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-tw3%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf
%{_hal_datadir}/%{name}-target-tw3%{_hal_prefix}/lib/udev/rules.d/*

%files target-rpi3-spk
%manifest %{name}-target-rpi3-spk.manifest
%{_hal_licensedir}/%{name}-target-rpi3-spk/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-rpi3-spk%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files target-c4
%manifest %{name}-target-c4.manifest
%{_hal_licensedir}/%{name}-target-c4/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-c4%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-c4%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-c4%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files target-vim3
%manifest %{name}-target-vim3.manifest
%{_hal_licensedir}/%{name}-target-vim3/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-vim3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-vim3%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-vim3%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%files generic
%manifest %{name}-generic.manifest
%{_hal_licensedir}/%{name}-generic/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-generic%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-generic%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-generic%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%else

%files simulator
%manifest %{name}-simulator.manifest
%{_hal_licensedir}/%{name}-simulator/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-simulator%{_hal_datadir}/pulseaudio/alsa-mixer/profile-sets/*.conf

%endif