Blame SPECS/xorg-x11-server-Xwayland.spec

d05f4b
%global commit 280aac5a0ee09c45b17ec4be0681397f7c34c12e
d05f4b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
d05f4b
d05f4b
#global gitdate 20210201
d05f4b
%global pkgname %{?gitdate:xserver}%{!?gitdate:xwayland}
d05f4b
d05f4b
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins"
d05f4b
d05f4b
Summary:   Xwayland
d05f4b
Name:      xorg-x11-server-Xwayland
2936a4
Version:   21.1.3
2936a4
Release:   2%{?gitdate:.%{gitdate}git%{shortcommit}}%{?dist}
d05f4b
d05f4b
URL:       http://www.x.org
d05f4b
%if 0%{?gitdate}
d05f4b
Source0:   https://gitlab.freedesktop.org/xorg/%{pkgname}/-/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz
d05f4b
%else
d05f4b
Source0:   https://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.xz
d05f4b
%endif
d05f4b
2936a4
Patch1: 0001-xwayland-eglstream-Demote-EGLstream-device-warning.patch
2936a4
Patch2: 0002-xwayland-glamor-Change-errors-to-verbose-messages.patch
2936a4
Patch3: 0003-xwayland-glamor-Log-backend-selected-for-debug.patch
2936a4
Patch4: 0004-xwayland-eglstream-Prefer-EGLstream-if-available.patch
2936a4
2936a4
# CVE-2021-4011
2936a4
Patch10001: 0001-record-Fix-out-of-bounds-access-in-SwapCreateRegiste.patch
2936a4
# CVE-2021-4009
2936a4
Patch10002: 0002-xfixes-Fix-out-of-bounds-access-in-ProcXFixesCreateP.patch
2936a4
# CVE-2021-4010
2936a4
Patch10003: 0003-Xext-Fix-out-of-bounds-access-in-SProcScreenSaverSus.patch
2936a4
# CVE-2021-4008
2936a4
Patch10004: 0004-render-Fix-out-of-bounds-access-in-SProcRenderCompos.patch
d05f4b
d05f4b
License:   MIT
d05f4b
d05f4b
Requires: xorg-x11-server-common
d05f4b
Requires: libEGL
d05f4b
Requires: libepoxy >= 1.5.5
d05f4b
d05f4b
BuildRequires: gcc
d05f4b
BuildRequires: git-core
d05f4b
BuildRequires: meson
d05f4b
d05f4b
BuildRequires: wayland-devel
d05f4b
BuildRequires: pkgconfig(wayland-client) >= 1.3.0
d05f4b
BuildRequires: pkgconfig(wayland-protocols)
d05f4b
BuildRequires: pkgconfig(wayland-eglstream-protocols)
d05f4b
d05f4b
BuildRequires: pkgconfig(dmx)
d05f4b
BuildRequires: pkgconfig(epoxy) >= 1.5.5
d05f4b
BuildRequires: pkgconfig(fontenc)
d05f4b
BuildRequires: pkgconfig(libdrm) >= 2.4.0
d05f4b
BuildRequires: pkgconfig(libssl)
d05f4b
BuildRequires: pkgconfig(libtirpc)
d05f4b
BuildRequires: pkgconfig(pixman-1)
d05f4b
BuildRequires: pkgconfig(x11)
d05f4b
BuildRequires: pkgconfig(xau)
d05f4b
BuildRequires: pkgconfig(xdmcp)
d05f4b
BuildRequires: pkgconfig(xext)
d05f4b
BuildRequires: pkgconfig(xfixes)
d05f4b
BuildRequires: pkgconfig(xfont2)
d05f4b
BuildRequires: pkgconfig(xi)
d05f4b
BuildRequires: pkgconfig(xinerama)
d05f4b
BuildRequires: pkgconfig(xkbfile)
d05f4b
BuildRequires: pkgconfig(xmu)
d05f4b
BuildRequires: pkgconfig(xorg-macros) >= 1.17
d05f4b
BuildRequires: pkgconfig(xpm)
d05f4b
BuildRequires: pkgconfig(xrender)
d05f4b
BuildRequires: pkgconfig(xres)
d05f4b
BuildRequires: pkgconfig(xshmfence) >= 1.1
d05f4b
BuildRequires: pkgconfig(xtrans) >= 1.3.2
d05f4b
BuildRequires: pkgconfig(xtst)
d05f4b
BuildRequires: pkgconfig(xv)
d05f4b
BuildRequires: xorg-x11-proto-devel >= 7.7-10
d05f4b
d05f4b
BuildRequires: mesa-libGL-devel >= 9.2
d05f4b
BuildRequires: mesa-libEGL-devel
d05f4b
BuildRequires: mesa-libgbm-devel
d05f4b
d05f4b
BuildRequires: audit-libs-devel
d05f4b
BuildRequires: libselinux-devel >= 2.0.86-1
d05f4b
d05f4b
# libunwind is Exclusive for the following arches
d05f4b
%ifarch aarch64 %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64
d05f4b
%if !0%{?rhel}
d05f4b
BuildRequires: libunwind-devel
d05f4b
%endif
d05f4b
%endif
d05f4b
d05f4b
BuildRequires: pkgconfig(xcb-aux)
d05f4b
BuildRequires: pkgconfig(xcb-image)
d05f4b
BuildRequires: pkgconfig(xcb-icccm)
d05f4b
BuildRequires: pkgconfig(xcb-keysyms)
d05f4b
BuildRequires: pkgconfig(xcb-renderutil)
d05f4b
d05f4b
%description
d05f4b
Xwayland is an X server for running X clients under Wayland.
d05f4b
d05f4b
%package devel
d05f4b
Summary: Development package
d05f4b
Requires: pkgconfig
d05f4b
d05f4b
%description devel
d05f4b
The development package provides the developmental files which are
d05f4b
necessary for developing Wayland compositors using Xwayland.
d05f4b
d05f4b
%prep
d05f4b
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}}
d05f4b
d05f4b
%build
d05f4b
%meson \
d05f4b
        -Dxwayland_eglstream=true \
d05f4b
        -Ddefault_font_path=%{default_font_path} \
d05f4b
        -Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
d05f4b
        -Dxkb_output_dir=%{_localstatedir}/lib/xkb \
d05f4b
        -Dxcsecurity=true \
d05f4b
        -Dglamor=true \
d05f4b
        -Ddri3=true
d05f4b
d05f4b
%meson_build
d05f4b
d05f4b
%install
d05f4b
%meson_install
d05f4b
d05f4b
# Remove unwanted files/dirs
d05f4b
rm $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1*
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_libdir}/xorg
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_includedir}/xorg
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_datadir}/aclocal
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_localstatedir}/lib/xkb
d05f4b
d05f4b
%files
d05f4b
%{_bindir}/Xwayland
d05f4b
%{_mandir}/man1/Xwayland.1*
d05f4b
d05f4b
%files devel
d05f4b
%{_libdir}/pkgconfig/xwayland.pc
d05f4b
d05f4b
%changelog
2936a4
* Fri Jan  7 2022 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-2
2936a4
- CVE fix for: CVE-2021-4008 (#2038066), CVE-2021-4009 (#2038068),
2936a4
  CVE-2021-4010 (#2038071), CVE-2021-4011 (#2038073)
2936a4
2936a4
* Thu Dec  2 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-1
2936a4
- Rebase to 21.1.3 (rhbz#2015842)
2936a4
- Prefer EGLstream if both EGLstream and GBM are usable
2936a4
d05f4b
* Mon Aug  9 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-6
d05f4b
- Backport the latest fixes from Xwayland for EGLstream (rhbz#1977741)
d05f4b
d05f4b
* Tue Jun 29 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-5
d05f4b
- Require libepoxy >= 1.5.5 (rhbz#1976132)
d05f4b
d05f4b
* Mon Jun 21 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-4
d05f4b
- Fix a use-after-free in the previous changes for GLX
d05f4b
d05f4b
* Mon Jun 14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-3
d05f4b
- Backport fixes for GLX and EGLstream (#1961981)
d05f4b
d05f4b
* Thu Jun  03 2021 Tomas Pelka <tpelka@redhat.com> - 21.1.1-2
d05f4b
- bump release and rebuild to correctly trigger gating
d05f4b
d05f4b
* Wed Apr  14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-1
d05f4b
- xwayland 21.1.1 (CVE-2021-3472 / ZDI-CAN-1259)
d05f4b
d05f4b
* Thu Mar  18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.0-1
d05f4b
- xwayland 21.1.0
d05f4b
d05f4b
* Thu Mar  4 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.902-1
d05f4b
- xwayland 21.0.99.902
d05f4b
- Remove xdmcp, udev, udev_kms build options
d05f4b
- Stop overriding the vendor name, same as xorg-x11-server
d05f4b
d05f4b
* Thu Feb 18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.901-1
d05f4b
- xwayland 21.0.99.901
d05f4b
d05f4b
* Mon Feb  1 2021 Olivier Fourdan <ofourdan@redhat.com> - 1.20.99.1-0.1.20210201git5429791
d05f4b
- Initial import (#1912335).