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
2a49a8
Release:   2%{?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
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
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).