Project Configuration of home:enzokiel

357
 
1
%if "%_repository" == "Factory"
2
Required: enough-build-resources
3
%endif
4
# %arm seems to be missing armv6l/armv6hl
5
%define arm %arm armv6l armv6hl
6
7
%ifarch armv6l armv6hl
8
VMinstall: kernel-obs-build
9
VMInstall: kernel-obs-build
10
%endif
11
12
# Avoid armv7 build error: "getbinaries: missing packages: kernel-obs-build"
13
%ifarch armv7l armv7hl
14
VMinstall: !kernel-obs-build
15
VMInstall: !kernel-obs-build
16
%endif
17
18
# armv6 is built using QEMU
19
%ifarch armv6l armv6hl
20
%define qemu_user_space_build 1
21
%endif
22
23
%if "%qemu_user_space_build" == "1"
24
# Reenable armv6l build only on QEMU_ARM workers
25
Constraint: hostlabel QEMU_ARM
26
Macros:
27
%qemu_user_space_build 1
28
%_without_mono 1
29
:Macros
30
%endif
31
32
%ifarch armv6l armv6hl
33
# Prefer Mesa openGL ES libs instead of raspberry pi openGL ES libs
34
#Prefer: raspberrypi-gfx raspberrypi-gfx-devel
35
Prefer: -raspberrypi-userland -raspberrypi-userland-devel
36
Prefer: Mesa-libEGL1 Mesa-libEGL-devel Mesa-libGLESv1_CM1 Mesa-libGLESv1_CM-devel Mesa-libGLESv2-2 Mesa-libGLESv2-devel 
37
# omxplayer also provides ffmpeg libs, so prefer to use ffmpeg ones
38
Prefer: -omxplayer
39
Substitute: post-build-checks-malwarescan bash
40
Substitute: post-build-checks bash
41
Substitute: rpmlint-mini bash
42
Substitute: rpmlint-Factory bash
43
Substitute: clamav-database bash
44
Substitute: clamav bash
45
%endif
46
47
%ifarch armv7l armv7hl
48
# raspberrypi 2 is armv7l, so prefer Mesa here
49
Prefer: Mesa-libEGL-devel
50
Prefer: -raspberrypi-gfx-devel -raspberrypi-userland-devel
51
Substitute: post-build-checks-malwarescan bash
52
Substitute: post-build-checks bash
53
Substitute: rpmlint-mini bash
54
Substitute: rpmlint-Factory bash
55
Substitute: clamav-database bash
56
Substitute: clamav bash
57
%endif
58
59
%ifarch aarch64
60
# raspberrypi 3 is aarch64, so prefer Mesa on raspberrypi-userland here
61
Prefer: -raspberrypi-userland-devel
62
%endif
63
64
Prefer: opencv-devel
65
Prefer: vlc-devel
66
67
Prefer: libxml++26-devel
68
69
# Undo splitdebug:_debug in OBS:SLE_12:Backports
70
%if 0%{?suse_version} == 1315
71
%if 0%{?is_opensuse}
72
%else
73
RepoType: rpm-md:rsyncable
74
%endif
75
%endif
76
77
%if 0%{?suse_version} > 1500
78
%endif
79
80
%if 0%{?suse_version} == 1500
81
%if 0%{?is_opensuse}
82
# is_opensuse
83
%else
84
%endif
85
%endif
86
#
87
%if 0%{?suse_version} == 1315
88
Substitute: libnsl-devel bash
89
# Development happens for Tumbleweed
90
Substitute: libboost_atomic-devel boost-devel=
91
Substitute: libboost_chrono-devel boost-devel=
92
Substitute: libboost_container-devel boost-devel=
93
Substitute: libboost_context-devel boost-devel=
94
Substitute: libboost_coroutine-devel boost-devel=
95
Substitute: libboost_date_time-devel boost-devel=
96
Substitute: libboost_fiber-devel boost-devel=
97
Substitute: libboost_filesystem-devel boost-devel=
98
Substitute: libboost_graph-devel boost-devel=
99
Substitute: libboost_graph_parallel-devel boost-devel=
100
Substitute: libboost_headers-devel boost-devel=
101
Substitute: libboost_iostreams-devel boost-devel=
102
Substitute: libboost_locale-devel boost-devel=
103
Substitute: libboost_log-devel boost-devel=
104
Substitute: libboost_math-devel boost-devel=
105
Substitute: libboost_mpi-devel boost-devel=
106
Substitute: libboost_mpi_python-devel boost-devel=
107
Substitute: libboost_mpi_python3-devel boost-devel=
108
Substitute: libboost_numpy-devel boost-devel=
109
Substitute: libboost_numpy3-devel boost-devel=
110
Substitute: libboost_program_options-devel boost-devel=
111
Substitute: libboost_python-devel boost-devel=
112
Substitute: libboost_python3-devel boost-devel=
113
Substitute: libboost_random-devel boost-devel=
114
Substitute: libboost_regex-devel boost-devel=
115
Substitute: libboost_serialization-devel boost-devel=
116
Substitute: libboost_signals-devel boost-devel=
117
Substitute: libboost_system-devel boost-devel=
118
Substitute: libboost_test-devel boost-devel=
119
Substitute: libboost_thread-devel boost-devel=
120
Substitute: libboost_timer-devel boost-devel=
121
Substitute: libboost_type_erasure-devel boost-devel=
122
Substitute: libboost_wave-devel boost-devel=
123
#
124
%if 0%{?is_opensuse}
125
#
126
%if 0%{?sle_version} == 120300
127
# Leap 42.3
128
Substitute: group(audio)
129
Substitute: group(uucp)
130
Substitute: group(video)
131
Substitute: system-group-hardware
132
%endif
133
#
134
%if 0%{?sle_version} == 120200
135
# Leap 42.2
136
Substitute: group(audio)
137
Substitute: group(uucp)
138
Substitute: group(video)
139
Substitute: system-group-hardware
140
%endif
141
#
142
# !Leap
143
%else
144
# SLE12
145
# for freshplayerplugin
146
Substitute: ragel-6 ragel
147
# for mpv
148
Substitute: pkgconfig(lua-5.1) pkgconfig(lua)
149
Substitute: pkgconfig(wayland-egl)
150
Substitute: python3-docutils python-docutils
151
#
152
Substitute: group(audio)
153
Substitute: group(video)
154
Substitute: system-group-hardware
155
# For missing-provides-SLE_12.spec
156
Prefer: libmcrypt
157
Prefer: libmicrohttpd10
158
Prefer: libvncclient0
159
Prefer: libavcodec-devel
160
Prefer: libavdevice-devel
161
Prefer: libavfilter-devel
162
Prefer: libavformat-devel
163
Prefer: libavresample-devel
164
Prefer: libavutil-devel
165
Prefer: libpostproc-devel
166
Prefer: libswresample-devel
167
Prefer: libswscale-devel
168
%endif
169
#
170
%endif
171
#
172
173
# Support pkgconfig() BuildRequires in old distros
174
#
175
%if 0%{?suse_version} == 1315
176
Substitute: hostname net-tools
177
Substitute: pkgconfig(freeglut) freeglut-devel=
178
Substitute: pkgconfig(libcap) libcap-devel=
179
Substitute: pkgconfig(libglvnd) Mesa-libGL-devel=
180
Substitute: pkgconfig(libjpeg) libjpeg8-devel=
181
Substitute: pkgconfig(lirc) lirc-devel=
182
Substitute: pkgconfig(mariadb) libmysqlclient-devel=
183
Substitute: pkgconfig(tinfo) ncurses-devel=
184
Substitute: pkgconfig(yajl) libyajl-devel=
185
%endif
186
#
187
188
%define BUILD_ORIG 1
189
%define BUILD_ORIG_ADDON 1
190
%define _with_a52 1
191
%define _with_aalib 1
192
%define _with_amrnb 1
193
%define _with_amrwb 1
194
%define _with_dcadec 1
195
%define _without_directfb 1
196
%define _without_esd 1
197
%define _with_faac 1
198
%define _with_faad 1
199
%define _with_fdk_aac 1
200
%define _with_ffmpeg 1
201
%define _with_ffms2 1
202
%define _with_jack 1
203
%define _with_lame 1
204
%define _with_libdca 1
205
%define _with_libmpeg2 1
206
%define _with_librtmp 1
207
%define _with_mad 1
208
%define _with_mpv_gpl3 1
209
%define _with_restricted 1
210
%define _with_sdl 1
211
%define _with_shine 1
212
%define _with_twolame 1
213
%define _with_vo_aacenc 1
214
%define _with_vidstab 1
215
%define _with_wayland 1
216
%define _with_x264 1
217
%define _with_x265 1
218
%define _with_xvid 1
219
%define _without_distributable 1
220
%define _without_onlynondistributable 1
221
%define _without_wayland 1
222
223
Macros:
224
%vendor http://packman.links2linux.de
225
%packager packman@links2linux.de
226
%packman_bs 1
227
%BUILD_ORIG 1
228
%BUILD_ORIG_ADDON 1
229
%_with_a52 1
230
%_with_aalib 1
231
%_with_amrnb 1
232
%_with_amrwb 1
233
%_with_dcadec 1
234
%_without_directfb 1
235
%_without_esd 1
236
%_with_faac 1
237
%_with_faad 1
238
%_with_fdk_aac 1
239
%_with_ffmpeg 1
240
%_with_ffms2 1
241
%_with_jack 1
242
%_with_lame 1
243
%_with_libdca 1
244
%_with_libmpeg2 1
245
%_with_librtmp 1
246
%_with_mad 1
247
%_with_mpv_gpl3 1
248
%_with_restricted 1
249
%_with_sdl 1
250
%_with_shine 1
251
%_with_twolame 1
252
%_with_vo_aacenc 1
253
%_with_vidstab 1
254
%_with_x264 1
255
%_with_x265 1
256
%_with_xvid 1
257
%_without_crippled_stk 1
258
%_without_distributable 1
259
%_without_onlynondistributable 1
260
:Macros
261
262
# Factory
263
%if 0%{?suse_version} > 1500
264
%define _without_freerdp 1
265
%define _without_imagemagick 1
266
Macros:
267
%_without_freerdp 1
268
%_without_imagemagick 1
269
:Macros
270
%endif
271
#
272
%if 0%{?suse_version} == 1500
273
%if 0%{?is_opensuse}
274
# is_opensuse
275
%else
276
%define _without_a52 1
277
%define _without_chromaprint 1
278
%define _without_dvdnav 1
279
%define _without_lirc 1
280
%define _without_libnfs 1
281
Macros:
282
%_without_a52 1
283
%_without_chromaprint 1
284
%_without_dvdnav 1
285
%_without_lirc 1
286
%_without_libnfs 1
287
:Macros
288
%endif
289
%endif
290
#
291
#
292
%if 0%{?suse_version} == 1315
293
%if 0%{?is_opensuse}
294
#
295
%if 0%{?sle_version} == 120300
296
# Leap 42.3
297
%define _without_freerdp2 1
298
%define _without_freerdp 1
299
%define _with_vlc_atmo 1
300
%define _without_vlc_ncurses 1
301
Macros:
302
%_without_freerdp2 1
303
%_without_freerdp 1
304
%_with_vlc_atmo 1
305
%_without_vlc_ncurses 1
306
:Macros
307
%endif
308
#
309
%if 0%{?sle_version} == 120200
310
# Leap 42.2
311
%define _without_freerdp2 1
312
%define _without_freerdp 1
313
%define _with_vlc_atmo 1
314
%define _without_vlc_ncurses 1
315
Macros:
316
%_without_freerdp2 1
317
%_without_freerdp 1
318
%_with_vlc_atmo 1
319
%_without_vlc_ncurses 1
320
:Macros
321
%endif
322
#
323
# !Leap
324
%else
325
# SLE12
326
%define _without_kodi_libbluray 1
327
%define _without_vlc_libass 1
328
%define _without_vlc_libbluray 1
329
%define _with_vlc_atmo 1
330
%define _without_freerdp2 1
331
%define _without_freerdp 1
332
%define _without_gpac 1
333
%define _without_graphicsmagic 1
334
%define _without_sndio 1
335
%define _without_vlc_kde4 1
336
%define _without_vlc_ncurses 1
337
%define _without_vlc_svgdec 1
338
%define _without_zbar 1
339
Macros:
340
%_without_kodi_libbluray 1
341
%_without_vlc_libass 1
342
%_without_vlc_libbluray 1
343
%_with_vlc_atmo 1
344
%_without_freerdp2 1
345
%_without_freerdp 1
346
%_without_gpac 1
347
%_without_graphicsmagic 1
348
%_without_sndio 1
349
%_without_vlc_kde4 1
350
%_without_vlc_ncurses 1
351
%_without_vlc_svgdec 1
352
%_without_zbar 1
353
:Macros
354
%endif
355
%endif
356
#
357