]> git.pld-linux.org Git - packages/xorg-xserver-server.git/blobdiff - xorg-xserver-server.spec
- separated -tools with cvt and gtf; release 4
[packages/xorg-xserver-server.git] / xorg-xserver-server.spec
index b46e885c235622dc13f52a371a6c331bfe4940be..4519344714fc0555007114e89aa8894b481c892c 100644 (file)
 %bcond_with    xf86bigfont     # XF86BigFont extension
 %bcond_with    xselinux        # SELinux extension
 %bcond_without dmx             # DMX DDX (Xdmx server)
-%bcond_without wayland         # Wayland DDX (Xwayland server)
+%bcond_with    wayland         # Wayland DDX (Xwayland server) [newer version in xorg-xserver-Xwayland.spec]
+%bcond_without xnest           # Xnest DDX (Xnest server)
+%bcond_without xvfb            # Xvfb DDX (Xvfb server)
+%bcond_without xephyr          # kdrive Xephyr server
 %bcond_with    eglstream       # XWayland eglstream support
 %bcond_without glamor          # glamor dix module
 %bcond_without systemtap       # systemtap/dtrace probes
 Summary:       X.org server
 Summary(pl.UTF-8):     Serwer X.org
 Name:          xorg-xserver-server
-Version:       1.20.8
-Release:       1
+Version:       1.20.11
+Release:       4
 License:       MIT
 Group:         X11/Servers
 Source0:       https://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2
-# Source0-md5: a770aec600116444a953ff632f51f839
+# Source0-md5: a22ccd74a5eee721cad6805e489c7144
 Source1:       10-quirks.conf
 Source2:       xserver.pamd
 Source10:      %{name}-Xvfb.init
@@ -50,12 +53,14 @@ Patch1:             %{name}-xwrapper-pam.patch
 Patch4:                %{name}-builtin-SHA1.patch
 
 Patch6:                110_nvidia_slowdow_fix.patch
+Patch7:                platform_probe_crash.patch
 URL:           https://xorg.freedesktop.org/
-BuildRequires: Mesa-libGL-devel >= 7.8.1
-%{?with_dri2:BuildRequires:    Mesa-libGL-devel >= 9.2.0}
+BuildRequires: Mesa-dri-devel >= 7.8.1
+%{?with_dri2:BuildRequires:    Mesa-dri-devel >= 9.2.0}
 %{?with_glamor:BuildRequires:  Mesa-libgbm-devel >= 17.1.0}
+BuildRequires: OpenGL-devel >= 3.0
 # for glx headers
-BuildRequires: OpenGL-GLX-devel
+BuildRequires: OpenGL-GLX-devel >= 1.3
 %{?with_xselinux:BuildRequires:        audit-libs-devel}
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -68,11 +73,11 @@ BuildRequires:      dbus-devel >= 1.0
 %{?with_eglstream:BuildRequires:       egl-wayland-devel >= 1.0.2}
 %{?with_hal:BuildRequires:     hal-devel}
 BuildRequires: libdrm-devel >= 2.4.89
-%if %{with glamor} || %{with wayland}
-BuildRequires: libepoxy-devel >= 1.4.4
-%{?with_eglstream:BuildRequires:       libepoxy-devel >= 1.5.0}
+%if %{with glamor}
+BuildRequires: libepoxy-devel >= 1.5.4
 %endif
 %{?with_xselinux:BuildRequires:        libselinux-devel >= 2.0.86}
+BuildRequires: libtirpc-devel
 BuildRequires: libtool >= 2:2.2
 %{?with_libunwind:BuildRequires:       libunwind-devel}
 BuildRequires: libxcb-devel >= 1.9.3
@@ -80,6 +85,7 @@ BuildRequires:        pam-devel
 BuildRequires: perl-base
 BuildRequires: pixman-devel >= %{pixman_ver}
 BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: pkgconfig(gl) >= 1.2
 %{?with_systemtap:BuildRequires:       systemtap-sdt-devel}
 BuildRequires: systemd-devel >= 1:209
 BuildRequires: udev-devel >= 1:143
@@ -150,12 +156,11 @@ BuildRequires:    xorg-proto-xineramaproto-devel
 BuildRequires: xorg-proto-xproto-devel >= 7.0.31
 BuildRequires: xorg-sgml-doctools >= 1.8
 BuildRequires: xorg-util-util-macros >= 1.14
-#BR: tslib (for KDRIVE only)
-Requires(triggerpostun):       sed >= 4.0
 %{?with_glamor:Requires:       Mesa-libgbm >= 17.1.0}
 Requires:      libdrm >= 2.4.89
-Requires:      libepoxy >= 1.4.4
+%{?with_glamor:Requires:       libepoxy >= 1.5.4}
 Requires:      pixman >= %{pixman_ver}
+Requires:      sed >= 4.0
 Requires:      udev-libs >= 1:143
 Requires:      xkeyboard-config
 # for rgb.txt
@@ -164,6 +169,9 @@ Requires:   xorg-app-xkbcomp
 Requires:      xorg-lib-libXfont2 >= 2.0.0
 Requires:      xorg-lib-libpciaccess >= 0.12.901
 Requires:      xorg-lib-libxshmfence >= 1.1
+# for protocol.txt
+Requires:      xorg-xserver-common = %{version}-%{release}
+Suggests:      %{name}-tools = %{version}-%{release}
 Suggests:      dbus-x11 >= 1.0
 %{?with_hal:Suggests:  hal}
 Suggests:      udev-acl >= 1:143
@@ -186,13 +194,16 @@ Obsoletes:        X11-setup < 1:7.0.0
 Obsoletes:     XFree86-Xserver < 1:7.0.0
 Obsoletes:     XFree86-modules < 1:7.0.0
 Obsoletes:     XFree86-setup < 1:7.0.0
-Obsoletes:     Xserver
-%{?with_glamor:Obsoletes:      glamor}
-Obsoletes:     xorg-xserver-libdri
-Obsoletes:     xorg-xserver-server-xorgcfg
-Obsoletes:     xorg-driver-video-modesetting
+Obsoletes:     Xserver < 7.0
+%{?with_glamor:Obsoletes:      glamor < 0.6.1}
+Obsoletes:     xorg-xserver-libdri < 1.12.99
+Obsoletes:     xorg-xserver-server-xorgcfg < 1.5.99
+Obsoletes:     xorg-driver-video-modesetting < 0.9.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                tirpc_cflags    $(pkg-config --cflags libtirpc)
+%define                tirpc_libs      $(pkg-config --libs libtirpc)
+
 %description
 Xorg server is a generally used X server which uses display hardware.
 It requires proper driver for your display hardware.
@@ -201,6 +212,87 @@ It requires proper driver for your display hardware.
 Serwer Xorg to podstawowy serwer X wyświetlający obraz na karcie
 graficznej. Do działania wymaga odpowiedniego sterownika.
 
+%package tools
+Summary:       Tools to calculate modelines for X.org server
+Summary(pl.UTF-8):     Narzędzia do liczenia opisów trybów graficznych (modeline) dla serwera X.org
+Group:         X11/Applications
+Conflicts:     xorg-xserver-server < 1.20.11-4
+
+%description tools
+Tools to calculate modelines for X.org server (using Coordinated Video
+Timing or Generalized Timing Formula).
+
+%description tools -l pl.UTF-8
+Narzędzia do liczenia opisów trybów graficznych (modeline) dla serwera
+X.org (przy użyciu algorytmów Coordinated Video Timing lub
+Generalizaed Timing Formula).
+
+%package devel
+Summary:       Header files for X.org server
+Summary(pl.UTF-8):     Pliki nagłówkowe dla serwera X.org
+Group:         X11/Development/Libraries
+Requires:      Mesa-dri-devel >= 7.8.0
+Requires:      libdrm-devel >= 2.4.89
+Requires:      pixman-devel >= %{pixman_ver}
+Requires:      xorg-lib-libXfont2-devel >= 2.0.0
+Requires:      xorg-lib-libpciaccess-devel >= 0.12.901
+Requires:      xorg-lib-libxkbfile-devel
+%{?with_dri2:Requires: xorg-proto-dri2proto-devel >= 2.8}
+%{?with_dri3:Requires: xorg-proto-dri3proto-devel >= 1.0}
+Requires:      xorg-proto-dri3proto-devel >= 1.0
+Requires:      xorg-proto-fontsproto-devel >= 2.1.3
+Requires:      xorg-proto-glproto-devel >= 1.4.17
+Requires:      xorg-proto-inputproto-devel >= 2.3
+Requires:      xorg-proto-kbproto-devel >= 1.0.3
+Requires:      xorg-proto-presentproto-devel >= 1.1
+Requires:      xorg-proto-randrproto-devel >= 1.6.0
+Requires:      xorg-proto-renderproto-devel >= 0.11
+Requires:      xorg-proto-resourceproto-devel >= 1.2.0
+Requires:      xorg-proto-scrnsaverproto-devel >= 1.1
+Requires:      xorg-proto-videoproto-devel
+Requires:      xorg-proto-xextproto-devel >= 1:7.3.0
+Requires:      xorg-proto-xf86driproto-devel >= 2.1.0
+Requires:      xorg-proto-xineramaproto-devel
+Requires:      xorg-proto-xproto-devel >= 7.0.31
+Obsoletes:     X11-Xserver-devel < 1:7.0.0
+Obsoletes:     XFree86-Xserver-devel < 1:7.0.0
+%{?with_glamor:Obsoletes:      glamor-devel < 0.6.1}
+
+%description devel
+Header files for X.org server.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla serwera X.org.
+
+%package source
+Summary:       X.org server source code
+Summary(pl.UTF-8):     Pliki źródłowe dla serwera X.org
+Group:         X11/Development/Libraries
+
+%description source
+X.org server source code.
+
+%description source -l pl.UTF-8
+Pliki źródłowe dla serwera X.org.
+
+%package -n xorg-xserver-libglx
+Summary:       GLX extension library for X.org server
+Summary(pl.UTF-8):     Biblioteka rozszerzenia GLX dla serwera X.org
+Group:         X11/Servers
+Requires:      %{name} = %{version}-%{release}
+Requires:      OpenGL >= 1.2
+# Mesa version glapi tables in glx/ dir come from
+Provides:      xorg-xserver-libglx(glapi) = 7.1.0
+Provides:      xorg-xserver-module(glx)
+Obsoletes:     X11-OpenGL-core < 1:7.0.0
+Obsoletes:     XFree86-OpenGL-core < 1:7.0.0
+
+%description -n xorg-xserver-libglx
+GLX extension library for X.org server.
+
+%description -n xorg-xserver-libglx -l pl.UTF-8
+Biblioteka rozszerzenia GLX dla serwera X.org.
+
 %package -n xorg-xserver-Xdmx
 Summary:       Xdmx - distributed multi-head X server
 Summary(pl.UTF-8):     Xdmx - rozproszony, wielomonitorowy serwer X
@@ -218,6 +310,33 @@ Xdmx - distributed multi-head X server.
 %description -n xorg-xserver-Xdmx -l pl.UTF-8
 Xdmx - rozproszony, wielomonitorowy serwer X.
 
+%package -n xorg-xserver-Xephyr
+Summary:       Xephyr - nested X server
+Summary(pl.UTF-8):     Xephyr - zagnieżdżony serwer X
+Group:         X11/Servers
+Requires:      OpenGL >= 3.0
+%{?with_glamor:Requires:       libepoxy >= 1.5.4}
+Requires:      libxcb >= 1.9.3
+Requires:      pixman >= %{pixman_ver}
+Requires:      xorg-lib-libXfont2 >= 2.0.0
+
+%description -n xorg-xserver-Xephyr
+Xephyr is a kdrive server that outputs to a window on a pre-existing
+'host' X display. Think Xnest but with support for modern extensions
+like composite, damage and randr.
+
+Unlike Xnest which is an X proxy, i.e. limited to the capabilities of
+the host X server, Xephyr is a real X server which uses the host X
+server window as "framebuffer" via fast SHM XImages.
+
+It also has support for 'visually' debugging what the server is
+painting.
+
+%description -n xorg-xserver-Xephyr -l pl.UTF-8
+Xephyr jest serwerem opartym na kdrive wyświetlającym w oknie na
+istniejącym ekranie X. Można o nim myśleć jako o Xnest ze wsparciem do
+wspólczesnych rozszerzeń jak composite, damage i randr.
+
 %package -n xorg-xserver-Xnest
 Summary:       Xnest - nested X server
 Summary(pl.UTF-8):     Xnest - zagnieżdżony serwer X
@@ -227,7 +346,7 @@ Requires:   xorg-lib-libXext >= 1.0.99.4
 Requires:      xorg-lib-libXfont2 >= 2.0.0
 Obsoletes:     X11-Xnest < 1:7.0.0
 Obsoletes:     XFree86-Xnest < 1:7.0.0
-Obsoletes:     Xserver-Xnest
+Obsoletes:     Xserver-Xnest < 7.0
 
 %description -n xorg-xserver-Xnest
 Xnest is an X Window System server which runs in an X window. Xnest is
@@ -252,38 +371,11 @@ Xnest - це сервер X Window System, який працює у вікні X
 для Xnest в той час, як Xnest керує вікнами та графічними запитами для
 своїх власних клієнтів.
 
-%package -n xorg-xserver-Xephyr
-Summary:       Xephyr - nested X server
-Summary(pl.UTF-8):     Xephyr - zagnieżdżony serwer X
-Group:         X11/Servers
-Requires:      Mesa-libGL >= 7.1.0
-Requires:      libepoxy >= 1.4.4
-Requires:      libxcb >= 1.9.3
-Requires:      pixman >= %{pixman_ver}
-Requires:      xorg-lib-libXfont2 >= 2.0.0
-
-%description -n xorg-xserver-Xephyr
-Xephyr is a kdrive server that outputs to a window on a pre-existing
-'host' X display. Think Xnest but with support for modern extensions
-like composite, damage and randr.
-
-Unlike Xnest which is an X proxy, i.e. limited to the capabilities of
-the host X server, Xephyr is a real X server which uses the host X
-server window as "framebuffer" via fast SHM XImages.
-
-It also has support for 'visually' debugging what the server is
-painting.
-
-%description -n xorg-xserver-Xephyr -l pl.UTF-8
-Xephyr jest serwerem opartym na kdrive wyświetlającym w oknie na
-istniejącym ekranie X. Można o nim myśleć jako o Xnest ze wsparciem do
-wspólczesnych rozszerzeń jak composite, damage i randr.
-
 %package -n xorg-xserver-Xvfb
 Summary:       Xvfb - virtual framebuffer X server
 Summary(pl.UTF-8):     Xvfb - serwer X z wirtualnym framebufferem
 Group:         X11/Servers
-Requires:      Mesa-libGL >= 7.1.0
+Requires:      OpenGL >= 1.2.1
 Requires:      mktemp
 Requires:      pixman >= %{pixman_ver}
 Requires:      util-linux
@@ -322,7 +414,7 @@ serwera X, ale odmawiają uruchomienia bez niego.
 Summary:       Init scripts for Xvfb
 Summary(pl.UTF-8):     Skrypty startowe dla Xvfb
 Group:         X11/Servers
-Requires:      xorg-xserver-Xvfb
+Requires:      xorg-xserver-Xvfb = %{version}-%{release}
 
 %description -n xorg-xserver-Xvfb-init
 This package contains init scripts for Xvfb and registers Xvfb as
@@ -337,16 +429,14 @@ Summary:  Xwayland - X server integrated into a Wayland window system
 Summary(pl.UTF-8):     Xwayland - serwer X integrowalny w Wayland
 Group:         X11/Servers
 %{?with_eglstream:Requires:    egl-wayland >= 1.0.2}
-%if %{with eglstream}
-Requires:      libepoxy >= 1.5.0
-%else
-Requires:      libepoxy >= 1.4.4
-%endif
+%{?with_glamor:Requires:       libepoxy >= 1.5.4}
 Requires:      pixman >= %{pixman_ver}
 Requires:      xorg-lib-libX11 >= 1.6
 Requires:      xorg-lib-libXext >= 1.0.99.4
 Requires:      xorg-lib-libXfont2 >= 2.0.0
 Requires:      xorg-lib-libXi >= 1.2.99.1
+# for protocol.txt
+Requires:      xorg-xserver-common = %{version}-%{release}
 
 %description -n xorg-xserver-Xwayland
 Xwayland - server integrated into a Wayland window system.
@@ -354,72 +444,17 @@ Xwayland - server integrated into a Wayland window system.
 %description -n xorg-xserver-Xwayland -l pl.UTF-8
 Xwayland - serwer X integrowalny w Wayland.
 
-%package devel
-Summary:       Header files for X.org server
-Summary(pl.UTF-8):     Pliki nagłówkowe dla serwera X.org
-Group:         X11/Development/Libraries
-Requires:      Mesa-libGL-devel >= 7.8.0
-Requires:      libdrm-devel >= 2.4.89
-Requires:      pixman-devel >= %{pixman_ver}
-Requires:      xorg-lib-libXfont2-devel >= 2.0.0
-Requires:      xorg-lib-libpciaccess-devel >= 0.12.901
-Requires:      xorg-lib-libxkbfile-devel
-%{?with_dri2:Requires: xorg-proto-dri2proto-devel >= 2.8}
-%{?with_dri3:Requires: xorg-proto-dri3proto-devel >= 1.0}
-Requires:      xorg-proto-dri3proto-devel >= 1.0
-Requires:      xorg-proto-fontsproto-devel >= 2.1.3
-Requires:      xorg-proto-glproto-devel >= 1.4.17
-Requires:      xorg-proto-inputproto-devel >= 2.3
-Requires:      xorg-proto-kbproto-devel >= 1.0.3
-Requires:      xorg-proto-presentproto-devel >= 1.1
-Requires:      xorg-proto-randrproto-devel >= 1.6.0
-Requires:      xorg-proto-renderproto-devel >= 0.11
-Requires:      xorg-proto-resourceproto-devel >= 1.2.0
-Requires:      xorg-proto-scrnsaverproto-devel >= 1.1
-Requires:      xorg-proto-videoproto-devel
-Requires:      xorg-proto-xextproto-devel >= 1:7.3.0
-Requires:      xorg-proto-xf86driproto-devel >= 2.1.0
-Requires:      xorg-proto-xineramaproto-devel
-Requires:      xorg-proto-xproto-devel >= 7.0.31
-Obsoletes:     X11-Xserver-devel < 1:7.0.0
-Obsoletes:     XFree86-Xserver-devel < 1:7.0.0
-%{?with_glamor:Obsoletes:      glamor-devel}
-
-%description devel
-Header files for X.org server.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe dla serwera X.org.
-
-%package source
-Summary:       X.org server source code
-Summary(pl.UTF-8):     Pliki źródłowe dla serwera X.org
-Group:         X11/Development/Libraries
-
-%description source
-X.org server source code.
-
-%description source -l pl.UTF-8
-Pliki źródłowe dla serwera X.org.
-
-%package -n xorg-xserver-libglx
-Summary:       GLX extension library for X.org server
-Summary(pl.UTF-8):     Biblioteka rozszerzenia GLX dla serwera X.org
+%package -n xorg-xserver-common
+Summary:       Common files for various X servers
+Summary(pl.UTF-8):     Pliki wspólne dla serwerów X
 Group:         X11/Servers
-Requires:      %{name} = %{version}-%{release}
-Requires:      Mesa-libGL >= 7.1.0
-%{?with_dri2:Requires: Mesa-libGL >= 9.2.0}
-# Mesa version glapi tables in glx/ dir come from
-Provides:      xorg-xserver-libglx(glapi) = 7.1.0
-Provides:      xorg-xserver-module(glx)
-Obsoletes:     X11-OpenGL-core < 1:7.0.0
-Obsoletes:     XFree86-OpenGL-core < 1:7.0.0
+Conflicts:     xorg-xserver-server < 1.20.11-2
 
-%description -n xorg-xserver-libglx
-GLX extension library for X.org server.
+%description -n xorg-xserver-common
+Common files for various X servers.
 
-%description -n xorg-xserver-libglx -l pl.UTF-8
-Biblioteka rozszerzenia GLX dla serwera X.org.
+%description -n xorg-xserver-common -l pl.UTF-8
+Pliki wspólne dla serwerów X.
 
 %prep
 %setup -q -n xorg-server-%{version}
@@ -428,6 +463,7 @@ Biblioteka rozszerzenia GLX dla serwera X.org.
 %patch4 -p1
 
 %patch6 -p1
+%patch7 -p1
 
 # xserver uses pixman-1 API/ABI so put that explictly here
 sed -i -e 's#<pixman\.h#<pixman-1/pixman.h#g' ./fb/fb.h ./include/miscstruct.h ./render/picture.h
@@ -467,6 +503,8 @@ fi
 %{__autoheader}
 %{__automake}
 %configure \
+       CPPFLAGS="%{rpmcppflags} %{tirpc_cflags}" \
+       LIBS="%{tirpc_libs}" \
        --libexecdir=%{_libdir}/xorg \
        --with-os-name="PLD/Linux" \
        --with-os-vendor="PLD/Team" \
@@ -486,18 +524,20 @@ fi
        %{?with_libunwind:--enable-libunwind} \
        %{?with_record:--enable-record} \
        --enable-secure-rpc \
+       --enable-suid-wrapper \
        %{?with_xcsecurity:--enable-xcsecurity} \
-       --enable-xephyr \
+       --enable-xephyr%{!?with_xephyr:=no} \
        %{?with_xf86bigfont:--enable-xf86bigfont} \
+       --enable-xnest%{!?with_xnest:=no} \
        %{?with_xselinux:--enable-xselinux} \
-       %{?with_wayland:--enable-xwayland} \
+       %{!?with_xvfb:--disable-xvfb} \
+       --enable-xwayland%{!?with_wayland:=no} \
        %{?with_eglstream:--enable-xwayland-eglstream} \
        %{!?with_systemtap:--without-dtrace} \
        --without-fop \
-       --enable-suid-wrapper \
        --with-systemd-daemon
 
-%{__make} -j1
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -522,10 +562,12 @@ install -p %{SOURCE12} $RPM_BUILD_ROOT%{_bindir}/xvfb-run
 
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/10-quirks.conf
 
+%if %{with xvfb}
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -d $RPM_BUILD_ROOT/etc/sysconfig
 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/Xvfb
 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/sysconfig/Xvfb
+%endif
 
 # Xorg.wrap config
 cat >$RPM_BUILD_ROOT/etc/X11/Xwrapper.config <<EOF
@@ -580,10 +622,6 @@ fi
 %attr(755,root,root) %{_bindir}/X
 %attr(755,root,root) %{_bindir}/Xorg
 %attr(4755,root,root) %{_bindir}/Xwrapper
-%attr(755,root,root) %{_bindir}/cvt
-%attr(755,root,root) %{_bindir}/gtf
-%dir %{_libdir}/xorg
-%{_libdir}/xorg/protocol.txt
 %attr(755,root,root) %{_libdir}/xorg/Xorg
 %attr(4755,root,root) %{_libdir}/xorg/Xorg.wrap
 %dir %{_libdir}/xorg/modules
@@ -620,9 +658,6 @@ fi
 %verify(not md5 mtime size) %{_datadir}/X11/xorg.conf.d/10-quirks.conf
 %{_mandir}/man1/Xorg.1*
 %{_mandir}/man1/Xorg.wrap.1*
-%{_mandir}/man1/Xserver.1*
-%{_mandir}/man1/cvt.1*
-%{_mandir}/man1/gtf.1*
 %{_mandir}/man4/exa.4*
 %{_mandir}/man4/fbdevhw.4*
 %{_mandir}/man4/modesetting.4*
@@ -630,6 +665,30 @@ fi
 %{_mandir}/man5/xorg.conf.5*
 %{_mandir}/man5/xorg.conf.d.5*
 
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/cvt
+%attr(755,root,root) %{_bindir}/gtf
+%{_mandir}/man1/cvt.1*
+%{_mandir}/man1/gtf.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/{Xinput,Xserver-spec}.html %{?with_systemtap:doc/dtrace/Xserver-DTrace.html}
+%{_includedir}/xorg
+%{_aclocaldir}/xorg-server.m4
+%{_pkgconfigdir}/xorg-server.pc
+
+%files source
+%defattr(644,root,root,755)
+# keep file perms from install time, but have default defattr to keep adapter happy
+%defattr(-,root,root,755)
+%{_usrsrc}/%{name}-%{version}
+
+%files -n xorg-xserver-libglx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
+
 %if %{with dmx}
 %files -n xorg-xserver-Xdmx
 %defattr(644,root,root,755)
@@ -651,16 +710,21 @@ fi
 %{_mandir}/man1/xdmxconfig.1*
 %endif
 
-%files -n xorg-xserver-Xnest
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/Xnest
-%{_mandir}/man1/Xnest.1*
-
+%if %{with xephyr}
 %files -n xorg-xserver-Xephyr
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/Xephyr
 %{_mandir}/man1/Xephyr.1*
+%endif
 
+%if %{with xnest}
+%files -n xorg-xserver-Xnest
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/Xnest
+%{_mandir}/man1/Xnest.1*
+%endif
+
+%if %{with xvfb}
 %files -n xorg-xserver-Xvfb
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/Xvfb
@@ -671,6 +735,7 @@ fi
 %defattr(644,root,root,755)
 %attr(754,root,root) /etc/rc.d/init.d/Xvfb
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/Xvfb
+%endif
 
 %if %{with wayland}
 %files -n xorg-xserver-Xwayland
@@ -678,19 +743,8 @@ fi
 %attr(755,root,root) %{_bindir}/Xwayland
 %endif
 
-%files devel
-%defattr(644,root,root,755)
-%doc doc/{Xinput,Xserver-spec}.html %{?with_systemtap:doc/dtrace/Xserver-DTrace.html}
-%{_includedir}/xorg
-%{_aclocaldir}/xorg-server.m4
-%{_pkgconfigdir}/xorg-server.pc
-
-%files source
+%files -n xorg-xserver-common
 %defattr(644,root,root,755)
-# keep file perms from install time, but have default defattr to keep adapter happy
-%defattr(-,root,root,755)
-%{_usrsrc}/%{name}-%{version}
-
-%files -n xorg-xserver-libglx
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so
+%dir %{_libdir}/xorg
+%{_libdir}/xorg/protocol.txt
+%{_mandir}/man1/Xserver.1*
This page took 0.105144 seconds and 4 git commands to generate.