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

Name:       media-config
Summary:    Multimedia Framework system configuration package
Version:    0.4.3
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 riscv64
%ifarch %arm aarch64

%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-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

%endif

%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

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

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

%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 riscv64
%ifarch %arm aarch64

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-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

%endif

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

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

%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 riscv64
%ifarch %arm aarch64

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

%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

%endif

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

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

%else

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

%endif


%postun


%ifarch %arm aarch64 riscv64
%ifarch %arm aarch64

%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}/vision/depth/*.ini
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-rpi3%{_hal_sysconfdir}/multimedia/*.xml
%{_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-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}/vision/depth/*.ini
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-c4%{_hal_sysconfdir}/multimedia/*.xml
%{_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}/vision/depth/*.ini
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-vim3%{_hal_sysconfdir}/multimedia/*.xml
%{_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

%endif

%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}/vision/depth/*.ini
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.json
%{_hal_datadir}/%{name}-generic%{_hal_sysconfdir}/multimedia/*.xml
%{_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

%files target-vf2
%manifest %{name}-target-vf2.manifest
%{_hal_licensedir}/%{name}-target-vf2/*
%defattr(-,root,root,-)
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/asound.conf
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/pulse/*
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/murphy/*
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/multimedia/*.ini
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/inference/*.ini
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/vision/depth/*.ini
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/multimedia/*.json
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/multimedia/*.xml
%{_hal_datadir}/%{name}-target-vf2%{_hal_sysconfdir}/xdg/gstomx.conf
%{_hal_datadir}/%{name}-target-vf2%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.conf
%{_hal_datadir}/%{name}-target-vf2%{_hal_datadir}/pulseaudio/alsa-mixer/paths/*.common
%{_hal_datadir}/%{name}-target-vf2%{_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}/vision/depth/*.ini
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.conf
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.json
%{_hal_datadir}/%{name}-simulator%{_hal_sysconfdir}/multimedia/*.xml
%{_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