Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37761229
en ru br
ALT Linux repositórios
S:21.1.8-alt1
5.0: 1.6.1-alt3
4.1: 1.4.2-alt10.M41.1

Group :: Sistema/X11
RPM: xorg-server

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define xf86 XFree86

%define mesaversion 7.4
%define xorgversion 7.4.3

%define _libexecdir /usr/libexec
%define _modulesdir %_libdir/X11/modules
%define _fontsdir %_datadir/fonts
%define _deffontdir catalogue:%_sysconfdir/X11/fontpath.d

%def_enable dmx
%def_enable xnest
%def_disable ipv6

%def_enable xephyr
%if_enabled xephyr
%def_enable kdrive
%else
%def_disable kdrive
%endif

Name: xorg-server
Version: 1.6.1
Release: alt3
Serial: 2
License: MIT/X11
Summary: Xserver - X Window System display server
Group: System/X11
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>

Obsoletes: %xf86-server xorg-x11-server
Provides: %xf86-server = 4.4 xserver-wrapper xorg-x11-server = %serial:%version-%release
PreReq: xorg-server-control >= 1.3-alt1 %name-common = %version-%release
Conflicts: xorg-x11-xfs <= 1:1.0.1-alt3

Provides: XORG_ABI_VIDEODRV = 5.0
Provides: XORG_ABI_XINPUT = 4.0

PreReq: libGL >= %mesaversion
Requires: libxorgconfig = %version-%release xorg-dri-swrast >= %mesaversion
Requires: xset iceauth xdpyinfo glxinfo xdriinfo
Requires: xorg-drv-vesa xorg-drv-mouse xorg-drv-keyboard xorg-drv-evdev
Provides: xorg-x11-extensions-dri = %serial:%version-%release
Provides: xorg-x11-extensions-glx = %serial:%version-%release xorg-extensions-glx = %serial:%version-%release
Obsoletes: xorg-x11-extensions-dri xorg-x11-extensions-glx xorg-extensions-glx

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires: flex libSDL-devel libXau-devel libXaw-devel libXdmcp-devel libXfixes-devel libXfont-devel libXi-devel libXrender-devel
BuildRequires: libXext-devel libXres-devel libXtst-devel libXv-devel libdmx-devel libGL-devel libpciaccess-devel libpixman-devel
BuildRequires: libXpm-devel libXinerama-devel libssl-devel libxkbfile-devel xorg-bigreqsproto-devel xorg-compositeproto-devel
BuildRequires: xorg-dri2proto-devel xorg-damageproto-devel xorg-dmxproto-devel xorg-evieproto-devel xorg-glproto-devel xorg-randrproto-devel
BuildRequires: xorg-resourceproto-devel xorg-scrnsaverproto-devel xorg-xcmiscproto-devel xorg-xf86dgaproto-devel
BuildRequires: xorg-xf86driproto-devel xorg-xf86miscproto-devel xorg-xf86vidmodeproto-devel xorg-xineramaproto-devel
BuildRequires: xorg-util-macros libhal-devel libfontenc-devel xorg-xtrans-devel >= 1.2.1-alt2

%description
X  is  the  generic name for the X Window System display server.  It is
frequently a link or a copy of the appropriate server binary for  driving
the most frequently used server on a given machine.

%package common
Summary: The X server common files
Group: System/X11
PreReq: startup >= 0.9.2-alt1
Requires: xorg-x11-rgb xauth fonts-bitmap-misc >= 7.0.0-alt2
Requires: xkbcomp xkeyboard-config
Provides: xorg-x11-server-common = %serial:%version-%release libXiconfig
Obsoletes: xorg-x11-server-common libXiconfig

%description common
%name-common is common files for X.Org.

%package -n xorg-drv-multimedia
Summary: Multimedia drivers
Group: System/X11
Requires: %name = %version-%release
Provides: xorg-x11-drv-multimedia = %serial:%version-%release
Obsoletes: xorg-x11-drv-multimedia

%description -n xorg-drv-multimedia
Multimedia drivers for X server

%package -n xorg-xvfb
Summary: A virtual framebuffer X Windows System server for X.Org
Group: System/X11
Requires: %name-common = %version-%release xorg-dri-swrast >= %mesaversion
Provides: %xf86-Xvfb = 4.4 xorg-x11-Xvfb = %xorgversion-%release
Provides: xorg-x11-xvfb = %serial:%version-%release
Obsoletes: %xf86-Xvfb xorg-x11-Xvfb xorg-x11-xvfb

%description -n xorg-xvfb
Xvfb (X Virtual Frame Buffer) is an X Windows System server
that is capable of running on machines with no display hardware and no
physical input devices.  Xvfb emulates a dumb framebuffer using virtual
memory.  Xvfb doesn't open any devices, but behaves otherwise as an X
display.  Xvfb is normally used for testing servers.  Using Xvfb, the mfb
or cfb code for any depth can be exercised without using real hardware
that supports the desired depths.  Xvfb has also been used to test X
clients against unusual depths and screen configurations, to do batch
processing with Xvfb as a background rendering engine, to do load testing,
to help with porting an X server to a new platform, and to provide an
unobtrusive way of running applications which really don't need an X
server but insist on having one.

If you need to test your X server or your X clients, you may want to
install Xvfb for that purpose.

%package -n xorg-xnest
Summary: A nested X.Org server
Group: System/X11
Requires: %name-common = %version-%release xorg-dri-swrast >= %mesaversion
Provides: %xf86-Xnest = 4.4 xorg-x11-Xnest = %xorgversion-%release
Provides: xorg-x11-xnest = %serial:%version-%release
Obsoletes: %xf86-Xnest xorg-x11-Xnest xorg-x11-xnest

%description -n xorg-xnest
Xnest is an X Window System server which runs in an X window.
Xnest is a 'nested' window server, actually a client of the
real X server, which manages windows and graphics requests
for Xnest, while Xnest manages the windows and graphics
requests for its own clients.

You will need to install Xnest if you require an X server which
will run as a client of your real X server (perhaps for
testing purposes).

%package -n xorg-xephyr
Summary: A kdrive-based X server
Group: System/X11
Requires: %name = %version-%release
Provides: xorg-x11-xephyr = %serial:%version-%release
Obsoletes: xorg-x11-xephyr

%description -n xorg-xephyr
Xephyr is a kdrive based X Server which targets a window on
a host X Server as its framebuffer. Unlike Xnest it supports
modern X extensions (even if host server doesn't) such as Composite,
Damage, randr etc.

It uses SHM Images and shadow framebuffer updates to provide
good performance.
It also has a visual debugging mode for observing screen updates.

%package -n xorg-xdmx
Summary: Multi-head X server
Group: System/X11
Requires: %name = %version-%release
Provides: xorg-x11-Xdmx = %xorgversion-%release
Provides: xorg-x11-xdmx = %serial:%version-%release
Obsoletes: xorg-x11-Xdmx xorg-x11-xdmx

%description -n xorg-xdmx
Xdmx  is  a proxy X server that uses one or more other X servers as its
display devices.  It provides multi-head X functionality  for  displays
that  might  be  located  on  different  machines.  Xdmx functions as a
front-end X server that acts as a proxy to a set of back-end X servers.
All  of  the  visible  rendering  is  passed to the back-end X servers.
Clients connect to the Xdmx front-end, and  everything  appears  as  it
would  in  a  regular multi-head configuration.  If Xinerama is enabled
(e.g., with +xinerama on the command line), the clients  see  a  single
large screen.

Xdmx communicates to the back-end X servers using the standard X11 pro-
tocol, and standard and/or commonly available X server extensions.

%package -n libxorgconfig
Summary: Shared libraries for read and write XOrg configuration files
Group: System/Libraries

%description -n libxorgconfig
This package contains the shared libraries for read and write XOrg configuration
files.

%package -n libxorgconfig-devel
Summary: xf86config Library and Header Files
Group: Development/C
Requires: libxorgconfig = %version-%release
Conflicts: XFree86-devel < 4.4 xorg-x11-devel <= 0:6.9.0

%description -n libxorgconfig-devel
libxorgconfig-devel contains the libraries and header files needed to
develop programs which make use of libxorgconfig.

%package -n xorg-sdk
Summary: SDK for X server driver module development
Group: Development/C
Provides: xorg-x11-sdk = %serial:%version-%release
Obsoletes: xorg-x11-sdk
Requires: libdrm-devel libpciaccess-devel libpixman-devel libxorgconfig-devel xorg-util-macros
# sed -ne "s|^#include[[:space:]]*<\(X11/.*\)>.*|/usr/include/\1|p" /usr/include/xorg/* | xargs rpmquery -f | sort -u
Requires: libxkbfile-devel xorg-dri2proto-devel xorg-fontsproto-devel xorg-inputproto-devel xorg-kbproto-devel
Requires: xorg-randrproto-devel xorg-renderproto-devel xorg-videoproto-devel xorg-xextproto-devel xorg-xproto-devel

%description -n xorg-sdk
The SDK package provides the developmental files which are necessary for
developing X server driver modules, and for compiling driver modules
outside of the standard X11 source code tree.  Developers writing video
drivers, input drivers, or other X modules should install this package.

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--with-os-name="%(cat %_sysconfdir/altlinux-release)" \
--with-os-vendor="%(uname -m)" \
--with-builder-addr="%packager" \
--with-vendor-web=https://bugzilla.altlinux.org/ \
--with-serverconfig-path=%_datadir/X11 \
--with-module-dir=%_modulesdir \
--with-dri-driver-path=%_modulesdir/dri \
--with-log-dir=%_logdir \
--with-xkb-path=%_datadir/X11/xkb \
--with-xkb-output=%_localstatedir/xkb \
--with-default-font-path=%_deffontdir \
--with-fontdir=%_datadir/X11/fonts \
--enable-xcsecurity \
--enable-config-hal \
--enable-drv-switch \
--with-drv-switch-path=%_libexecdir/X11/drv.d \
--disable-config-dbus \
--disable-record \
--enable-dri2 \
%{subst_enable dmx} \
%{subst_enable xnest} \
--enable-glx-tls \
%{subst_enable xephyr} \
%{subst_enable kdrive} \
--enable-aiglx \
%{subst_enable ipv6} \
--disable-static
%make_build

%install
%make DESTDIR=%buildroot install

find %buildroot%_modulesdir -name \*.la -delete

mkdir -p %buildroot%_modulesdir/{drivers,input}

mkdir -p %buildroot%_datadir/X11
mkdir -p %buildroot%_sysconfdir/X11/app-defaults

mkdir -p %buildroot%_sysconfdir/X11/%_lib

touch %buildroot%_sysconfdir/X11/xorg.conf

# move GLX

mv %buildroot%_modulesdir/extensions/libglx.so %buildroot%_libdir/X11/libglx.so
ln -sf ../../..%_libdir/X11/libglx.so %buildroot%_sysconfdir/X11/%_lib/libglx.so
ln -sf ../../../../..%_sysconfdir/X11/%_lib/libglx.so %buildroot%_modulesdir/extensions/libglx.so
mv %buildroot%_modulesdir/extensions/libdri.so %buildroot%_libdir/X11/libdri.so
ln -sf ../../..%_libdir/X11/libdri.so %buildroot%_sysconfdir/X11/%_lib/libdri.so
ln -sf ../../../../..%_sysconfdir/X11/%_lib/libdri.so %buildroot%_modulesdir/extensions/libdri.so

install -pD -m644 xserver.pamd %buildroot%_sysconfdir/pam.d/xserver
mkdir -p %buildroot%_sysconfdir/security/console.apps
touch %buildroot%_sysconfdir/security/console.apps/xserver

# rpm macros

install -pD -m644 xorg-sdk.rpmmacros %buildroot%_rpmmacrosdir/xorg-sdk

%pre
%_sbindir/groupadd -r -f xgrp
%pre_control xorg-server

%post
%post_control xorg-server
[ -r %_sysconfdir/X11/%_lib/libglx.so ] || \
ln -sf ../../..%_libdir/X11/libglx.so %_sysconfdir/X11/%_lib/libglx.so
[ -r %_sysconfdir/X11/%_lib/libdri.so ] || \
ln -sf ../../..%_libdir/X11/libdri.so %_sysconfdir/X11/%_lib/libdri.so

%triggerin -- %xf86-server, xorg-x11-server, xorg-server <= 2:1.5.0-alt1
cd %_sysconfdir/X11
for d in xorg.conf XF86Config XF86Config-4; do
if [ -r $d -a -w $d ]; then
subst '/^.*Load.*\"\(pex5\|xie\|xtt\|drm\|type1\|record\).*\"/d' $d
subst 's,Load\(.*\)\"\/usr\/X11R6\/lib\/modules\/extensions\/libglx.\(a\|so\)\",Load\1"glx",' $d
subst 's/^.*RgbPath/#&/' $d
subst 's/^.*ModulePath/#&/' $d
subst 's/^.*FontPath/#&/' $d
subst '/^.*Option.*\"XkbRules\".*/d' $d
subst 's,Option\(.*\"XkbOptions\".*grp:\)ctrl_toggle\(.*\),Option\1rctrl_toggle\2,' $d
subst 's,Option\(.*\"XkbOptions\".*grp:\)rctrl_shift_toggle\(.*\),Option\1ctrl_shift_toggle\2,' $d
subst 's,Driver\(.*\)\"[kK]eyboard\",Driver\1"kbd",' $d
subst 's,Driver\(.*\)\"\(.*_gatos\)\",Driver\1"ati",' $d
subst 's,Driver\(.*\)\"via.*\",Driver\1"openchrome",' $d
fi
done
for d in XF86Config-4 XF86Config ; do
if [ -r $d ]; then
if [ -r xorg.conf ]; then
mv -f $d $d.obsoleted
else
mv -f $d xorg.conf
fi
fi
done

%files
%config(noreplace) %_sysconfdir/pam.d/xserver
%config(missingok noreplace) %_sysconfdir/security/console.apps/xserver
%dir %_sysconfdir/X11/%_lib
%ghost %_sysconfdir/X11/%_lib/libglx.so
%ghost %_sysconfdir/X11/%_lib/libdri.so
%ghost %_sysconfdir/X11/xorg.conf
%_bindir/X
%attr(0700,root,root) %_bindir/Xorg
%_bindir/gtf
%_bindir/cvt
%_libdir/X11/lib*
%dir %_modulesdir/drivers
%dir %_modulesdir/input
%dir %_modulesdir/linux
%_modulesdir/linux/libfbdevhw.so
%dir %_modulesdir/extensions
%_modulesdir/extensions/libdbe.so
%_modulesdir/extensions/libextmod.so
%_modulesdir/extensions/libglx.so
%_modulesdir/extensions/libdri.so
%_modulesdir/extensions/libdri2.so
%_modulesdir/*.so
%dir %_libexecdir/X11
%_libexecdir/X11/drv.d
%_man1dir/Xorg.1*
%_man1dir/gtf.1*
%_man1dir/cvt.1*
%_man1dir/Xserver.1*
%_man4dir/fbdevhw.4*
%_man4dir/exa.4*
%_man5dir/xorg.conf.5*

%files common
%dir %_sysconfdir/X11/app-defaults
%config(noreplace, missingok) %_sysconfdir/hal/fdi/policy/10-x11-input.fdi
%dir %_libdir/X11
%dir %_datadir/X11
%_datadir/X11/protocol.txt
%dir %_modulesdir
%_localstatedir/xkb

%files -n xorg-drv-multimedia
%_modulesdir/multimedia

%files -n xorg-xvfb
%_bindir/Xvfb
%_man1dir/Xvfb.1*

%if_enabled xnest
%files -n xorg-xnest
%_bindir/Xnest
%_man1dir/Xnest.1*
%endif

%if_enabled xephyr
%files -n xorg-xephyr
%_bindir/Xephyr
%_man1dir/Xephyr.1*
%endif

%if_enabled dmx
%files -n xorg-xdmx
%_bindir/*dmx*
%_man1dir/*dmx*.1*
%endif

%files -n libxorgconfig
%_libdir/*.so.*

%files -n libxorgconfig-devel
%_includedir/*.h
%_libdir/libx*.so

%files -n xorg-sdk
%_includedir/xorg
%_pkgconfigdir/*.pc
%_datadir/aclocal/*.m4
%_rpmmacrosdir/xorg-sdk

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009