File xorg-x11-server-dmx.spec of Package xorg-x11-server-dmx
#
# spec file for package xorg-x11-server-dmx (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-dmx
%define dirsuffix 1.4.99.905
%define fglrx_driver_hack 0
### FIXME
%define vnc 0
BuildRequires: Mesa-devel bison dbus-1-devel flex fontconfig-devel freetype2-devel ghostscript-library glitz-devel libopenssl-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
BuildRequires: libavahi-devel
%if %vnc
BuildRequires: libjpeg-devel
%endif
Url: http://xorg.freedesktop.org/
%define EXPERIMENTAL 0
Version: 7.3.99
Release: 8
License: X11/MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/X11/Servers/XF86_4
Requires: xorg-x11-fonts-core xorg-x11 dbus-1
# we use static libX11 so we need this to be explicit
Requires: xorg-x11-libX11
Provides: xorg-x11-server:/usr/bin/Xdmx xorg-x11-server:/usr/bin/Xfake
Summary: X.Org Server
Source: xorg-server-d98091.tar.bz2
Source1: libXi-1.1.99.1.tar.bz2
Source3: README.updates
Source4: xorgcfg.tar.bz2
%if %suse_version > 1010
Source5: modprobe.nvidia
%endif
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-NOMAD.diff
Patch115: xorg-java-wmhack-2.diff
Patch116: xserver-add-atKeynames.h.diff
Patch117: dbus-conf.diff
Patch118: xserver-dmx-disable-xi.diff
%description
This package contains 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
%patch117 -p1
%patch118 -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
#mv $RPM_BUILD_ROOT/local/lib/pkgconfig/xi.pc $RPM_BUILD_ROOT/local/lib/pkgconfig/xi-unstable.pc
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 \
--enable-dmx \
--disable-xnest \
--enable-kdrive \
--enable-xfake \
--disable-xephyr \
--disable-xsdl \
--disable-xvfb \
--disable-kbd_mode \
--disable-xprint \
--enable-config-dbus \
--disable-config-hal \
--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
make -C hw/kdrive %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
make -C hw/kdrive install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/usr/bin/dmxaddinput
rm $RPM_BUILD_ROOT/usr/bin/dmxaddscreen
rm $RPM_BUILD_ROOT/usr/bin/dmxreconfig
rm $RPM_BUILD_ROOT/usr/bin/dmxresize
rm $RPM_BUILD_ROOT/usr/bin/dmxrminput
rm $RPM_BUILD_ROOT/usr/bin/dmxrmscreen
rm $RPM_BUILD_ROOT/usr/bin/dmxwininfo
rm $RPM_BUILD_ROOT/usr/bin/xdmx
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/dmxconnect
/etc/dbus-1/system.d/xorg-server.conf
/usr/bin/Xdmx
/usr/bin/Xfake
%{_mandir}/man1/Xdmx.1*
%changelog
* Fri Nov 21 2008 davidr@novell.com
- Fix possible crash in input handling code.
- Fix close down crash.
- Fix handling of activation of input devices.
- Fix handling of shaped windows in DnD system.
- Fix possible crash when attaching backend server.
- Add xserver-dmx-disable-xi.diff patch that disables use of
backend server Xinput extension usage to workaround some
issues.
* Wed Nov 12 2008 davidr@novell.com
- Fix pointer warping.
* Tue Nov 11 2008 davidr@novell.com
- Fix server reset.
* Tue Nov 11 2008 davidr@novell.com
- Fix error handling in the DMX implementation of
MIT-SHM GetImage.
- Fix input device grab handling.
* only try to grab back-end server devices when they are active
* try to establish existing grab when device becomes active
* Fri Nov 07 2008 davidr@novell.com
- Fix critical GetImage bug that made firefox crash.
- Fix support for simultaneous selection conversions of the
same selection.
- Define services for display offsets 10-19 in xorg-server.conf.
* Thu Oct 23 2008 davidr@novell.com
- Fix broken implementation of incremental selection conversion.
* Sun Oct 19 2008 davidr@novell.com
- Fix selection conversion with MULTIPLE target.
- Fix keyboard grab issues.
- Important XDND fixes.
* Wed Oct 15 2008 davidr@novell.com
- Use one output and one crtc for each screen by default.
- Fix annoying screensaver issue.
- Fix override_redirect attribute for DMX root window.
- Fix error reporting issues.
- Make selection sharing work properly.
- Fix timing issue in screen attach code.
- Make DnD support work properly.
- Fix some critical back-end server dispatch issues.
* Wed Sep 17 2008 hfiguiere@suse.de
- Don't try to remove files that are no longer installed
- Disable HAL config support and use builtin fonts
- Update xserver-NOMAD.diff
* Fix MIT-SHM extension detection and keycode mapping
* Tue Sep 02 2008 hfiguiere@suse.de
- Initial release.
* FATE 304241 (NOMAD)