Blob Blame History Raw
%define tarball xorg-server
%define moduledir %{_libdir}/xorg/modules
%define sdkdir %{_includedir}/xorg

%define cvsdate cvs20050830

Summary:   Xorg X11 Server
Name:      xorg-x11-server
Version:   0.99.1
Release:   2.%{cvsdate}
License:   MIT/MIT
Group:     User Interface/X
BuildRoot: %{_tmppath}/%{name}-%{version}-root

# INFO: We don't ship the X server on s390/s390x/ppc64
Excludearch: s390 s390x ppc64

%define xservers --enable-xorg --enable-dmx --enable-xvfb --enable-xnest

BuildRequires: xorg-x11-proto-devel
BuildRequires: xorg-x11-xtrans-devel
BuildRequires: xorg-x11-libXfont-devel
BuildRequires: xorg-x11-libXau-devel
BuildRequires: xorg-x11-libxkbfile-devel
# xorg-x11-libXdmcp-devel needed for Xdmx
BuildRequires: xorg-x11-libXdmcp-devel
# xorg-x11-libXmu-devel needed for Xdmx
BuildRequires: xorg-x11-libXmu-devel
# xorg-x11-libXext-devel needed for Xdmx
BuildRequires: xorg-x11-libXext-devel
# xorg-x11-libX11-devel needed for Xdmx
BuildRequires: xorg-x11-libX11-devel
# xorg-x11-libXrender-devel needed for Xdmx
BuildRequires: xorg-x11-libXrender-devel
# xorg-x11-libXi-devel needed for Xdmx
BuildRequires: xorg-x11-libXi-devel
# xorg-x11-libfontenc-devel needed for Xorg, but not specified by
# upstream deps.  Build fails without it.
BuildRequires: xorg-x11-libfontenc-devel
BuildRequires: pkgconfig

Xserver RPM

# ----- Xorg --------------------------------------------------------

%package Xorg
Summary: The primary Xorg server
Group: User Interface/X
Obsoletes: XFree86 xorg-x11
Provides: Xorg

%description Xorg X11 is an open source implementation of the X Window System.  It
provides the basic low level functionality which full fledged
graphical user interfaces (GUIs) such as GNOME and KDE are designed

# ----- Xnest -------------------------------------------------------

%package Xnest
Summary: A nested server.
Group: User Interface/X
Requires: %{name} = %{version}-%{release}
Obsoletes: XFree86-Xnest xorg-x11-Xnest
Provides: Xnest

%description Xnest
Xnest is an X server, which has been implemented as an ordinary
X application.  It runs in a window just like other X applications,
but it is an X server itself in which you can run other software.  It
is a very useful tool for developers who wish to test their
applications without running them on their real X server.

# ----- Xdmx --------------------------------------------------------

%package Xdmx
Summary: Distributed Multihead X Server and utilities
Group: User Interface/X
Requires: %{name}-Xorg = %{version}-%{release}
Obsoletes: xorg-x11-Xnest
Provides: Xdmx

%description Xdmx
Xdmx is proxy X server that provides multi-head support for multiple displays
attached to different machines (each of which is running a typical X server).
When Xinerama is used with Xdmx, the multiple displays on multiple machines
are presented to the user as a single unified screen.  A simple application
for Xdmx would be to provide multi-head support using two desktop machines,
each of which has a single display device attached to it.  A complex
application for Xdmx would be to unify a 4 by 4 grid of 1280x1024 displays
(each attached to one of 16 computers) into a unified 5120x4096 display.

# ----- Xvfb --------------------------------------------------------

%package Xvfb
Summary: A X Windows System virtual framebuffer X server.
Group: User Interface/X
Requires: %{name} = %{version}-%{release}
Obsoletes: XFree86-Xvfb xorg-x11-Xvfb
Provides: Xvfb

%description Xvfb
Xvfb (X Virtual Frame Buffer) is an X server that is able to run on
machines with no display hardware and no physical input devices.
Xvfb simulates a dumb framebuffer using virtual memory.  Xvfb does
not open any devices, but behaves otherwise as an X display.  Xvfb
is normally used for testing servers.

# ----- sdk ---------------------------------------------------------

%package sdk
Summary: SDK for X server driver module development
Group: User Interface/X
Obsoletes: XFree86-sdk xorg-x11-sdk
Provides: xorg-x11-server-sdk = 7.0.0

%description 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.

# -------------------------------------------------------------------

%setup -q -n %{tarball}-%{version}-%{cvsdate}

%configure %{xservers} --enable-composite --disable-xprint --disable-static --with-module-dir=%{moduledir}

%makeinstall moduledir=$RPM_BUILD_ROOT%{moduledir} sdkdir=$RPM_BUILD_ROOT%{sdkdir}

# Remove all libtool archives (*.la) from modules directory, as we do not
# ship these.
find $RPM_BUILD_ROOT%{_libdir}/xorg/modules -name '*.la'| xargs rm

# Make these directories now so the Xorg package can own them.
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,input}


# FIXME: where did the man pages go?

# ----- Xorg --------------------------------------------------------

%files Xorg
# FIXME: The build fails to find the Changelog for some reason.
#%doc ChangeLog
%dir %{_bindir}
%dir %{_libdir}/xorg
%dir %{_libdir}/xorg/modules
%dir %{_libdir}/xorg/modules/drivers
%dir %{_libdir}/xorg/modules/input

# ----- Xnest -------------------------------------------------------

%files Xnest
%dir %{_bindir}

# ----- Xdmx --------------------------------------------------------

# FIXME: dmx tools? (dmxtodmx, vdltodmx, xdmxconfig)

%files Xdmx
%dir %{_bindir}

# ----- Xvfb --------------------------------------------------------

%files Xvfb
%dir %{_bindir}

# ----- sdk ---------------------------------------------------------

%files sdk
%dir %{_libdir}/pkgconfig
%dir %{_includedir}
%dir %{_includedir}/xorg

# -------------------------------------------------------------------

* Tue Aug 30 2005  <> - 0.99.1-2.cvs20050830
- Go back to %spec -n, use new cvs snapshot that supports overriding
  moduledir during make install, use %makeinstall.
- Drop %{moduledir}/multimedia globs.

* Fri Aug 26 2005 Mike A. Harris <> 0.99.1-2.cvs20050825.0
- Added build dependency on xorg-x11-libfontenc-devel, as the build fails
  half way through without it, even though upstream dependencies do not
  specify it as required.

* Tue Aug 23 2005  <> 0.99.1-1
- Initial spec file for the modular X server.