convert patch macro use to the most compatible syntax

epel8
Tom Callaway 2 years ago
parent 18c2b5a791
commit d44cb8f8a3

@ -888,91 +888,91 @@ udev.
%setup -q -n chromium-%{version} %setup -q -n chromium-%{version}
### Chromium Fedora Patches ### ### Chromium Fedora Patches ###
%patch0 -p1 -b .sandboxpie %patch -P0 -p1 -b .sandboxpie
%patch1 -p1 -b .etc %patch -P1 -p1 -b .etc
%patch2 -p1 -b .gnsystem %patch -P2 -p1 -b .gnsystem
%patch5 -p1 -b .nozlibmangle %patch -P5 -p1 -b .nozlibmangle
%patch6 -p1 -b .nounrar %patch -P6 -p1 -b .nounrar
%patch7 -p1 -b .widevine-hack %patch -P7 -p1 -b .widevine-hack
%patch8 -p1 -b .widevine-other-locations %patch -P8 -p1 -b .widevine-other-locations
%patch9 -p1 -b .widevine-no-download %patch -P9 -p1 -b .widevine-no-download
%patch11 -p1 -b .py3 %patch -P11 -p1 -b .py3
%patch20 -p1 -b .disable-font-test %patch -P20 -p1 -b .disable-font-test
%if 0%{?fedora} || 0%{?rhel} >= 8 %if 0%{?fedora} || 0%{?rhel} >= 8
%patch52 -p1 -b .unbundle-zlib %patch -P52 -p1 -b .unbundle-zlib
%endif %endif
%patch53 -p1 -b .limits-header %patch -P53 -p1 -b .limits-header
%patch56 -p1 -b .missing-cstdint %patch -P56 -p1 -b .missing-cstdint
%patch57 -p1 -b .missing-cstring %patch -P57 -p1 -b .missing-cstring
%if ! %{bundleminizip} %if ! %{bundleminizip}
%patch61 -p1 -b .system-minizip %patch -P61 -p1 -b .system-minizip
%endif %endif
%patch65 -p1 -b .java-only-allowed %patch -P65 -p1 -b .java-only-allowed
%patch69 -p1 -b .update-rjsmin-to-1.2.0 %patch -P69 -p1 -b .update-rjsmin-to-1.2.0
%patch70 -p1 -b .update-six-to-1.16.0 %patch -P70 -p1 -b .update-six-to-1.16.0
%patch82 -p1 -b .remoting-no-tests %patch -P82 -p1 -b .remoting-no-tests
%if ! %{bundlebrotli} %if ! %{bundlebrotli}
%patch89 -p1 -b .system-brotli %patch -P89 -p1 -b .system-brotli
%endif %endif
%patch90 -p1 -b .disable-GlobalMediaControlsCastStartStop %patch -P90 -p1 -b .disable-GlobalMediaControlsCastStartStop
%if ! %{bundleopus} %if ! %{bundleopus}
%patch91 -p1 -b .system-opus %patch -P91 -p1 -b .system-opus
%endif %endif
%patch92 -p1 -b .gtk-prefers-color-scheme %patch -P92 -p1 -b .gtk-prefers-color-scheme
# Fedora branded user agent # Fedora branded user agent
%if 0%{?fedora} %if 0%{?fedora}
%patch12 -p1 -b .fedora-user-agent %patch -P12 -p1 -b .fedora-user-agent
%endif %endif
%if ! %{bundleffmpegfree} %if ! %{bundleffmpegfree}
%patch114 -p1 -b .system-ffmppeg %patch -P114 -p1 -b .system-ffmppeg
%patch115 -p1 -b .prop-codecs %patch -P115 -p1 -b .prop-codecs
%patch116 -p1 -b .first_dts %patch -P116 -p1 -b .first_dts
%if 0%{?fedora} == 36 %if 0%{?fedora} == 36
%patch117 -p1 -b .revert-new-channel-layout-api %patch -P117 -p1 -b .revert-new-channel-layout-api
%endif %endif
%endif %endif
# EPEL specific patches # EPEL specific patches
%if 0%{?rhel} == 7 %if 0%{?rhel} == 7
%patch100 -p1 -b .el7-memfd-fcntl-include %patch -P100 -p1 -b .el7-memfd-fcntl-include
%patch101 -p1 -b .wayland-strndup-error %patch -P101 -p1 -b .wayland-strndup-error
%patch103 -p1 -b .epel7-header-workarounds %patch -P103 -p1 -b .epel7-header-workarounds
%patch104 -p1 -b .el7cups %patch -P104 -p1 -b .el7cups
%patch105 -p1 -b .el7-old-libdrm %patch -P105 -p1 -b .el7-old-libdrm
%patch106 -p1 -b .el7-erase-fix %patch -P106 -p1 -b .el7-erase-fix
%patch107 -p1 -b .el7-extra-operator-equalequal %patch -P107 -p1 -b .el7-extra-operator-equalequal
%endif %endif
%patch130 -p1 -b .VirtualCursor-std-layout %patch -P130 -p1 -b .VirtualCursor-std-layout
%patch146 -p1 -b .LargerThan4k %patch -P146 -p1 -b .LargerThan4k
%if %{use_qt} %if %{use_qt}
%patch121 -p1 -b .enable-allowqt %patch -P121 -p1 -b .enable-allowqt
%endif %endif
%patch122 -p1 -b .gcc13 %patch -P122 -p1 -b .gcc13
# Feature specific patches # Feature specific patches
%if %{use_vaapi} %if %{use_vaapi}
%patch202 -p1 -b .accel-mjpeg %patch -P202 -p1 -b .accel-mjpeg
%patch205 -p1 -b .vaapi-intel-fix %patch -P205 -p1 -b .vaapi-intel-fix
%patch206 -p1 -b .wayland-vaapi %patch -P206 -p1 -b .wayland-vaapi
%endif %endif
%if 0%{?rhel} >= 8 %if 0%{?rhel} >= 8
%patch300 -p1 -b .disblegnomekeyring %patch -P300 -p1 -b .disblegnomekeyring
%endif %endif
# Change shebang in all relevant files in this directory and all subdirectories # Change shebang in all relevant files in this directory and all subdirectories

Loading…
Cancel
Save