1 |
%global commit 280aac5a0ee09c45b17ec4be0681397f7c34c12e |
2 |
%global shortcommit %(c=%{commit}; echo ${c:0:7}) |
3 |
|
4 |
#global gitdate 20210201 |
5 |
%global pkgname %{?gitdate:xserver}%{!?gitdate:xwayland} |
6 |
|
7 |
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins" |
8 |
|
9 |
Summary: Xwayland |
10 |
Name: x11-server-xwayland |
11 |
Version: 22.1.8 |
12 |
Release: %mkrel 1 |
13 |
Group: System/X11 |
14 |
|
15 |
URL: https://www.x.org/ |
16 |
%if 0%{?gitdate} |
17 |
Source0: https://gitlab.freedesktop.org/xorg/%{pkgname}/-/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz |
18 |
%else |
19 |
Source0: https://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.xz |
20 |
%endif |
21 |
|
22 |
# upstream stable 21.1 |
23 |
|
24 |
# upstream master |
25 |
|
26 |
License: MIT |
27 |
|
28 |
Requires: x11-server-common |
29 |
#Requires: libEGL |
30 |
#Requires: libepoxy >= 1.5.5 |
31 |
|
32 |
# force new gcc |
33 |
BuildRequires: gcc >= 12.0.1-0.20220227.2 |
34 |
BuildRequires: binutils >= 1:2.38-4 |
35 |
|
36 |
BuildRequires: git-core |
37 |
BuildRequires: meson |
38 |
|
39 |
BuildRequires: wayland-devel |
40 |
BuildRequires: pkgconfig(wayland-client) >= 1.3.0 |
41 |
BuildRequires: pkgconfig(wayland-protocols) |
42 |
BuildRequires: pkgconfig(wayland-eglstream-protocols) |
43 |
|
44 |
BuildRequires: pkgconfig(epoxy) >= 1.5.5 |
45 |
BuildRequires: pkgconfig(fontenc) |
46 |
BuildRequires: pkgconfig(libdrm) >= 2.4.0 |
47 |
BuildRequires: pkgconfig(libssl) |
48 |
BuildRequires: pkgconfig(libtirpc) |
49 |
BuildRequires: pkgconfig(pixman-1) |
50 |
BuildRequires: pkgconfig(x11) |
51 |
BuildRequires: pkgconfig(xau) |
52 |
BuildRequires: pkgconfig(xdmcp) |
53 |
BuildRequires: pkgconfig(xext) |
54 |
BuildRequires: pkgconfig(xfixes) |
55 |
BuildRequires: pkgconfig(xfont2) |
56 |
BuildRequires: pkgconfig(xi) |
57 |
BuildRequires: pkgconfig(xinerama) |
58 |
BuildRequires: pkgconfig(xkbfile) |
59 |
BuildRequires: pkgconfig(xmu) |
60 |
BuildRequires: pkgconfig(xorg-macros) >= 1.17 |
61 |
BuildRequires: pkgconfig(xpm) |
62 |
BuildRequires: pkgconfig(xrender) |
63 |
BuildRequires: pkgconfig(xres) |
64 |
BuildRequires: pkgconfig(xshmfence) >= 1.1 |
65 |
BuildRequires: pkgconfig(xtrans) >= 1.3.2 |
66 |
BuildRequires: pkgconfig(xtst) |
67 |
BuildRequires: pkgconfig(xv) |
68 |
BuildRequires: x11-proto-devel >= 7.7-10 |
69 |
|
70 |
BuildRequires: pkgconfig(dri) |
71 |
BuildRequires: pkgconfig(gl) |
72 |
BuildRequires: pkgconfig(egl) |
73 |
BuildRequires: pkgconfig(gbm) |
74 |
BuildRequires: pkgconfig(libxcvt) |
75 |
|
76 |
BuildRequires: audit-libs-devel |
77 |
#BuildRequires: libselinux-devel >= 2.0.86-1 |
78 |
|
79 |
# libunwind is Exclusive for the following arches |
80 |
%ifarch aarch64 %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64 |
81 |
%if !0%{?rhel} |
82 |
BuildRequires: libunwind-devel |
83 |
%endif |
84 |
%endif |
85 |
|
86 |
BuildRequires: pkgconfig(xcb-aux) |
87 |
BuildRequires: pkgconfig(xcb-image) |
88 |
BuildRequires: pkgconfig(xcb-icccm) |
89 |
BuildRequires: pkgconfig(xcb-keysyms) |
90 |
BuildRequires: pkgconfig(xcb-renderutil) |
91 |
|
92 |
%description |
93 |
Xwayland is an X server for running X clients under Wayland. |
94 |
|
95 |
%package devel |
96 |
Summary: Development package |
97 |
Requires: pkgconfig |
98 |
|
99 |
%description devel |
100 |
The development package provides the developmental files which are |
101 |
necessary for developing Wayland compositors using Xwayland. |
102 |
|
103 |
%prep |
104 |
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}} |
105 |
|
106 |
%build |
107 |
%meson \ |
108 |
-Dxwayland_eglstream=true \ |
109 |
-Ddefault_font_path=%{default_font_path} \ |
110 |
-Dbuilder_string="Build ID: %{name} %{version}-%{release}" \ |
111 |
-Dxkb_output_dir=%{_localstatedir}/lib/xkb \ |
112 |
-Dxcsecurity=true \ |
113 |
-Dglamor=true \ |
114 |
-Ddri3=true |
115 |
|
116 |
%meson_build |
117 |
|
118 |
%install |
119 |
%meson_install |
120 |
|
121 |
# Remove unwanted files/dirs |
122 |
rm $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1* |
123 |
rm -Rf $RPM_BUILD_ROOT%{_libdir}/xorg |
124 |
rm -Rf $RPM_BUILD_ROOT%{_includedir}/xorg |
125 |
rm -Rf $RPM_BUILD_ROOT%{_datadir}/aclocal |
126 |
rm -Rf $RPM_BUILD_ROOT%{_localstatedir}/lib/xkb |
127 |
|
128 |
%files |
129 |
%{_bindir}/Xwayland |
130 |
%{_mandir}/man1/Xwayland.1* |
131 |
|
132 |
%files devel |
133 |
%{_libdir}/pkgconfig/xwayland.pc |
134 |
|