Added meta for Tizen:Common and Tizen:IVI
[scm/meta/obs.git] / Tizen:Common / _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
8 %global aarch64  aarch64 arm64 armv8
9
10 %ifarch ${aarch64}
11 %define _arch aarch64
12 %endif
13
14 FileProvides: /usr/sbin/groupadd pwdutils
15 Prefer: util-linux
16 Prefer: nfc-manager
17 Prefer: nfc-manager-devel
18 Prefer: nfc-common-lib-devel
19 Prefer: nfc-common-lib
20 Prefer: nfc-client-lib
21 Prefer: nfc-client-lib-devel
22 Prefer: libtapi-devel
23
24 #| wayland |  x  | meaning
25 #|---------------------------
26 #|   0     |  1  | pure X11 platform(no wayland)
27 #|   1     |  0  | pure wayland platform (no X11)
28 #|   1     |  1  | wayland but X compatibility
29 #|   0     |  0  | no X and no wayland
30
31 %ifarch %arm armv7l %{aarch64}
32 Substitute: mesa-devel pkgconfig(glesv2)
33 Substitute: pkgconfig(egl)
34 %endif
35
36 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
37 # mesa
38 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
39 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
40 %define _with_wayland 1
41 Macros:
42 %_with_wayland 1
43 :Macros
44 %endif
45
46 %if "%_repository" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
47 # mesa
48 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
49 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
50 %define _with_x 1
51 Macros:
52 %_with_x 1
53 :Macros
54 %endif
55
56 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
57 # mesa
58 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
59 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
60 %define _with_wayland 1
61 %define _with_x 1
62 Macros:
63 %_with_wayland 1
64 %_with_x 1
65 :Macros
66 %endif
67
68 %if "%_repository" == "emulator"
69 Prefer: emulator-yagl
70 Prefer: -mesa
71 %else
72 Prefer: mesa
73 Prefer: -emulator-yagl
74 %end
75
76 Prefer: libpci-devel
77
78 %define _with_pulseaudio_samsung_policy 1
79 %define _with_tizen 1
80 %define _with_mesa 1
81 %define gcc_version 48
82 %define profile common
83
84 %ifarch i586
85 Target: i686-tizen-linux
86 %endif
87
88 %ifarch armv7hl
89 Target: armv7hl-tizen-linux
90 %endif
91
92 %ifarch armv7l
93 Target: armv7l-tizen-linux
94 %endif
95
96 %ifarch aarch64
97 Target: aarch64-tizen-linux
98 %endif
99
100 %ifarch %arm armv7l
101 Hostarch: x86_64
102 # cross build support for the build hosts
103 Preinstall: qemu-linux-user-cross-arm
104 Keep: qemu-linux-user-cross-arm
105 %endif
106
107 %ifarch armv7hl
108 Preinstall: qemu-accel-armv7hl
109 Runscripts: qemu-accel-armv7hl
110 Preinstall: util-linux libmount libblkid libuuid
111 %endif
112 %ifarch armv7l
113 Preinstall: qemu-accel-armv7l
114 Runscripts: qemu-accel-armv7l
115 Preinstall: util-linux libmount libblkid libuuid
116 %endif
117 %ifarch armv7el
118 Preinstall: qemu-accel-armv7el
119 Runscripts: qemu-accel-armv7el
120 Preinstall: util-linux libmount libblkid libuuid
121 %endif
122 %ifarch aarch64
123 Preinstall: qemu-accel-aarch64-cross-arm
124 Runscripts: qemu-accel-aarch64-cross-arm
125 Preinstall: util-linux libmount libblkid libuuid
126 %endif
127
128 %ifarch aarch64
129 Substitute: cross-aarch64-binutils  binutils
130 Substitute: cross-aarch64-gcc48-icecream-backend gcc
131 Preinstall: setup filesystem
132 Preinstall: qemu-accel-aarch64-cross-arm
133 Runscripts: qemu-accel-aarch64-cross-arm setup filesystem
134
135 Preinstall: rpm rpm-build pam db4
136 Preinstall: libncurses libmpc libmpfr libgmp cloog-isl
137 Preinstall: python
138
139
140 #hack to start build without proper binfmt
141 Preinstall: !bbb-cross-arm
142 Ignore:     bbb-cross-arm
143 Preinstall: bash
144
145
146 #provides until we can build libs correctly
147 #FileProvides: libc.so.6 glibc
148 #FileProvides: libc.so.6(GLIBC_2.4) glibc
149 #FileProvides: libc.so.6(GLIBC_2.6) glibc
150 #FileProvides: libc.so.6(GLIBC_2.7) glibc
151 #FileProvides: libc.so.6(GLIBC_2.8) glibc
152 #FileProvides: libc.so.6(GLIBC_2.11) glibc
153 #FileProvides: libc.so.6(GLIBC_2.15) glibc
154 #FileProvides: libc.so.6(GLIBC_2.17) glibc
155 #FileProvides: ld-linux.so.3 glibc
156 #FileProvides: ld-linux.so.3(GLIBC_2.4) glibc
157 #FileProvides: ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) glibc
158 #FileProvides: ld-linux-aarch64.so.1()(64bit) glibc
159 #FileProvides: libdl.so.2 glibc
160 #FileProvides: libdl.so.2(GLIBC_2.4) glibc
161 #FileProvides: libcrypt.so.1 glibc
162 #FileProvides: libcrypt.so.1(GLIBC_2.4) glibc
163 #FileProvides: libm.so.6 glibc
164 #FileProvides: libm.so.6(GLIBC_2.4) glibc
165 #FileProvides: libpthread.so.0 glibc
166 #FileProvides: libpthread.so.0(GLIBC_2.4) glibc
167 #FileProvides: libacl.so.1 acl
168 #FileProvides: liblua.so.5.1 liblua
169 #FileProvides: liblzma.so.5 xz
170 #FileProvides: libpopt.so.0 popt
171 #FileProvides: libelf.so.1(ELFUTILS_1.0) libelf
172 #FileProvides: libnsl.so.1 glibc
173 #FileProvides: libnsl.so.1(GLIBC_2.4) glibc
174 #FileProvides: libutil.so.1 glibc
175 #FileProvides: libutil.so.1(GLIBC_2.4) glibc
176 #FileProvides: libpopt.so.0(LIBPOPT_0) popt
177 #FileProvides: libacl.so.1(ACL_1.0) acl
178 #FileProvides: libz.so.1(ZLIB_1.2.3.3) zlib
179 #FileProvides: libmagic.so.1 libmagic
180 #FileProvides: libgmp.so.10 libgmp
181 #FileProvides: libmpc.so.3 libmpc
182 #FileProvides: libmpfr.so.4 libmpfr
183 #FileProvides: libnspr4.so nspr
184 #FileProvides: libplc4.so nspr
185 #FileProvides: libplds4.so nspr
186 #FileProvides: libsqlite3.so.0 sqlite
187 #FileProvides: libattr.so.1 attr
188 #FileProvides: libattr.so.1(ATTR_1.0) attr
189 #FileProvides: libsmack.so.1 smack
190 #FileProvides: libsmack.so.1(LIBSMACK_1.0) smack
191 #FileProvides: libxml2.so.2 libxml2
192 #FileProvides: libxml2.so.2(LIBXML2_2.4.30) libxml2
193 #FileProvides: libxml2.so.2(LIBXML2_2.5.0) libxml2
194 #FileProvides: libxml2.so.2(LIBXML2_2.6.0) libxml2
195 #FileProvides: librpm.so.3()(64bit) rpm
196 #FileProvides: librpmio.so.3()(64bit) rpm
197 %endif
198
199 ExportFilter: ^qemu-linux-user.*\.x86_64\.rpm$ . armv7l armv7hl aarch64
200
201 ExportFilter: ^qemu-accel-armv7hl.*\.i686\.rpm$ .  armv7hl
202 ExportFilter: ^qemu-accel-armv7l.*\.i686\.rpm$ .  armv7l
203 ExportFilter: ^qemu-accel-aarch64.*\.i686\.rpm$ .  aarch64
204 ExportFilter: \.armv7l\.rpm$ armv7l
205 ExportFilter: \.aarch64\.rpm$ aarch64
206 ExportFilter: \.x86_64\.rpm$ x86_64
207
208
209 Preinstall: setup filesystem
210 RunScripts: setup
211
212 Preinstall: bash bzip2 coreutils diffutils grep rpm
213 Preinstall: glibc libacl libattr
214 Preinstall: libcap
215 Preinstall: libgcc_s1
216 Preinstall: libpopt sed tar zlib
217 Preinstall: libncurses libreadline
218 Preinstall: libelf libbz2
219 Preinstall: liblzma
220 Preinstall: nss nspr libfreebl3 libsoftokn3
221 Preinstall: libmagic
222 Preinstall: liblua
223 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
224 Preinstall: libsqlite
225 Preinstall: rpm-security-plugin
226
227 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux
228
229 %ifarch aarch64
230 Support: cross-aarch64-binutils cross-aarch64-gcc48-icecream-backend
231 %endif
232 Required: binutils gcc glibc rpm-build libtool
233
234 Support: perl
235 Support: hostname
236 Support: cpio findutils
237 Support: file findutils zlib bzip2
238 Support: gzip hostname net-tools
239 Support: make  patch sed  gawk tar grep coreutils pkg-config
240 Support: m4  tzdata
241 Support: util-linux
242 Support: less
243 Support: which  elfutils
244 Support: update-alternatives
245
246 # TO REMOVE
247 Support: gcc-c++
248
249 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
250 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
251 Keep: cpp gcc libstdc++
252 Keep: pam
253 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
254 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
255 Keep: make  gmp libcap groff cpio
256 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
257 Keep: kernel-headers  perl-libs perl
258 Keep: pkgconfig glib2 tizen-rpm-config
259 Keep: libmpc libmpfr libppl libgmp libppl_c
260 Keep: libcloog libppl libgmpxx
261 Keep: nss-softokn-freebl libmagic libmagic-data
262 Keep: setup
263 Keep: update-alternatives
264 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
265 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
266
267 Substitute: gettext gettext-tools
268
269
270 %ifarch x86_64
271 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
272 %else
273 Substitute: glibc-devel-32bit
274 %endif
275
276
277 #%__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
278
279 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
280
281 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=vfpv3 -mfloat-abi=softfp -D__SOFTFP__
282
283 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  -Wformat -Wformat-security -fmessage-length=0
284
285 Macros:
286
287 %profile common
288
289 %_with_pulseaudio_samsung_policy 1
290 %_with_tizen 1
291 %_with_mesa 1
292 %check exit 0
293 %run_check_section 0
294 %opensuse_bs 1
295 %_default_patch_fuzz   2
296 %_with_dlog_to_systemd_journal 1
297 %_with_bluetooth_frwk_libnotification 1
298 %_with_neard_nfc 1
299
300 %tizen_version 3.0
301 %tizen 3.0
302
303 %vendor tizen
304 %_vendor tizen
305