3 %bcond_without eglstream # XWayland eglstream support
4 %bcond_without glamor # glamor dix module
5 %bcond_with xcsecurity # XC-SECURITY extension (deprecated)
6 %bcond_with xf86bigfont # XF86BigFont extension
7 %bcond_without xselinux # XSELINUX extension
8 %bcond_without libunwind # libunwind for backtracing
9 %bcond_with systemtap # systemtap/dtrace probes
11 Summary: Xwayland - X server integrated into a Wayland window system
12 Summary(pl.UTF-8): Xwayland - serwer X integrowalny w Wayland
13 Name: xorg-xserver-Xwayland
18 Source0: https://xorg.freedesktop.org/releases/individual/xserver/xwayland-%{version}.tar.xz
19 # Source0-md5: ab422f8225dfeee2b09943fd991a5cee
20 URL: https://xorg.freedesktop.org/
21 %{?with_glamor:BuildRequires: Mesa-libgbm-devel >= 10.2}
22 %{?with_eglstream:BuildRequires: egl-wayland-devel}
23 BuildRequires: libbsd-devel
24 BuildRequires: libdrm-devel >= 2.4.89
25 %{?with_glamor:BuildRequires: libepoxy-devel}
26 # also possible: libsha, nettle, openssl
27 BuildRequires: libgcrypt-devel
28 %{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86}
29 %{?with_libunwind:BuildRequires: libunwind-devel}
30 BuildRequires: meson >= 0.46.0
31 BuildRequires: ninja >= 1.5
32 BuildRequires: pixman-devel
33 BuildRequires: rpmbuild(macros) >= 1.736
34 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
35 BuildRequires: tar >= 1:1.22
37 BuildRequires: wayland-devel >= 1.3.0
38 BuildRequires: wayland-protocols >= 1.18
39 BuildRequires: xorg-lib-libXdmcp-devel
40 BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
41 BuildRequires: xorg-lib-libXfont2-devel >= 2.0
42 BuildRequires: xorg-lib-libxkbfile-devel
43 BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
44 BuildRequires: xorg-lib-xtrans-devel >= 1.3.5
45 BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
46 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
47 BuildRequires: xorg-proto-damageproto-devel >= 1.1
48 BuildRequires: xorg-proto-dri3proto-devel >= 1.2
49 BuildRequires: xorg-proto-fixesproto-devel >= 5.0
50 BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3
51 BuildRequires: xorg-proto-inputproto-devel >= 2.3
52 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
53 BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1
54 BuildRequires: xorg-proto-randrproto-devel >= 1.6.0
55 BuildRequires: xorg-proto-renderproto-devel >= 0.11
56 BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0
57 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1
58 BuildRequires: xorg-proto-videoproto-devel
59 BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
60 BuildRequires: xorg-proto-xextproto-devel >= 7.2.99.901
61 %{?with_xf86bigfont:BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0}
62 BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
63 BuildRequires: xorg-proto-xineramaproto-devel
64 BuildRequires: xorg-proto-xproto-devel >= 7.0.31
66 %{?with_glamor:Requires: Mesa-libgbm >= 10.2}
67 Requires: libdrm >= 2.4.89
68 %{?with_xselinux:Requires: libselinux >= 2.0.86}
69 Requires: wayland >= 1.3.0
70 Requires: xorg-app-xkbcomp
71 Requires: xorg-lib-libXext >= 1.0.99.4
72 Requires: xorg-lib-libXfont2 >= 2.0
73 Requires: xorg-lib-libxshmfence >= 1.1
75 Requires: xorg-xserver-common >= 1.20
76 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79 Xwayland - server integrated into a Wayland window system.
81 %description -l pl.UTF-8
82 Xwayland - serwer X integrowalny w Wayland.
85 Summary: Development file for Xwayland server
86 Summary(pl.UTF-8): Plik programistyczny serwera Xwayland
87 Group: Development/Libraries
90 Development file for Xwayland server, containing server build
93 %description devel -l pl.UTF-8
94 Plik programistyczny serwera Xwayland, zawierajÄ…cy konfiguracjÄ™
98 %setup -q -n xwayland-%{version}
102 -Dbuilder_addr="feedback@pld-linux.org" \
103 -Dbuilder_string="%{name}-%{version}-%{release}" \
104 -Ddefault_font_path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
105 %{?with_systemtap:-Ddtrace=true} \
106 %{!?with_glamor:-Dglamor=false} \
107 %{?with_libunwind:-Dlibunwind=true} \
109 -Dvendor_name="PLD Linux" \
110 %{?with_xcsecurity:-Dxcsecurity=true} \
111 %{?with_xf86bigfont:-Dxf86bigfont=true} \
112 -Dxkb_bin_dir=%{_bindir} \
113 -Dxkb_dir=%{_datadir}/X11/xkb \
114 -Dxkb_output_dir=/var/lib/xkb \
115 %{!?with_xselinux:-Dxselinux=false} \
116 %{!?with_eglstream:-Dxwayland_eglstream=false}
118 %ninja_build -C build
121 rm -rf $RPM_BUILD_ROOT
123 %ninja_install -C build
125 # xorg-xserver-common package (common dependency for Xwayland and Xorg)
126 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/protocol.txt
127 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1
130 rm -rf $RPM_BUILD_ROOT
133 %defattr(644,root,root,755)
134 %doc COPYING README.md
135 %attr(755,root,root) %{_bindir}/Xwayland
136 %{_mandir}/man1/Xwayland.1*
139 %defattr(644,root,root,755)
140 %{_pkgconfigdir}/xwayland.pc