]>
Commit | Line | Data |
---|---|---|
ae99aef9 JB |
1 | # |
2 | # Conditional build: | |
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 | |
5ed1c897 | 10 | %bcond_without doc # don't build documentation |
ae99aef9 JB |
11 | |
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 | |
70426a8f | 15 | Version: 22.1.8 |
8b1103ed | 16 | Release: 1 |
ae99aef9 JB |
17 | License: MIT |
18 | Group: X11/Servers | |
19 | Source0: https://xorg.freedesktop.org/releases/individual/xserver/xwayland-%{version}.tar.xz | |
70426a8f | 20 | # Source0-md5: 96879f938a91b0441ea784220159d843 |
ae99aef9 | 21 | URL: https://xorg.freedesktop.org/ |
eea9e694 | 22 | BuildRequires: Mesa-dri-devel |
ae99aef9 | 23 | %{?with_glamor:BuildRequires: Mesa-libgbm-devel >= 10.2} |
eea9e694 JP |
24 | BuildRequires: OpenGL-devel >= 1.2 |
25 | %{?with_xselinux:BuildRequires: audit-libs-devel} | |
c1a67732 | 26 | BuildRequires: docbook-dtd43-xml |
ae99aef9 JB |
27 | %{?with_eglstream:BuildRequires: egl-wayland-devel} |
28 | BuildRequires: libbsd-devel | |
29 | BuildRequires: libdrm-devel >= 2.4.89 | |
30 | %{?with_glamor:BuildRequires: libepoxy-devel} | |
4a66d36a | 31 | # also possible: libmd, libsha, nettle, openssl |
ae99aef9 JB |
32 | BuildRequires: libgcrypt-devel |
33 | %{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86} | |
eea9e694 | 34 | BuildRequires: libtirpc-devel |
ae99aef9 | 35 | %{?with_libunwind:BuildRequires: libunwind-devel} |
587212be | 36 | BuildRequires: meson >= 0.47.0 |
ae99aef9 JB |
37 | BuildRequires: ninja >= 1.5 |
38 | BuildRequires: pixman-devel | |
f9cc248e | 39 | BuildRequires: pkgconfig |
c187d2dc | 40 | BuildRequires: rpmbuild(macros) >= 1.736 |
ae99aef9 JB |
41 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
42 | BuildRequires: tar >= 1:1.22 | |
43 | # wayland-client | |
80134020 | 44 | BuildRequires: wayland-devel >= 1.18.0 |
587212be | 45 | BuildRequires: wayland-protocols >= 1.22 |
5ed1c897 | 46 | %{?with_doc:BuildRequires: xmlto} |
eea9e694 | 47 | BuildRequires: xorg-lib-libXau-devel |
ae99aef9 JB |
48 | BuildRequires: xorg-lib-libXdmcp-devel |
49 | BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4 | |
50 | BuildRequires: xorg-lib-libXfont2-devel >= 2.0 | |
587212be | 51 | BuildRequires: xorg-lib-libxcvt-devel |
ae99aef9 JB |
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 | |
587212be | 59 | BuildRequires: xorg-proto-fixesproto-devel >= 6.0 |
ae99aef9 | 60 | BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3 |
eea9e694 | 61 | BuildRequires: xorg-proto-glproto-devel >= 1.4.17 |
ae99aef9 JB |
62 | BuildRequires: xorg-proto-inputproto-devel >= 2.3 |
63 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
eea9e694 | 64 | BuildRequires: xorg-proto-presentproto-devel >= 1.2 |
ae99aef9 | 65 | BuildRequires: xorg-proto-randrproto-devel >= 1.6.0 |
eea9e694 | 66 | BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1 |
ae99aef9 JB |
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 | |
5ed1c897 | 77 | %{?with_doc:BuildRequires: xorg-sgml-doctools} |
ae99aef9 JB |
78 | BuildRequires: xz |
79 | %{?with_glamor:Requires: Mesa-libgbm >= 10.2} | |
80 | Requires: libdrm >= 2.4.89 | |
81 | %{?with_xselinux:Requires: libselinux >= 2.0.86} | |
80134020 | 82 | Requires: wayland >= 1.18.0 |
ae99aef9 JB |
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 | |
67cd2033 JB |
87 | # for protocol.txt |
88 | Requires: xorg-xserver-common >= 1.20 | |
ae99aef9 JB |
89 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
90 | ||
91 | %description | |
92 | Xwayland - server integrated into a Wayland window system. | |
93 | ||
94 | %description -l pl.UTF-8 | |
95 | Xwayland - serwer X integrowalny w Wayland. | |
96 | ||
8b1103ed JB |
97 | %package devel |
98 | Summary: Development file for Xwayland server | |
99 | Summary(pl.UTF-8): Plik programistyczny serwera Xwayland | |
100 | Group: Development/Libraries | |
101 | ||
102 | %description devel | |
103 | Development file for Xwayland server, containing server build | |
104 | configuration. | |
105 | ||
106 | %description devel -l pl.UTF-8 | |
107 | Plik programistyczny serwera Xwayland, zawierajÄ…cy konfiguracjÄ™ | |
108 | zbudowanego serwera. | |
109 | ||
ae99aef9 JB |
110 | %prep |
111 | %setup -q -n xwayland-%{version} | |
112 | ||
113 | %build | |
114 | %meson build \ | |
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" \ | |
5ed1c897 JP |
118 | -Ddevel-docs=%{__true_false doc} \ |
119 | -Ddocs=%{__true_false doc} \ | |
120 | -Ddocs-pdf=false \ | |
ae99aef9 JB |
121 | %{?with_systemtap:-Ddtrace=true} \ |
122 | %{!?with_glamor:-Dglamor=false} \ | |
123 | %{?with_libunwind:-Dlibunwind=true} \ | |
124 | -Dsha1=libgcrypt \ | |
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} | |
133 | ||
134 | %ninja_build -C build | |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %ninja_install -C build | |
140 | ||
67cd2033 | 141 | # xorg-xserver-common package (common dependency for Xwayland and Xorg) |
ae99aef9 JB |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/protocol.txt |
143 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1 | |
144 | ||
5ed1c897 | 145 | %{?with_doc:%{__rm} $RPM_BUILD_ROOT%{_docdir}/xorg-server/Xserver-DTrace.*} |
4a66d36a | 146 | |
ae99aef9 JB |
147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %files | |
151 | %defattr(644,root,root,755) | |
152 | %doc COPYING README.md | |
153 | %attr(755,root,root) %{_bindir}/Xwayland | |
ae99aef9 | 154 | %{_mandir}/man1/Xwayland.1* |
8b1103ed JB |
155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
5ed1c897 | 158 | %{?with_doc:%doc build/doc/{Xinput,Xserver-spec}.html build/doc/dtrace/Xserver-DTrace.html} |
8b1103ed | 159 | %{_pkgconfigdir}/xwayland.pc |