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
10 %bcond_without doc # don't build documentation
12 Summary: Xwayland - X server integrated into a Wayland window system
13 Summary(pl.UTF-8): Xwayland - serwer X integrowalny w Wayland
14 Name: xorg-xserver-Xwayland
19 Source0: https://xorg.freedesktop.org/releases/individual/xserver/xwayland-%{version}.tar.xz
20 # Source0-md5: 96879f938a91b0441ea784220159d843
21 URL: https://xorg.freedesktop.org/
22 BuildRequires: Mesa-dri-devel
23 %{?with_glamor:BuildRequires: Mesa-libgbm-devel >= 10.2}
24 BuildRequires: OpenGL-devel >= 1.2
25 %{?with_xselinux:BuildRequires: audit-libs-devel}
26 BuildRequires: docbook-dtd43-xml
27 %{?with_eglstream:BuildRequires: egl-wayland-devel}
28 BuildRequires: libbsd-devel
29 BuildRequires: libdrm-devel >= 2.4.89
30 %{?with_glamor:BuildRequires: libepoxy-devel}
31 # also possible: libmd, libsha, nettle, openssl
32 BuildRequires: libgcrypt-devel
33 %{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86}
34 BuildRequires: libtirpc-devel
35 %{?with_libunwind:BuildRequires: libunwind-devel}
36 BuildRequires: meson >= 0.47.0
37 BuildRequires: ninja >= 1.5
38 BuildRequires: pixman-devel
39 BuildRequires: pkgconfig
40 BuildRequires: rpmbuild(macros) >= 1.736
41 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
42 BuildRequires: tar >= 1:1.22
44 BuildRequires: wayland-devel >= 1.18.0
45 BuildRequires: wayland-protocols >= 1.22
46 %{?with_doc:BuildRequires: xmlto}
47 BuildRequires: xorg-lib-libXau-devel
48 BuildRequires: xorg-lib-libXdmcp-devel
49 BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
50 BuildRequires: xorg-lib-libXfont2-devel >= 2.0
51 BuildRequires: xorg-lib-libxcvt-devel
52 BuildRequires: xorg-lib-libxkbfile-devel
53 BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
54 BuildRequires: xorg-lib-xtrans-devel >= 1.3.5
55 BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
56 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
57 BuildRequires: xorg-proto-damageproto-devel >= 1.1
58 BuildRequires: xorg-proto-dri3proto-devel >= 1.2
59 BuildRequires: xorg-proto-fixesproto-devel >= 6.0
60 BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3
61 BuildRequires: xorg-proto-glproto-devel >= 1.4.17
62 BuildRequires: xorg-proto-inputproto-devel >= 2.3
63 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
64 BuildRequires: xorg-proto-presentproto-devel >= 1.2
65 BuildRequires: xorg-proto-randrproto-devel >= 1.6.0
66 BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1
67 BuildRequires: xorg-proto-renderproto-devel >= 0.11
68 BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0
69 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1
70 BuildRequires: xorg-proto-videoproto-devel
71 BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
72 BuildRequires: xorg-proto-xextproto-devel >= 7.2.99.901
73 %{?with_xf86bigfont:BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0}
74 BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
75 BuildRequires: xorg-proto-xineramaproto-devel
76 BuildRequires: xorg-proto-xproto-devel >= 7.0.31
77 %{?with_doc:BuildRequires: xorg-sgml-doctools}
79 %{?with_glamor:Requires: Mesa-libgbm >= 10.2}
80 Requires: libdrm >= 2.4.89
81 %{?with_xselinux:Requires: libselinux >= 2.0.86}
82 Requires: wayland >= 1.18.0
83 Requires: xorg-app-xkbcomp
84 Requires: xorg-lib-libXext >= 1.0.99.4
85 Requires: xorg-lib-libXfont2 >= 2.0
86 Requires: xorg-lib-libxshmfence >= 1.1
88 Requires: xorg-xserver-common >= 1.20
89 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92 Xwayland - server integrated into a Wayland window system.
94 %description -l pl.UTF-8
95 Xwayland - serwer X integrowalny w Wayland.
98 Summary: Development file for Xwayland server
99 Summary(pl.UTF-8): Plik programistyczny serwera Xwayland
100 Group: Development/Libraries
103 Development file for Xwayland server, containing server build
106 %description devel -l pl.UTF-8
107 Plik programistyczny serwera Xwayland, zawierajÄ…cy konfiguracjÄ™
111 %setup -q -n xwayland-%{version}
115 -Dbuilder_addr="feedback@pld-linux.org" \
116 -Dbuilder_string="%{name}-%{version}-%{release}" \
117 -Ddefault_font_path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
118 -Ddevel-docs=%{__true_false doc} \
119 -Ddocs=%{__true_false doc} \
121 %{?with_systemtap:-Ddtrace=true} \
122 %{!?with_glamor:-Dglamor=false} \
123 %{?with_libunwind:-Dlibunwind=true} \
125 -Dvendor_name="PLD Linux" \
126 %{?with_xcsecurity:-Dxcsecurity=true} \
127 %{?with_xf86bigfont:-Dxf86bigfont=true} \
128 -Dxkb_bin_dir=%{_bindir} \
129 -Dxkb_dir=%{_datadir}/X11/xkb \
130 -Dxkb_output_dir=/var/lib/xkb \
131 %{!?with_xselinux:-Dxselinux=false} \
132 %{!?with_eglstream:-Dxwayland_eglstream=false}
134 %ninja_build -C build
137 rm -rf $RPM_BUILD_ROOT
139 %ninja_install -C build
141 # xorg-xserver-common package (common dependency for Xwayland and Xorg)
142 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/protocol.txt
143 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1
145 %{?with_doc:%{__rm} $RPM_BUILD_ROOT%{_docdir}/xorg-server/Xserver-DTrace.*}
148 rm -rf $RPM_BUILD_ROOT
151 %defattr(644,root,root,755)
152 %doc COPYING README.md
153 %attr(755,root,root) %{_bindir}/Xwayland
154 %{_mandir}/man1/Xwayland.1*
157 %defattr(644,root,root,755)
158 %{?with_doc:%doc build/doc/{Xinput,Xserver-spec}.html build/doc/dtrace/Xserver-DTrace.html}
159 %{_pkgconfigdir}/xwayland.pc