File xorg-x11-server-rdp.spec of Package xorg-x11-server-rdp
#
# spec file for package xorg-x11-server-rdp (Version 7.3.99)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xorg-x11-server-rdp
%define dirsuffix 1.4.99.905
%define fglrx_driver_hack 0
### FIXME
%define vnc 0
BuildRequires: Mesa-devel fontconfig-devel freetype2-devel ghostscript-library glitz-devel libopenssl-devel libpng-devel pkgconfig xorg-x11 xorg-x11-devel xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXfixes-devel xorg-x11-libXmu-devel xorg-x11-libXp-devel xorg-x11-libXpm-devel xorg-x11-libXprintUtil-devel xorg-x11-libXrender-devel xorg-x11-libXt-devel xorg-x11-libXv-devel xorg-x11-libfontenc-devel xorg-x11-libxkbfile-devel xorg-x11-xtrans-devel
BuildRequires: xorg-x11-libXext-unstable-devel
#!BuildIgnore: xorg-x11-libXext-devel
#!BuildIgnore: xorg-x11-libxcb-devel
BuildRequires: xorg-x11-libX11-unstable-devel
#!BuildIgnore: xorg-x11-libX11-devel
BuildRequires: xorg-x11-proto-unstable-devel
#!BuildIgnore: xorg-x11-proto-devel
%if %vnc
BuildRequires: libjpeg-devel
%endif
Url: http://xorg.freedesktop.org/
%define EXPERIMENTAL 0
Version: 7.3.99
Release: 2
License: X11/MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/X11/Servers/XF86_4
Requires: xorg-x11-fonts-core xorg-x11
# this one as long as we use the static-unstable
# remove when we switch back
Requires: xorg-x11-libX11
Provides: xorg-x11-server:/usr/bin/X11rdp
Summary: RDP server for X.Org Server
Source: xorg-server-d98091.tar.bz2
Source1: libXi-1.1.99.1.tar.bz2
Source3: README.updates
Source4: xorgcfg.tar.bz2
Source5: modprobe.nvidia
Source7: xorg-docs-1.4.tar.bz2
Source8: xorg.conf.man-070818.tar
Patch: 64bit.diff
Patch1: fpic.diff
Patch2: p_default-module-path.diff
Patch6: pu_fixes.diff
Patch8: p_bug96328.diff
Patch11: ps_showopts.diff
Patch13: p_xorg_acpi.diff
Patch14: p_xkills_wrong_client.diff
Patch16: p_xnest-ignore-getimage-errors.diff
Patch18: p_ia64-console.diff
Patch22: disable-root-xorg_conf.diff
Patch23: disable-fbblt-opt.diff
Patch27: mouse.diff
Patch29: xephyr.diff
Patch30: p_ppc_domain_workaround.diff
Patch32: acpi_events.diff
Patch36: libdrm.diff
%if %vnc
### Dan Nicholson <dbn.lists@gmail.com>
#http://www.linuxfromscratch.org/~dnicholson/patches/xorg-server-1.4-vnc.patch
Patch39: xorg-server-1.4-vnc.patch
Patch40: xorg-server-1.4-vnc-fix.patch
Patch43: xorg-server-1.4-vnc-64bit.diff
%endif
Patch41: loadmod-bug197195.diff
Patch45: bug-197858_dpms.diff
Patch67: xorg-docs.diff
Patch72: randr12-8d230319040f0a7f72231da2bf5ec97dc3612e21.diff
Patch77: fbdevhw.diff
Patch79: edit_data_sanity_check.diff
Patch88: commit-f6401f9.diff
Patch93: pixman.diff
Patch99: commit-50e80c3.diff
Patch101: zap_warning_xserver.diff
Patch102: xorg-server-1.4-vnc-memory.diff
Patch109: events.diff
Patch111: xorg-server-1.4-vnc-render_sig11.diff
Patch112: fix-dpi-values.diff
Patch113: xserver-RDP.diff.bz2
%description
This package contains the RDP server for the X.Org Server.
%prep
%setup -q -n xorg-server-7.2.0.0-1.5.99.1 -a1 -a4 -a7 -a8
%patch
%patch1
%patch2
%patch6
#%patch7 -p2
%patch8 -p0
%patch11
#%patch12 -p2
%patch13
%patch14
%patch16 -p2
pushd hw/xfree86/os-support
%patch18
popd
%patch22
%patch23
%patch27
%patch29
### Bug 197572: X.Org PCI/IA64 patches
%patch30
%patch32 -p1
### FIXME
#%patch34 -p0
%patch36 -p0
%if %vnc
%patch39 -p1
%patch40 -p1
%patch43 -p0
%patch102 -p1
### disabled since it broke 24bit color depth support (Bug #390011)
#%patch110 -p0
%patch111 -p0
chmod 755 hw/vnc/symlink-vnc.sh
%endif
%patch41 -p1
%patch45 -p0
### FIXME
#%patch63 -p1
pushd xorg-docs-*
%patch67
popd
%patch72 -p1
%patch77
%patch79 -p1
### FIXME
#%patch83
%patch88 -p1
%patch93
%patch99 -p1
%patch101 -p1
### FIXME
#%patch103
#%patch104 -p1
#%patch106 -p1
%patch109 -p1
%patch112 -p0
%patch113 -p1
#%patch114 -p1
#%patch115 -p1
#%patch116 -p1
%build
pushd libXi-1.1.99.1
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" --prefix=$RPM_BUILD_ROOT/local \
--disable-shared --enable-static
make
make install
popd
autoreconf -fi
PKG_CONFIG_PATH=$RPM_BUILD_ROOT/local/lib/pkgconfig
export PKG_CONFIG_PATH
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -I$RPM_BUILD_ROOT/local/include" \
%if %fglrx_driver_hack
--with-release-major=7 \
--with-release-minor=2 \
--with-release-patch=0 \
--with-release-snap=0 \
--with-release-date="%(date)" \
--with-release-version=7.2.0.0 \
%endif
%if %vnc
%ifnarch s390 s390x
--enable-xcliplist \
%endif
--enable-vnc \
%endif
--prefix=/usr \
--sysconfdir=/etc \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--disable-builddocs \
--disable-install-libxf86config \
--disable-aiglx \
--enable-lbx \
--enable-xdmcp \
--enable-xdm-auth-1 \
--disable-dri \
--disable-xorg \
--disable-dri \
--disable-dri2 \
--disable-glx \
--disable-dmx \
--disable-xnest \
--disable-kdrive \
--disable-xfake \
--disable-xephyr \
--disable-xsdl \
--disable-xvfb \
--disable-kbd_mode \
--disable-xprint \
--disable-config-dbus \
--disable-xkb \
--enable-rdp \
--with-log-dir="/var/log" \
--with-os-name="openSUSE" \
--with-os-vendor="SUSE LINUX" \
--enable-builtin-fonts \
--with-xkb-path="/usr/share/X11/xkb" \
--with-xkb-output="/var/lib/xkb/compiled"
#make %{?jobs:-j %jobs}
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/xorg-server.pc
rm ${RPM_BUILD_ROOT}%{_libdir}/xorg/protocol.txt
rm $RPM_BUILD_ROOT/usr/share/aclocal/xorg-server.m4
rm ${RPM_BUILD_ROOT}%{_mandir}/man1/Xserver.1*
rm $RPM_BUILD_ROOT/var/lib/xkb/compiled/README.compiled
rm -fr $RPM_BUILD_ROOT/local
%clean
rm -rf "$RPM_BUILD_ROOT"
%verifyscript
%files
%defattr(-,root,root)
/usr/bin/X11rdp
%changelog
* Wed Sep 17 2008 hfiguiere@suse.de
- Disable XKB and use builtin fonts
- Update xserver-RDP.diff
* Fix initialization of core input devices
* Tue Sep 02 2008 hfiguiere@suse.de
- Initial release.
* FATE 304245 (NOMAD)