Include patch in srpm on fedora too but only apply it on EL9
This commit is contained in:
parent
4a34f37718
commit
0d6cf602b6
1 changed files with 8 additions and 4 deletions
12
12to11.spec
12
12to11.spec
|
|
@ -25,10 +25,11 @@ URL: https://github.com/fish4terrisa-MSDSM/12to11
|
||||||
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
# EL9 ships wayland 1.21, which lacks WL_SUBCOMPOSITOR_ERROR_BAD_PARENT
|
# EL9 ships wayland 1.21, which lacks WL_SUBCOMPOSITOR_ERROR_BAD_PARENT
|
||||||
# (added in wayland 1.22). Only needed on EL9.
|
# (added in wayland 1.22). Patch0 must be declared unconditionally:
|
||||||
%if 0%{?rhel} == 9
|
# COPR's SRPM import parses this spec on Fedora (where %%{?rhel} is
|
||||||
|
# undefined), so a conditional Patch tag would never be collected.
|
||||||
|
# The patch is only applied on EL9 (see %%prep).
|
||||||
Patch0: 12to11-1.0.0-wayland-1.21-compat.patch
|
Patch0: 12to11-1.0.0-wayland-1.21-compat.patch
|
||||||
%endif
|
|
||||||
|
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
@ -80,7 +81,10 @@ fish4terrisa-MSDSM; the original SourceForge project has been
|
||||||
unmaintained since 2022.
|
unmaintained since 2022.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -N
|
||||||
|
%if 0%{?rhel} == 9
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Export the RPM build flags: the Makefile uses CFLAGS ?= / LDFLAGS +=
|
# Export the RPM build flags: the Makefile uses CFLAGS ?= / LDFLAGS +=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue