Tizen:TV/Mobile/Wearable: remove Preinstall: rpm-security-plugin
[scm/meta/obs.git] / Tizen:Mobile / _config
1 ################################################################################
2 # OBS Project config for Tizen:Mobile
3 #
4 # RE contacts:
5 # Joonsub Lee <joon-sub.lee@samsung.com>
6 #
7 # vim: set syntax=spec:
8 ################################################################################
9
10 Patterntype: rpm-md comps
11 Release: <CI_CNT>.<B_CNT>
12 Support: build
13 Support: build-compare build-mkbaselibs
14 Support: rpmlint-mini rpmlint-tizen
15
16 ############################# conflicts resolution #############################
17
18 FileProvides: /usr/sbin/groupadd pwdutils
19 Prefer: util-linux
20 Prefer: libtapi-devel
21 Prefer: libpci-devel
22
23 ############################# profile definition ###############################
24
25 %define profile mobile
26 %define _with_tizen 1
27
28 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
29
30 Macros:
31 %profile mobile
32 %release_name Tizen3/Mobile
33
34 %tizen_version_major 3
35 %tizen_version_minor 0
36 %tizen_version_patch 0
37
38 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
39 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
40 %tizen %tizen_version
41 %vendor tizen
42 %_vendor tizen
43 %_with_tizen 1
44
45 %check exit 0
46 %run_check_section 0
47 %opensuse_bs 1
48 %_default_patch_fuzz   2
49 :Macros
50
51 ############################# display system ###################################
52
53 ########## display system selection ##########
54
55 # selection of the display system
56 # this selection is done for each repository
57 #
58 # flags combinations:
59 # |----------------------------------------------------
60 # | wayland |  x  | meaning
61 # |----------------------------------------------------
62 # |         |  1  | pure X11 platform(no wayland)
63 # |   1     |     | pure wayland platform (no X11)
64 # |   1     |  1  | wayland but X compatibility
65 # |         |     | no X and no wayland
66 # |----------------------------------------------------
67 #
68 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
69
70 ########## RDP flag ##########
71
72 # enable/disable RDP (remote desktop protocol) for wayland
73 # flag: _with_rdp, used in repositories
74 # Affects: weston, freerdp
75 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
76
77 ########## mesa activation ##########
78
79 %define _with_mesa 1
80 Macros:
81 %_with_mesa 1
82 :Macros
83
84 %ifarch %arm armv7l %{aarch64}
85    Substitute: mesa-devel pkgconfig(glesv2)
86    #FIXME Substitute: pkgconfig(egl)
87 %endif
88
89 ############################# wayland repositories #############################
90
91 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland"
92
93 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
94 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
95
96 %define _with_wayland 1
97 %define _with_rdp 1
98
99 Macros:
100 %_with_wayland 1
101 %_with_rdp 1
102 :Macros
103
104 %endif
105
106 ############################# X11 repositories #################################
107
108 %if "%_repository" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
109 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
110 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
111
112 %define _with_x 1
113
114 Macros:
115 %_with_x 1
116 :Macros
117
118 %endif
119
120 ############################# emulator repositories ############################
121
122 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
123
124 Prefer: mesa-libGLESv2
125 Prefer: libwayland-egl
126 Prefer: libgbm
127 Prefer: mesa-libGL
128 Prefer: mesa-libEGL
129 Prefer: emulator-yagl
130
131 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
132 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
133
134 %define _with_wayland 1
135 %define _with_emulator 1
136
137 Macros:
138 %_with_wayland 1
139 %_with_emulator 1
140 :Macros
141
142 %endif
143
144 ############################# misc config flags ################################
145
146 # This build macro controls the libdlog output. If enabled,
147 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
148 # logger FIFO. Affects: dlog.
149 # Owner: Mikko <mikko.ylinen@intel.com>
150 Macros:
151 %_with_dlog_to_systemd_journal 1
152 :Macros
153
154 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
155 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
156 # Then homescreen is supposed to deal with those notifications and display relevant popups.
157 # Affects: bluetooth-frwk
158 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
159 Macros:
160 %_with_bluetooth_frwk_libnotification 1
161 :Macros
162
163 # This build macro controls whether the OS uses
164 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
165 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
166 # Owner: Arron Wang <arron.wang@intel.com>
167 Macros:
168 %_with_neard_nfc 1
169 :Macros
170
171 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
172 # this -> Tizen Mobile is compiled with this option.
173 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
174 # FIXME: Why this extra define in the obs config ?
175 %define _with_pulseaudio_samsung_policy 1
176 Macros:
177 %_with_pulseaudio_samsung_policy 1
178 :Macros
179
180 # Activate introspection
181 # This is needed on GuPNP to build Rygel correctly in IVI
182 # Impacts potentially packages that use gobject-introspection
183 # Owner: Mikko <mikko.ylinen@intel.com>
184 Macros:
185 %_with_introspection 1
186 :Macros
187
188 ############################# build config #####################################
189
190 %define gcc_version 49
191 Macros:
192 %gcc_version 49
193 :Macros
194
195 ########## targets ##########
196
197 %ifarch i586
198 Target: i686-tizen-linux
199 %endif
200
201 %ifarch armv7hl
202 Target: armv7hl-tizen-linux
203 %endif
204
205 %ifarch armv7l
206 Target: armv7l-tizen-linux
207 %endif
208
209 %ifarch aarch64
210 Target: aarch64-tizen-linux
211 %endif
212
213 ########## cross build ##########/ex
214
215 %ifarch %arm armv7l
216 Hostarch: x86_64
217 # cross build support for the build hosts
218 Preinstall: qemu-linux-user-cross-arm
219 Keep: qemu-linux-user-cross-arm
220 %endif
221
222 %ifarch armv7hl
223 Preinstall: qemu-accel-armv7hl
224 Runscripts: qemu-accel-armv7hl
225 Preinstall: libmount libblkid libuuid
226 %endif
227
228 %ifarch armv7l
229 Preinstall: qemu-accel-armv7l-cross-arm
230 Runscripts: qemu-accel-armv7l-cross-arm
231 Preinstall: libmount libblkid libuuid
232 %endif
233
234 %ifarch aarch64
235 Hostarch: x86_64
236 Preinstall: qemu-linux-user-cross-arm
237 Keep: qemu-linux-user-cross-arm
238 Preinstall: qemu-accel-aarch64-cross-aarch64
239 Runscripts: qemu-accel-aarch64-cross-aarch64
240 Preinstall: libmount libblkid libuuid
241 %endif
242
243 ########## exports for different architectures ##########
244
245 ExportFilter: \.armv7l\.rpm$ armv7l
246 ExportFilter: \.aarch64\.rpm$ aarch64
247 ExportFilter: \.x86_64\.rpm$ x86_64
248
249 ########## buildroot config ##########
250
251 Preinstall: setup filesystem
252 RunScripts: setup
253
254 Preinstall: bash bzip2 coreutils diffutils grep rpm
255 Preinstall: glibc libacl libattr
256 Preinstall: libcap
257 Preinstall: libgcc_s1
258 Preinstall: libpopt sed tar zlib
259 Preinstall: libncurses libreadline
260 Preinstall: libelf libbz2
261 Preinstall: liblzma
262 Preinstall: nss nspr libfreebl3 libsoftokn3
263 Preinstall: libmagic
264 Preinstall: liblua
265 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
266 Preinstall: libsqlite
267 #Preinstall: rpm-security-plugin
268 Preinstall: util-linux
269
270 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux
271
272 Required: binutils gcc glibc rpm-build libtool
273
274 Support: glibc-locale
275 Support: perl
276 Support: hostname
277 Support: cpio findutils
278 Support: file findutils zlib bzip2
279 Support: gzip hostname net-tools
280 Support: make  patch sed  gawk tar grep coreutils pkg-config
281 Support: m4  tzdata
282 Support: util-linux
283 Support: less
284 Support: which  elfutils
285 Support: update-alternatives
286
287 # FIXME: TO REMOVE (? comes from IVI)
288 Support: gcc-c++
289
290 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
291 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
292 Keep: cpp gcc libstdc++
293 Keep: pam
294 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
295 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
296 Keep: make  gmp libcap groff cpio
297 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
298 Keep: kernel-headers  perl-libs perl
299 Keep: pkgconfig glib2 tizen-rpm-config
300 Keep: libmpc libmpfr libppl libgmp libppl_c
301 Keep: libcloog libppl libgmpxx
302 Keep: nss-softokn-freebl libmagic libmagic-data
303 Keep: setup
304 Keep: update-alternatives
305 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
306 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
307
308 Substitute: gettext gettext-tools
309
310 %ifarch x86_64
311 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
312 %else
313 Substitute: glibc-devel-32bit
314 %endif
315
316 ########## compilation flags ##########
317 Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__
318 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  -Wformat -Wformat-security -fmessage-length=0 -march=armv8-a+fp+simd+crc+crypto
319 Optflags: i686 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
320 Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2  -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer  -fipa-cp-clone