]>
Commit | Line | Data |
---|---|---|
1b16829c JB |
1 | # TODO |
2 | # - consider XSELINUX by default | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_with dbus # D-BUS support for configuration (if no udev) | |
6 | %bcond_with hal # HAL support for configuration (if no udev) | |
7 | %bcond_without udev # UDEV support for configuration | |
8 | %bcond_without dri2 # DRI2 extension | |
9 | %bcond_without dri3 # DRI3 extension | |
10 | %bcond_without record # RECORD extension | |
11 | %bcond_with xcsecurity # XC-SECURITY extension (deprecated) | |
12 | %bcond_with xf86bigfont # XF86BigFont extension | |
13 | %bcond_with xselinux # SELinux extension | |
14 | %bcond_without systemtap # systemtap/dtrace probes | |
15 | %bcond_without libunwind # use libunwind for backtracing | |
16 | # | |
17 | ||
18 | %define pixman_ver 0.30.0 | |
19 | ||
20 | %ifarch x32 | |
21 | %undefine with_libunwind | |
22 | %endif | |
23 | ||
24 | Summary: Xdmx - distributed multi-head X server | |
25 | Summary(pl.UTF-8): Xdmx - rozproszony, wielomonitorowy serwer X | |
26 | Name: xorg-xserver-Xdmx | |
27 | Version: 1.20.13 | |
28 | Release: 1 | |
29 | License: MIT | |
30 | Group: X11/Servers | |
31 | Source0: https://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.xz | |
32 | # Source0-md5: 9acb2a51507e6056b09e3d3f19565419 | |
33 | Patch0: xorg-xserver-server-builtin-SHA1.patch | |
34 | Patch1: 110_nvidia_slowdow_fix.patch | |
4d53a498 | 35 | Patch2: %{name}-fix.patch |
1b16829c JB |
36 | URL: https://xorg.freedesktop.org/ |
37 | BuildRequires: Mesa-dri-devel >= 7.8.1 | |
38 | %{?with_dri2:BuildRequires: Mesa-dri-devel >= 9.2.0} | |
39 | BuildRequires: OpenGL-devel >= 3.0 | |
40 | # for glx headers | |
41 | BuildRequires: OpenGL-GLX-devel >= 1.3 | |
42 | %{?with_xselinux:BuildRequires: audit-libs-devel} | |
43 | BuildRequires: autoconf >= 2.60 | |
44 | BuildRequires: automake | |
45 | BuildRequires: cpp | |
46 | BuildRequires: docbook-dtd43-xml | |
47 | #BuildRequires: doxygen >= 1.6.1 | |
48 | %if %{with hal} || %{with dbus} | |
49 | BuildRequires: dbus-devel >= 1.0 | |
50 | %endif | |
51 | %{?with_hal:BuildRequires: hal-devel} | |
52 | BuildRequires: libbsd-devel | |
53 | BuildRequires: libdrm-devel >= 2.4.89 | |
54 | %{?with_xselinux:BuildRequires: libselinux-devel >= 2.0.86} | |
55 | BuildRequires: libtirpc-devel | |
56 | BuildRequires: libtool >= 2:2.2 | |
57 | %{?with_libunwind:BuildRequires: libunwind-devel} | |
58 | BuildRequires: perl-base | |
59 | BuildRequires: pixman-devel >= %{pixman_ver} | |
60 | BuildRequires: pkgconfig >= 1:0.19 | |
61 | BuildRequires: pkgconfig(gl) >= 1.2 | |
62 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
63 | BuildRequires: systemd-devel >= 1:209 | |
64 | BuildRequires: tar >= 1:1.22 | |
65 | BuildRequires: udev-devel >= 1:143 | |
66 | BuildRequires: xmlto >= 0.0.20 | |
67 | BuildRequires: xorg-font-font-util >= 1.1 | |
68 | BuildRequires: xorg-lib-libX11-devel >= 1.6 | |
69 | BuildRequires: xorg-lib-libXau-devel | |
70 | BuildRequires: xorg-lib-libXaw-devel | |
71 | BuildRequires: xorg-lib-libXdmcp-devel | |
72 | BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4 | |
73 | BuildRequires: xorg-lib-libXfixes-devel | |
74 | BuildRequires: xorg-lib-libXfont2-devel >= 2.0.0 | |
75 | BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1 | |
76 | BuildRequires: xorg-lib-libXmu-devel | |
77 | BuildRequires: xorg-lib-libXpm-devel | |
78 | BuildRequires: xorg-lib-libXrender-devel | |
79 | BuildRequires: xorg-lib-libXres-devel | |
80 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 | |
81 | BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2 | |
82 | BuildRequires: xorg-lib-libdmx-devel >= 1.0.99.1 | |
83 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.12.901 | |
84 | BuildRequires: xorg-lib-libxkbfile-devel | |
85 | BuildRequires: xorg-lib-libxshmfence-devel >= 1.1 | |
86 | BuildRequires: xorg-lib-xtrans-devel >= 1.3.5 | |
87 | BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0 | |
88 | BuildRequires: xorg-proto-compositeproto-devel >= 0.4 | |
89 | BuildRequires: xorg-proto-damageproto-devel >= 1.1 | |
90 | BuildRequires: xorg-proto-dmxproto-devel >= 2.2.99.1 | |
91 | %{?with_dri2:BuildRequires: xorg-proto-dri2proto-devel >= 2.8} | |
92 | BuildRequires: xorg-proto-dri3proto-devel >= 1.2 | |
93 | BuildRequires: xorg-proto-fixesproto-devel >= 5.0 | |
94 | BuildRequires: xorg-proto-fontsproto-devel >= 2.1.3 | |
95 | BuildRequires: xorg-proto-glproto-devel >= 1.4.17 | |
96 | BuildRequires: xorg-proto-inputproto-devel >= 2.3 | |
97 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
98 | BuildRequires: xorg-proto-presentproto-devel >= 1.1 | |
99 | BuildRequires: xorg-proto-randrproto-devel >= 1.6.0 | |
100 | %{?with_record:BuildRequires: xorg-proto-recordproto-devel >= 1.13.99.1} | |
101 | BuildRequires: xorg-proto-renderproto-devel >= 0.11 | |
102 | BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0 | |
103 | BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1 | |
104 | BuildRequires: xorg-proto-videoproto-devel | |
105 | BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0 | |
106 | BuildRequires: xorg-proto-xextproto-devel >= 1:7.3.0 | |
107 | %{?with_xf86bigfont:BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0} | |
108 | BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 | |
109 | BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 | |
110 | BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 | |
111 | BuildRequires: xorg-proto-xineramaproto-devel | |
112 | BuildRequires: xorg-proto-xproto-devel >= 7.0.31 | |
113 | BuildRequires: xorg-sgml-doctools >= 1.8 | |
114 | BuildRequires: xorg-util-util-macros >= 1.14 | |
115 | BuildRequires: xz | |
116 | Requires: pixman >= %{pixman_ver} | |
117 | Requires: xorg-lib-libX11 >= 1.6 | |
118 | Requires: xorg-lib-libXext >= 1.0.99.4 | |
119 | Requires: xorg-lib-libXfont2 >= 2.0.0 | |
120 | Requires: xorg-lib-libXi >= 1.2.99.1 | |
121 | Requires: xorg-lib-libdmx >= 1.0.99.1 | |
122 | Requires: xorg-xserver-common >= 1.20.13 | |
123 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
124 | ||
125 | %define tirpc_cflags $(pkg-config --cflags libtirpc) | |
126 | %define tirpc_libs $(pkg-config --libs libtirpc) | |
127 | ||
128 | %description | |
129 | Xdmx - distributed multi-head X server. | |
130 | ||
131 | %description -l pl.UTF-8 | |
132 | Xdmx - rozproszony, wielomonitorowy serwer X. | |
133 | ||
134 | %prep | |
135 | %setup -q -n xorg-server-%{version} | |
136 | %patch0 -p1 | |
137 | %patch1 -p1 | |
4d53a498 | 138 | %patch2 -p1 |
1b16829c JB |
139 | |
140 | # xserver uses pixman-1 API/ABI so put that explictly here | |
141 | sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h | |
142 | ||
143 | # support __filemansuffix__ with "x" suffix (per FHS 2.3) | |
144 | %{__sed} -i -e 's,\.so man__filemansuffix__/,.so man5/,' hw/xfree86/man/*.man | |
145 | ||
146 | %{__sed} -i -e '1s|#!/usr/bin/python$|#!%{__python}|' config/fdi2iclass.py | |
147 | ||
148 | %build | |
149 | %{__libtoolize} | |
150 | %{__aclocal} -I m4 | |
151 | %{__autoconf} | |
152 | %{__autoheader} | |
153 | %{__automake} | |
154 | %configure \ | |
155 | CPPFLAGS="%{rpmcppflags} %{tirpc_cflags}" \ | |
156 | LIBS="%{tirpc_libs}" \ | |
157 | --libexecdir=%{_libdir}/xorg \ | |
158 | --with-os-name="PLD/Linux" \ | |
159 | --with-os-vendor="PLD/Team" \ | |
160 | --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \ | |
161 | --with-xkb-output=/var/lib/xkb \ | |
162 | --disable-linux-acpi \ | |
163 | --disable-linux-apm \ | |
164 | %{?with_dbus:--enable-config-dbus} \ | |
165 | --enable-config-hal%{!?with_hal:=no} \ | |
166 | --enable-config-udev%{!?with_udev:=no} \ | |
167 | --enable-dga \ | |
168 | --enable-dmx \ | |
169 | --enable-dri2%{!?with_dri2:=no} \ | |
170 | --enable-dri3%{!?with_dri3:=no} \ | |
171 | --disable-kdrive \ | |
172 | %{?with_libunwind:--enable-libunwind} \ | |
173 | %{?with_record:--enable-record} \ | |
174 | --enable-secure-rpc \ | |
175 | --enable-suid-wrapper \ | |
176 | %{?with_xcsecurity:--enable-xcsecurity} \ | |
177 | --disable-xephyr \ | |
178 | %{?with_xf86bigfont:--enable-xf86bigfont} \ | |
179 | --disable-xfree86-utils \ | |
180 | --disable-xnest \ | |
181 | --disable-xorg \ | |
182 | %{?with_xselinux:--enable-xselinux} \ | |
183 | --disable-xvfb \ | |
184 | --disable-xwayland \ | |
185 | %{!?with_systemtap:--without-dtrace} \ | |
186 | --without-fop \ | |
187 | --with-systemd-daemon | |
188 | ||
189 | %{__make} | |
190 | ||
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
194 | %{__make} install \ | |
195 | DESTDIR=$RPM_BUILD_ROOT | |
196 | ||
197 | %if %{with systemtap} | |
198 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/xorg-server/Xserver-DTrace.* | |
199 | %endif | |
200 | ||
201 | # packaged in xorg-xserver-common built from xorg-xserver-server.spec | |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/protocol.txt | |
203 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1 | |
204 | ||
205 | %clean | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
208 | %files | |
209 | %defattr(644,root,root,755) | |
210 | %doc COPYING ChangeLog README.md | |
211 | %attr(755,root,root) %{_bindir}/Xdmx | |
212 | %attr(755,root,root) %{_bindir}/dmxaddinput | |
213 | %attr(755,root,root) %{_bindir}/dmxaddscreen | |
214 | %attr(755,root,root) %{_bindir}/dmxinfo | |
215 | %attr(755,root,root) %{_bindir}/dmxreconfig | |
216 | %attr(755,root,root) %{_bindir}/dmxresize | |
217 | %attr(755,root,root) %{_bindir}/dmxrminput | |
218 | %attr(755,root,root) %{_bindir}/dmxrmscreen | |
219 | %attr(755,root,root) %{_bindir}/dmxtodmx | |
220 | %attr(755,root,root) %{_bindir}/dmxwininfo | |
221 | %attr(755,root,root) %{_bindir}/vdltodmx | |
222 | %attr(755,root,root) %{_bindir}/xdmxconfig | |
223 | %{_mandir}/man1/Xdmx.1* | |
224 | %{_mandir}/man1/dmxtodmx.1* | |
225 | %{_mandir}/man1/vdltodmx.1* | |
226 | %{_mandir}/man1/xdmxconfig.1* |