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