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
b6a310
Version:   21.1.1
b6a310
Release:   6%{?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
b6a310
Patch1:  0001-xwayland-Move-dmabuf-interface-to-common-glamor-code.patch
b6a310
Patch2:  0002-xwayland-move-formats-and-modifiers-functions-to-com.patch
b6a310
Patch3:  0003-xwayland-Add-check_flip-glamor-backend-function.patch
b6a310
Patch4:  0004-xwayland-implement-pixmap_from_buffers-for-the-eglst.patch
b6a310
Patch5:  0005-xwayland-eglstream-fix-X11-rendering-to-flipping-GL-.patch
b6a310
Patch6:  0006-xwayland-eglstream-Check-buffer-creation.patch
b6a310
Patch7:  0007-xwayland-Check-buffer-prior-to-attaching-it.patch
b6a310
Patch8:  0008-glamor-Dump-backtrace-on-GL-error.patch
b6a310
Patch9:  0009-xwayland-glamor-Add-return-status-to-post_damage.patch
b6a310
Patch10: 0010-xwayland-eglstream-Check-framebuffer-status.patch
b6a310
Patch11: 0011-xwayland-eglstream-Small-refactoring.patch
b6a310
Patch12: 0012-xwayland-eglstream-Add-more-error-checking.patch
b6a310
Patch13: 0013-xwayland-eglstream-Dissociate-pending-stream-from-wi.patch
b6a310
Patch14: 0014-xwayland-eglstream-Keep-a-reference-to-the-pixmap.patch
b6a310
Patch15: 0015-xwayland-eglstream-Drop-the-list-of-pending-streams.patch
b6a310
Patch16: 0016-xwayland-eglstream-Do-not-commit-without-surface.patch
b6a310
Patch17: 0017-xwayland-eglstream-Fix-calloc-malloc.patch
b6a310
Patch18: 0018-xwayland-eglstream-Check-eglSwapBuffers.patch
b6a310
Patch19: 0019-xwayland-eglstream-Do-not-always-increment-pixmap-re.patch
b6a310
Patch20: 0020-xwayland-eglstream-Set-ALU-to-GXCopy-for-blitting.patch
b6a310
Patch21: 0021-xwayland-eglstream-allow-commits-to-dma-buf-backed-p.patch
b6a310
Patch22: 0022-xwayland-eglstream-flush-stream-after-eglSwapBuffers.patch
b6a310
Patch23: 0023-xwayland-Add-preferred-GLVND-vendor-to-xwl_screen.patch
b6a310
Patch24: 0024-xwayland-eglstream-Use-nvidia-for-GLVND.patch
b6a310
Patch25: 0025-xwayland-eglstream-Log-when-GL_OES_EGL_image-is-miss.patch
b6a310
Patch26: 0026-glx-don-t-create-implicit-GLXWindow-if-one-already-e.patch
b6a310
Patch27: 0027-glx-Set-ContextTag-for-all-contexts.patch
b6a310
# https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/704
b6a310
Patch28: 0001-xwayland-eglstream-Keep-pending-stream-if-the-pixmap.patch
b6a310
Patch29: 0002-xwayland-eglstream-Remove-stream-validity.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
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).