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

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