Project Configuration of SUSE:SLE-15-SP4:GA
181
1
Patterntype: rpm-md ymp
2
%if "%_repository" == "images"
3
Type: kiwi
4
Repotype: slepool:nobuildid
5
Patterntype: none
6
Prefer: sles-release
7
Support: release-compare
8
BuildFlags: obsgendiff
9
Substitute: kiwi python3-kiwi
10
%endif
11
12
%if "%_repository" == "containerfile"
13
Type: docker
14
Prefer: sles-release
15
Preinstall: release-compare
16
# KUBEVIRTFROM is passed to container Dockerfiles using the --build-arg option, e.g.
17
# docker build --build-arg KUBEVIRTFROM=suse/sle15:15.4 ...
18
BuildFlags: dockerarg:KUBEVIRTFROM=suse/sle15:15.4
19
%endif
20
21
%define current_milestone Snapshot-202204-3
22
Macros:
23
%current_milestone Snapshot-202204-3
24
:Macros
25
26
# COMMON BEGIN common part
27
%define sle_version 150400
28
Macros:
29
%sle_version 150400
30
:Macros
31
32
# define a prefix for all package builds in SLE 15 SP4 to handle migration of packages
33
# with identical version but lower release version than in a preceding codestream
34
Release: <CI_CNT>.<B_CNT> spec:%sle_version.<CI_CNT>.<B_CNT>
35
36
# copy tftpboot-installation files across all archs
37
%ifarch aarch64 ppc64le s390x x86_64
38
ExportFilter: ^tftpboot-installation-SLE-15-SP4-aarch64.*\.rpm$ . ppc64le s390x x86_64
39
ExportFilter: ^tftpboot-installation-SLE-15-SP4-ppc64le.*\.rpm$ . aarch64 s390x x86_64
40
ExportFilter: ^tftpboot-installation-SLE-15-SP4-s390x.*\.rpm$ . aarch64 ppc64le x86_64
41
ExportFilter: ^tftpboot-installation-SLE-15-SP4-x86_64.*\.rpm$ . aarch64 ppc64le s390x
42
%endif
43
44
Prefer: -python3-cairo-devel -python2-cairo-devel -python3-gobject2-devel
45
Prefer: -keyutils-devel-32bit -gtk4-devel-32bit
46
47
# needed due to SR#249037
48
Prefer: -libgcrypt-devel-32bit
49
50
# from Factory: PHP requires php-sapi, which can be provided by multiple packages. We prefer -cli, related to the specific PHP version
51
# needed due to SR#249799
52
Prefer: php8:php8-cli
53
54
# needed after php7 update (SR#255237)
55
Prefer: php7:php7-cli
56
57
# required due to php-composer2 SR#263267
58
Prefer: -php7
59
60
# needed due to libxml2 (SR#255607)
61
Prefer: -python3-libxml2-python
62
Substitute: python3-libxml2-python python3-libxml2
63
64
# required after SR#249636
65
Prefer: -libavcodec-devel -libavfilter-devel -libavformat-devel -libavutil-devel
66
67
# required after luajit SR#255872
68
Prefer: -lua51-luajit-devel
69
70
# required after zstd SR#256594
71
Prefer: -libzstd-devel-32bit
72
73
# required due to libsoup2 SR#256752
74
Prefer: -libsoup2-devel-32bit
75
76
Prefer: java-17-openjdk-devel java-17-openjdk java-17-openjdk-headless java-17-openjdk-javadoc
77
78
# required due to systemd SR#258723
79
Prefer: -libfdisk-devel-32bit
80
81
# required after libpcap SR#249500
82
# required due to umockdev SR#259947
83
Prefer: -libpcap-devel-32bit
84
85
# must be removed after fix for bsc#1193711 is merged
86
# can also be removed in case bsc#1194749 is fully fixed
87
Support: python-rpm-macros
88
89
# required for suseconnect-ng replacing SUSEConnect and zypper-migration-plugin
90
Prefer: -SUSEConnect
91
Prefer: -zypper-migration-plugin
92
93
# IBS is preferring literal matches over provides, therefore substituting with suseconnect-ng
94
Substitute: SUSEConnect suseconnect-ng
95
Substitute: zypper-migration-plugin suseconnect-ng
96
97
# Fix fot Qt stack update
98
Prefer: -libqt5-qtremoteobjects-devel-32bit
99
Prefer: -libqt5-qtspeech-devel-32bit
100
Prefer: -xcb-util-cursor-devel-32bit
101
102
# from Factory:
103
# pipewire has a jack compatible implementation - but for now we prefer the real jack
104
Prefer: -pipewire-libjack-0_3-devel libjack0
105
106
# required due to libyui SR#263810
107
Prefer: -libyui-ncurses15 -libyui-ncurses-pkg15 -libyui-ncurses-rest-api15 -libyui-qt15 -libyui-qt-graph15 -libyui-qt-pkg15 -libyui-qt-rest-api15
108
109
# required due to samba SR#262961
110
Prefer: -libsmbclient0 -libwbclient0 -libsmbclient-devel -libwbclient-devel -samba-devel-32bit -libndr-krb5pac-devel -libndr-nbt-devel
111
112
# required due to liburing2 SR#263841
113
Prefer: -liburing2-devel
114
115
# required due to php-composer2 SR#263267
116
Prefer: -php7
117
118
# required for systemd SR#263844
119
Substitute: libudev-devel systemd-devel
120
Substitute: libudev-mini-devel systemd-mini-devel
121
Prefer: -libudev-mini-devel
122
Prefer: -libudev-devel
123
Prefer: -libudev-devel-32bit
124
125
# required for some Public Cloud and JeOS flavours to correctly resolve the zypper-lifecycle-plugin
126
# dependency on /usr/bin/ruby, as ruby2.5 isn't pulled in by SUSEConnect anymore.
127
FileProvides: /usr/bin/ruby ruby2.5
128
129
%define skip_python2 1
130
%define _without_python2 1
131
132
Macros:
133
## PYTHON MACROS BEGIN
134
# order of %pythons is important: The last flavor overrides any operation on conflicting files and definitions during expansions,
135
# making it the "default" in many cases --> keep the primary python3 provider at the end.
136
%pythons %{?!skip_python3:python3}
137
%add_python() %{expand:%%define pythons %1 %pythons}
138
139
%_without_python2 1
140
:Macros
141
142
Prefer: -python -python-base
143
144
# IBS is pulling in the outdated txt2tags instead of python3-txt2tags to build thunderbolt-user-space (bsc#1196688)
145
Substitute: txt2tags python3-txt2tags
146
147
# required due to bash SR#265536
148
FileProvides: /bin/bash bash
149
FileProvides: /bin/sh bash-sh busybox-sh
150
Prefer: bash-sh
151
Preinstall: bash bash-sh
152
Prefer: -busybox
153
154
# update the export filters for qemu firmware files (SR#267079)
155
%ifarch x86_64
156
ExportFilter: ^qemu-ipxe.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 ppc64le s390x riscv64
157
ExportFilter: ^qemu-seabios.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 ppc64le s390x riscv64
158
ExportFilter: ^qemu-vgabios.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 ppc64le s390x riscv64
159
ExportFilter: ^qemu-sgabios.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 ppc64le s390x riscv64
160
ExportFilter: ^qemu-skiboot.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 s390x riscv64
161
ExportFilter: ^qemu-SLOF.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 s390x riscv64
162
ExportFilter: ^qemu-microvm.*\.noarch\.rpm$ . i586 armv7l ppc ppc64 ppc64le s390x riscv64
163
%endif
164
165
# remove it after bsc#1197441 fix
166
#%ifarch aarch64
167
#Ignore: SLES15-SP4-CHOST-BYOS:Aliyun
168
#BuildFlags: excludebuild:SLES15-SP4-CHOST-BYOS:Aliyun
169
#Ignore: SLES15-SP4-CHOST-BYOS:OpenStack
170
#BuildFlags: excludebuild:SLES15-SP4-CHOST-BYOS:OpenStack
171
#%endif
172
173
# required for openblas (SR#269449)
174
Prefer: -openblas-devel
175
Substitute: openblas-devel libopenblas_pthreads-devel
176
177
## Smar additions ##
178
179
# To resolve a have a choice.
180
Prefer: postgresql14-devel
181