Blob Blame Raw
%global gitdate 20101123

Name:           wayland
Version:        0.1
Release:        0.2%{?gitdate:.%{gitdate}}%{?dist}
Summary:        Wayland compositor

Group:          User Interface/X
License:        GPLv2+
URL:            http://%{name}
Source0:        wayland-%{gitdate}.tar.bz2
Patch0:         wayland-no-clients.patch
Patch1:         wayland-install-compositor.patch

BuildRequires:  autoconf automake libtool
BuildRequires:  pkgconfig(glesv2) pkgconfig(egl) pkgconfig(libffi)
BuildRequires:  pkgconfig(gl) pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) pkgconfig(libudev) >= 136
BuildRequires:  pkgconfig(libdrm) pkgconfig(xcb-dri2) pkgconfig(xcb-xfixes)
BuildRequires:  pkgconfig(poppler-glib) pkgconfig(gdk-2.0)
BuildRequires:  expat-devel
#BuildRequires: pkgconfig(cairo-gl)
Requires:       wayland-common = %{version}-%{release}

Wayland is a protocol for a compositor to talk to its clients as well as a C
library implementation of that protocol. The compositor can be a standalone
display server running on Linux kernel modesetting and evdev input devices,
an X application, or a wayland client itself. The clients can be traditional
applications, X servers (rootless or fullscreen) or other display servers.

%package common
Summary: Common data files for wayland
License: CC-BY-SA
%description common
Common data files for wayland

%package devel
Summary: Common headers for wayland
License: MIT
%description devel
Common headers for wayland

%package -n libwayland-client
Summary: Wayland client library
License: MIT
%description -n libwayland-client
Wayland client library

%package -n libwayland-server
Summary: Wayland server library
License: MIT
%description -n libwayland-server
Wayland server library

%package -n libwayland-client-devel
Summary: Headers and symlinks for developing wayland client applications
License: MIT
Requires: libwayland-client = %{version}-%{release}
Requires: wayland-devel = %{version}-%{release}
%description -n libwayland-client-devel
Headers and symlinks for developing wayland client applications.

%package -n libwayland-server-devel
Summary: Headers and symlinks for developing wayland server applications
License: MIT
Requires: libwayland-server = %{version}-%{release}
Requires: wayland-devel = %{version}-%{release}
%description -n libwayland-server-devel
Headers and symlinks for developing wayland server applications.

%setup -q -n %{name}-%{gitdate}
%patch0 -p1 -b .no-clients
%patch1 -p1 -b .compositor

autoreconf -v --install
%configure --disable-static
make %{?_smp_mflags}


find $RPM_BUILD_ROOT -name \*.la | xargs rm -f


%post -n libwayland-client -p /sbin/ldconfig
%postun -n libwayland-client -p /sbin/ldconfig

%post -n libwayland-server -p /sbin/ldconfig
%postun -n libwayland-server -p /sbin/ldconfig


%files common
%doc data/COPYING

%files devel

%files -n libwayland-client

%files -n libwayland-server

%files -n libwayland-client-devel

%files -n libwayland-server-devel

* Tue Nov 23 2010 Adam Jackson <> 0.1-0.2}
- Today's git snap
- Fix udev rule install (#653353)

* Mon Nov 15 2010 Adam Jackson <> 0.1-0.1.20101111
- Initial packaging