Tizen:Mobile/TV: Add dbuspolicy value
[scm/meta/obs.git] / Tizen:IVI / _config
1 Patterntype: rpm-md comps
2 Release: <CI_CNT>.<B_CNT>
3 Support: build
4 Support: build-compare build-mkbaselibs
5 Support: rpmlint-mini rpmlint-tizen
6
7 FileProvides: /usr/sbin/groupadd pwdutils
8 Prefer: util-linux
9 #Prefer: nfc-manager
10 #Prefer: nfc-manager-devel
11 #Prefer: nfc-common-lib-devel
12 #Prefer: nfc-common-lib
13 #Prefer: nfc-client-lib
14 #Prefer: nfc-client-lib-devel
15 Prefer: libtapi-devel
16
17 # | wayland |  x  | meaning
18 # |----------------------------------------------------
19 # |         |  1  | pure X11 platform(no wayland)
20 # |   1     |     | pure wayland platform (no X11)
21 # |   1     |  1  | wayland but X compatibility
22 # |         |     | no X and no wayland
23 # |----------------------------------------------------
24
25 # mesa
26 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
27 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
28 %define _with_wayland 1
29 Macros:
30 %_with_wayland 1
31 :Macros
32
33 Prefer: mesa-libGLESv2
34 Prefer: libwayland-egl
35 Prefer: libgbm
36 Prefer: mesa-libGL
37 Prefer: mesa-libEGL
38
39 ############################# emulator repository ############################
40
41 %if "%_repository" == "emulator"
42
43 Prefer: emulator-yagl
44
45 %define _with_emulator 1
46
47 Macros:
48 %_with_emulator 1
49 :Macros
50
51 %endif
52
53 %define _with_qt5 1
54 %define _with_pulseaudio_samsung_policy 1
55 %define _with_tizen 1
56 %define _with_mesa 1
57 %define gcc_version 49
58 %define profile ivi
59
60 %ifarch i586
61 Target: i686-tizen-linux
62 %endif
63
64 %ifarch armv7hl
65 Target: armv7hl-tizen-linux
66 %endif
67
68 %ifarch armv7l
69 Target: armv7l-tizen-linux
70 %endif
71
72 %ifarch %arm armv7l
73 Hostarch: x86_64
74 # cross build support for the build hosts
75 Preinstall: qemu-linux-user-cross-arm
76 Keep: qemu-linux-user-cross-arm
77 %endif
78
79 %ifarch armv7hl
80 Preinstall: qemu-accel-armv7hl
81 Runscripts: qemu-accel-armv7hl
82 Preinstall: libmount libblkid libuuid
83 %endif
84 %ifarch armv7l
85 Preinstall: qemu-accel-armv7l-cross-arm
86 Runscripts: qemu-accel-armv7l-cross-arm
87 Preinstall: libmount libblkid libuuid
88 %endif
89 %ifarch armv7el
90 Preinstall: qemu-accel-armv7el
91 Runscripts: qemu-accel-armv7el
92 Preinstall: libmount libblkid libuuid
93 %endif
94
95 ExportFilter: ^qemu-linux-user-.*\.i686\.rpm$ . armv7l
96 ExportFilter: ^qemu-accel-armv7l.*\.i686\.rpm$ .  armv7l
97 ExportFilter: \.armv7l\.rpm$ armv7l
98 ExportFilter: \.x86_64\.rpm$ x86_64
99
100 Preinstall: setup filesystem
101 RunScripts: setup
102
103 Preinstall: bash bzip2 coreutils diffutils grep rpm
104 Preinstall: glibc libacl libattr
105 Preinstall: libcap
106 Preinstall: libgcc_s1
107 Preinstall: libpopt sed tar zlib
108 Preinstall: libncurses libreadline
109 Preinstall: libelf libbz2
110 Preinstall: liblzma
111 Preinstall: nss nspr libfreebl3 libsoftokn3
112 Preinstall: libmagic
113 Preinstall: liblua
114 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
115 Preinstall: libsqlite
116 Preinstall: rpm-security-plugin
117 Preinstall: util-linux
118
119 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux
120
121 Required: binutils gcc glibc rpm-build libtool
122
123 Support: glibc-locale
124 Support: perl
125 Support: hostname
126 Support: cpio findutils
127 Support: file findutils zlib bzip2
128 Support: gzip hostname net-tools
129 Support: make  patch sed  gawk tar grep coreutils pkg-config
130 Support: m4  tzdata
131 Support: util-linux
132 Support: less
133 Support: which  elfutils
134 Support: update-alternatives
135
136 # TO REMOVE
137 Support: gcc-c++
138
139 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
140 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
141 Keep: cpp gcc libstdc++
142 Keep: pam
143 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
144 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
145 Keep: make  gmp libcap groff cpio
146 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
147 Keep: kernel-headers  perl-libs perl
148 Keep: pkgconfig glib2 tizen-rpm-config
149 Keep: libmpc libmpfr libppl libgmp libppl_c
150 Keep: libcloog libppl libgmpxx
151 Keep: nss-softokn-freebl libmagic libmagic-data
152 Keep: setup
153 Keep: update-alternatives
154 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
155 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
156
157 Substitute: gettext gettext-tools
158
159
160 %ifarch x86_64
161 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
162 %else
163 Substitute: glibc-devel-32bit
164 %endif
165
166 %define __global_cflags -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security
167
168 Optflags: i686 %{__global_cflags} -m32 -march=core2 -mfpmath=sse -mssse3 -mtune=silvermont -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone
169 Optflags: x86_64 %{__global_cflags} -m64 -march=core2 -mssse3 -mtune=silvermont  -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone
170 Optflags: armv7l %{__global_cflags} -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -Wp,-D__SOFTFP__ -fmessage-length=0
171
172 Macros:
173
174 %profile ivi
175 %release_name Tizen IVI 3.0
176 %tizen_version_major 3
177 %tizen_version_minor 0
178 %tizen_version_patch 0
179 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
180 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
181 %tizen %tizen_version
182 %gcc_version 49
183 %_with_ivi 1
184 %_with_wayland 1
185 %_with_tizen 1
186 %_with_mesa 1
187 %_with_desktop 1
188 %check exit 0
189 %run_check_section 0
190 %opensuse_bs 1
191 %_default_patch_fuzz   2
192
193 # Macro used to enable qt5 in Tizen project
194 # Set qt5 to 1 also activate build of some sub-package
195 # eg: automotive-message-broker
196 # Tizen (Common, IVI, ...) can be delivered with or without qt5.
197 %_with_qt5 1
198
199 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which
200 # needs OSP . In IVI, this macro permits to address bluetooth notifications
201 # (using C API) to notification-service daemon. Then homescreen is supposed
202 # to deal with those notifications and display relevant popups.
203 # Affects: bluetooth-frwk
204 %_with_bluetooth_frwk_libnotification 1
205
206 # Macro used to control how the policy interfaces (using either the Samsung
207 # solution (%_with_audio_session_manager) or Murphy with Samsung ASM
208 # frontend (%_with_audio_session_manager_with_murphy)
209 # Affects: libmm-sound
210 %_with_audio_session_manager_with_murphy 1
211
212 # This build macro controls whether the OS uses legacy nfc-manager or
213 # neard enabled nfc-manager-neard. If enabled, nfc-manager-neard is used.
214 # Affects: nfc CAPI, emulator-plugin-nfc
215 %_with_neard_nfc 1
216
217 # Enable certain packages (for example, libgee and glib) to be compiled
218 # with introspection enabled, which was required in IVI to compile Vala
219 # source.
220 %_with_introspection 1
221
222 # This selects whether or not to use ICO system controller or Murphy
223 # replacement.
224 # Affects: murphy
225 %_with_icosyscon 1
226
227 # Uses mobile-specific Samsung patches for PulseAudio.
228 # Affects: pulseaudio, libmm-sound
229 %_with_pulseaudio_samsung_policy 1
230
231 %vendor tizen
232 %_vendor tizen