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

2a49a8
%global commit 280aac5a0ee09c45b17ec4be0681397f7c34c12e
2a49a8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2a49a8
2a49a8
#global gitdate 20210201
2a49a8
%global pkgname %{?gitdate:xserver}%{!?gitdate:xwayland}
2a49a8
2a49a8
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins"
2a49a8
2a49a8
Summary:   Xwayland
2a49a8
Name:      xorg-x11-server-Xwayland
2a49a8
Version:   21.1.1
5f5628
Release:   3%{?gitdate:.%{gitdate}git%{shortcommit}}%{?dist}
2a49a8
2a49a8
URL:       http://www.x.org
2a49a8
%if 0%{?gitdate}
2a49a8
Source0:   https://gitlab.freedesktop.org/xorg/%{pkgname}/-/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz
2a49a8
%else
2a49a8
Source0:   https://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.xz
2a49a8
%endif
5f5628
5f5628
Patch1:  0001-xwayland-Move-dmabuf-interface-to-common-glamor-code.patch
5f5628
Patch2:  0002-xwayland-move-formats-and-modifiers-functions-to-com.patch
5f5628
Patch3:  0003-xwayland-Add-check_flip-glamor-backend-function.patch
5f5628
Patch4:  0004-xwayland-implement-pixmap_from_buffers-for-the-eglst.patch
5f5628
Patch5:  0005-xwayland-eglstream-fix-X11-rendering-to-flipping-GL-.patch
5f5628
Patch6:  0006-xwayland-eglstream-Check-buffer-creation.patch
5f5628
Patch7:  0007-xwayland-Check-buffer-prior-to-attaching-it.patch
5f5628
Patch8:  0008-glamor-Dump-backtrace-on-GL-error.patch
5f5628
Patch9:  0009-xwayland-glamor-Add-return-status-to-post_damage.patch
5f5628
Patch10: 0010-xwayland-eglstream-Check-framebuffer-status.patch
5f5628
Patch11: 0011-xwayland-eglstream-Small-refactoring.patch
5f5628
Patch12: 0012-xwayland-eglstream-Add-more-error-checking.patch
5f5628
Patch13: 0013-xwayland-eglstream-Dissociate-pending-stream-from-wi.patch
5f5628
Patch14: 0014-xwayland-eglstream-Keep-a-reference-to-the-pixmap.patch
5f5628
Patch15: 0015-xwayland-eglstream-Drop-the-list-of-pending-streams.patch
5f5628
Patch16: 0016-xwayland-eglstream-Do-not-commit-without-surface.patch
5f5628
Patch17: 0017-xwayland-eglstream-Fix-calloc-malloc.patch
5f5628
Patch18: 0018-xwayland-eglstream-Check-eglSwapBuffers.patch
5f5628
Patch19: 0019-xwayland-eglstream-Do-not-always-increment-pixmap-re.patch
5f5628
Patch20: 0020-xwayland-eglstream-Set-ALU-to-GXCopy-for-blitting.patch
5f5628
Patch21: 0021-xwayland-eglstream-allow-commits-to-dma-buf-backed-p.patch
5f5628
Patch22: 0022-xwayland-eglstream-flush-stream-after-eglSwapBuffers.patch
5f5628
Patch23: 0023-xwayland-Add-preferred-GLVND-vendor-to-xwl_screen.patch
5f5628
Patch24: 0024-xwayland-eglstream-Use-nvidia-for-GLVND.patch
5f5628
Patch25: 0025-xwayland-eglstream-Log-when-GL_OES_EGL_image-is-miss.patch
5f5628
Patch26: 0026-glx-don-t-create-implicit-GLXWindow-if-one-already-e.patch
5f5628
Patch27: 0027-glx-Set-ContextTag-for-all-contexts.patch
5f5628
2a49a8
License:   MIT
2a49a8
2a49a8
Requires: xorg-x11-server-common
2a49a8
Requires: libEGL
2a49a8
2a49a8
BuildRequires: gcc
2a49a8
BuildRequires: git-core
2a49a8
BuildRequires: meson
2a49a8
2a49a8
BuildRequires: wayland-devel
2a49a8
BuildRequires: pkgconfig(wayland-client) >= 1.3.0
2a49a8
BuildRequires: pkgconfig(wayland-protocols)
2a49a8
BuildRequires: pkgconfig(wayland-eglstream-protocols)
2a49a8
2a49a8
BuildRequires: pkgconfig(dmx)
2a49a8
BuildRequires: pkgconfig(epoxy)
2a49a8
BuildRequires: pkgconfig(fontenc)
2a49a8
BuildRequires: pkgconfig(libdrm) >= 2.4.0
2a49a8
BuildRequires: pkgconfig(libssl)
2a49a8
BuildRequires: pkgconfig(libtirpc)
2a49a8
BuildRequires: pkgconfig(pixman-1)
2a49a8
BuildRequires: pkgconfig(x11)
2a49a8
BuildRequires: pkgconfig(xau)
2a49a8
BuildRequires: pkgconfig(xdmcp)
2a49a8
BuildRequires: pkgconfig(xext)
2a49a8
BuildRequires: pkgconfig(xfixes)
2a49a8
BuildRequires: pkgconfig(xfont2)
2a49a8
BuildRequires: pkgconfig(xi)
2a49a8
BuildRequires: pkgconfig(xinerama)
2a49a8
BuildRequires: pkgconfig(xkbfile)
2a49a8
BuildRequires: pkgconfig(xmu)
2a49a8
BuildRequires: pkgconfig(xorg-macros) >= 1.17
2a49a8
BuildRequires: pkgconfig(xpm)
2a49a8
BuildRequires: pkgconfig(xrender)
2a49a8
BuildRequires: pkgconfig(xres)
2a49a8
BuildRequires: pkgconfig(xshmfence) >= 1.1
2a49a8
BuildRequires: pkgconfig(xtrans) >= 1.3.2
2a49a8
BuildRequires: pkgconfig(xtst)
2a49a8
BuildRequires: pkgconfig(xv)
2a49a8
BuildRequires: xorg-x11-proto-devel >= 7.7-10
2a49a8
2a49a8
BuildRequires: mesa-libGL-devel >= 9.2
2a49a8
BuildRequires: mesa-libEGL-devel
2a49a8
BuildRequires: mesa-libgbm-devel
2a49a8
2a49a8
BuildRequires: audit-libs-devel
2a49a8
BuildRequires: libselinux-devel >= 2.0.86-1
2a49a8
2a49a8
# libunwind is Exclusive for the following arches
2a49a8
%ifarch aarch64 %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64
2a49a8
%if !0%{?rhel}
2a49a8
BuildRequires: libunwind-devel
2a49a8
%endif
2a49a8
%endif
2a49a8
2a49a8
BuildRequires: pkgconfig(xcb-aux)
2a49a8
BuildRequires: pkgconfig(xcb-image)
2a49a8
BuildRequires: pkgconfig(xcb-icccm)
2a49a8
BuildRequires: pkgconfig(xcb-keysyms)
2a49a8
BuildRequires: pkgconfig(xcb-renderutil)
2a49a8
2a49a8
%description
2a49a8
Xwayland is an X server for running X clients under Wayland.
2a49a8
2a49a8
%package devel
2a49a8
Summary: Development package
2a49a8
Requires: pkgconfig
2a49a8
2a49a8
%description devel
2a49a8
The development package provides the developmental files which are
2a49a8
necessary for developing Wayland compositors using Xwayland.
2a49a8
2a49a8
%prep
2a49a8
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}}
2a49a8
2a49a8
%build
2a49a8
%meson \
2a49a8
        -Dxwayland_eglstream=true \
2a49a8
        -Ddefault_font_path=%{default_font_path} \
2a49a8
        -Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
2a49a8
        -Dxkb_output_dir=%{_localstatedir}/lib/xkb \
2a49a8
        -Dxcsecurity=true \
2a49a8
        -Dglamor=true \
2a49a8
        -Ddri3=true
2a49a8
2a49a8
%meson_build
2a49a8
2a49a8
%install
2a49a8
%meson_install
2a49a8
2a49a8
# Remove unwanted files/dirs
2a49a8
rm $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1*
2a49a8
rm -Rf $RPM_BUILD_ROOT%{_libdir}/xorg
2a49a8
rm -Rf $RPM_BUILD_ROOT%{_includedir}/xorg
2a49a8
rm -Rf $RPM_BUILD_ROOT%{_datadir}/aclocal
2a49a8
rm -Rf $RPM_BUILD_ROOT%{_localstatedir}/lib/xkb
2a49a8
2a49a8
%files
2a49a8
%{_bindir}/Xwayland
2a49a8
%{_mandir}/man1/Xwayland.1*
2a49a8
2a49a8
%files devel
2a49a8
%{_libdir}/pkgconfig/xwayland.pc
2a49a8
2a49a8
%changelog
5f5628
* Mon Jun 14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-3
5f5628
- Backport fixes for GLX and EGLstream (#1961981)
5f5628
2a49a8
* Thu Jun  03 2021 Tomas Pelka <tpelka@redhat.com> - 21.1.1-2
2a49a8
- bump release and rebuild to correctly trigger gating
2a49a8
2a49a8
* Wed Apr  14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-1
2a49a8
- xwayland 21.1.1 (CVE-2021-3472 / ZDI-CAN-1259)
2a49a8
2a49a8
* Thu Mar  18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.0-1
2a49a8
- xwayland 21.1.0
2a49a8
2a49a8
* Thu Mar  4 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.902-1
2a49a8
- xwayland 21.0.99.902
2a49a8
- Remove xdmcp, udev, udev_kms build options
2a49a8
- Stop overriding the vendor name, same as xorg-x11-server
2a49a8
2a49a8
* Thu Feb 18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.901-1
2a49a8
- xwayland 21.0.99.901
2a49a8
2a49a8
* Mon Feb  1 2021 Olivier Fourdan <ofourdan@redhat.com> - 1.20.99.1-0.1.20210201git5429791
2a49a8
- Initial import (#1912335).