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: 9d04fbe9c3a531c9cd08d38f51788ae6
21 URL: https://xorg.freedesktop.org/
22 BuildRequires: Mesa-dri-devel
23 %{?with_glamor:BuildRequires: Mesa-libgbm-devel >= 21.3}
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: libdecor-devel
30 BuildRequires: libdrm-devel >= 2.4.109
31 BuildRequires: libei-devel >= 1.0.0
32 %{?with_glamor:BuildRequires: libepoxy-devel}
33 # also possible: libmd, libsha, nettle, openssl
34 BuildRequires: libgcrypt-devel
35 BuildRequires: liboeffis-devel >= 1.0.0
36 %{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86}
37 BuildRequires: libtirpc-devel
38 %{?with_libunwind:BuildRequires: libunwind-devel}
39 BuildRequires: meson >= 0.52.0
40 BuildRequires: ninja >= 1.5
41 BuildRequires: pixman-devel
42 BuildRequires: pkgconfig
43 BuildRequires: rpmbuild(macros) >= 1.736
44 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
45 BuildRequires: tar >= 1:1.22
47 BuildRequires: wayland-devel >= 1.21.0
48 BuildRequires: wayland-protocols >= 1.30
49 %{?with_doc:BuildRequires: xmlto}
50 BuildRequires: xorg-lib-libXau-devel
51 BuildRequires: xorg-lib-libXdmcp-devel
52 BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4
53 BuildRequires: xorg-lib-libXfont2-devel >= 2.0
54 BuildRequires: xorg-lib-libxcvt-devel
55 BuildRequires: xorg-lib-libxkbfile-devel
56 BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
57 BuildRequires: xorg-lib-xtrans-devel >= 1.3.5
58 BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
59 BuildRequires: xorg-proto-compositeproto-devel >= 0.4
60 BuildRequires: xorg-proto-damageproto-devel >= 1.1
61 BuildRequires: xorg-proto-dri3proto-devel >= 1.2
62 BuildRequires: xorg-proto-fixesproto-devel >= 6.0
63 BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3
64 BuildRequires: xorg-proto-glproto-devel >= 1.4.17
65 BuildRequires: xorg-proto-inputproto-devel >= 2.3
66 BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
67 BuildRequires: xorg-proto-presentproto-devel >= 1.3
68 BuildRequires: xorg-proto-randrproto-devel >= 1.6.0
69 BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1
70 BuildRequires: xorg-proto-renderproto-devel >= 0.11
71 BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0
72 BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1
73 BuildRequires: xorg-proto-videoproto-devel
74 BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
75 BuildRequires: xorg-proto-xextproto-devel >= 7.2.99.901
76 %{?with_xf86bigfont:BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0}
77 BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
78 BuildRequires: xorg-proto-xineramaproto-devel
79 BuildRequires: xorg-proto-xproto-devel >= 7.0.31
80 BuildRequires: xorg-proto-xwaylandproto-devel >= 1.0
81 %{?with_doc:BuildRequires: xorg-sgml-doctools}
83 %{?with_glamor:Requires: Mesa-libgbm >= 21.3}
84 Requires: libdrm >= 2.4.109
85 Requires: libei >= 1.0.0
86 Requires: liboeffis >= 1.0.0
87 %{?with_xselinux:Requires: libselinux >= 2.0.86}
88 Requires: wayland >= 1.21.0
89 Requires: xorg-app-xkbcomp
90 Requires: xorg-lib-libXext >= 1.0.99.4
91 Requires: xorg-lib-libXfont2 >= 2.0
92 Requires: xorg-lib-libxshmfence >= 1.1
94 Requires: xorg-xserver-common >= 1.20
95 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
98 Xwayland - server integrated into a Wayland window system.
100 %description -l pl.UTF-8
101 Xwayland - serwer X integrowalny w Wayland.
104 Summary: Development file for Xwayland server
105 Summary(pl.UTF-8): Plik programistyczny serwera Xwayland
106 Group: Development/Libraries
109 Development file for Xwayland server, containing server build
112 %description devel -l pl.UTF-8
113 Plik programistyczny serwera Xwayland, zawierajÄ…cy konfiguracjÄ™
117 %setup -q -n xwayland-%{version}
121 -Dbuilder_addr="feedback@pld-linux.org" \
122 -Dbuilder_string="%{name}-%{version}-%{release}" \
123 -Ddefault_font_path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \
124 -Ddevel-docs=%{__true_false doc} \
125 -Ddocs=%{__true_false doc} \
127 %{?with_systemtap:-Ddtrace=true} \
128 %{!?with_glamor:-Dglamor=false} \
129 %{?with_libunwind:-Dlibunwind=true} \
131 -Dvendor_name="PLD Linux" \
132 %{?with_xcsecurity:-Dxcsecurity=true} \
133 %{?with_xf86bigfont:-Dxf86bigfont=true} \
134 -Dxkb_bin_dir=%{_bindir} \
135 -Dxkb_dir=%{_datadir}/X11/xkb \
136 -Dxkb_output_dir=/var/lib/xkb \
137 %{!?with_xselinux:-Dxselinux=false} \
138 %{!?with_eglstream:-Dxwayland_eglstream=false}
140 %ninja_build -C build
143 rm -rf $RPM_BUILD_ROOT
145 %ninja_install -C build
147 # xorg-xserver-common package (common dependency for Xwayland and Xorg)
148 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/protocol.txt
149 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1
151 %{?with_doc:%{__rm} $RPM_BUILD_ROOT%{_docdir}/xorg-server/Xserver-DTrace.*}
154 rm -rf $RPM_BUILD_ROOT
157 %defattr(644,root,root,755)
158 %doc COPYING README.md
159 %attr(755,root,root) %{_bindir}/Xwayland
160 %{_desktopdir}/org.freedesktop.Xwayland.desktop
161 %{_mandir}/man1/Xwayland.1*
164 %defattr(644,root,root,755)
165 %{?with_doc:%doc build/doc/{Xinput,Xserver-spec}.html build/doc/dtrace/Xserver-DTrace.html}
166 %{_pkgconfigdir}/xwayland.pc