2012-07-09 17:18:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package weston
|
|
|
|
#
|
2015-01-27 18:01:54 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-07-09 17:18:36 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: weston
|
|
|
|
%define lname libweston0
|
2015-01-25 14:30:37 +01:00
|
|
|
Version: 1.6.1
|
2012-07-09 17:18:36 +02:00
|
|
|
Release: 0
|
2014-01-24 13:11:36 +01:00
|
|
|
Summary: Wayland Reference Compositor
|
2013-07-24 18:52:31 +02:00
|
|
|
License: HPND and CC-BY-SA-3.0
|
2014-01-24 13:31:27 +01:00
|
|
|
Group: System/X11/Servers
|
2014-01-24 13:11:36 +01:00
|
|
|
Url: http://wayland.freedesktop.org/
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
#Git-Clone: git://anongit.freedesktop.org/wayland/weston
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/wayland/weston/
|
2013-04-17 08:11:16 +02:00
|
|
|
Source: http://wayland.freedesktop.org/releases/%name-%version.tar.xz
|
2014-09-08 15:05:23 +02:00
|
|
|
Patch1: 0001-build-honor-results-obtained-by-pkg-config-libinput.patch
|
|
|
|
BuildRequires: autoconf >= 2.64
|
|
|
|
BuildRequires: automake >= 1.11
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: libexpat-devel
|
2012-09-04 00:30:09 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2014-09-08 15:05:23 +02:00
|
|
|
BuildRequires: libtool >= 2.2
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: libvpx-devel
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: rsvg-view
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: xkeyboard-config
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: xz
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.10.0
|
2012-07-09 17:36:33 +02:00
|
|
|
BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(cairo-xcb)
|
|
|
|
BuildRequires: pkgconfig(colord) >= 0.1.27
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.6
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(egl) >= 7.10
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(freerdp)
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(gbm)
|
2012-07-09 17:36:33 +02:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(glesv2)
|
2012-07-09 17:36:33 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2012-07-09 17:36:33 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2013-07-15 11:58:15 +02:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.30
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
2014-01-24 13:11:36 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd-login) >= 198
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(libudev) >= 136
|
2013-03-24 18:28:42 +01:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.25.2
|
2012-07-09 17:36:33 +02:00
|
|
|
BuildRequires: pkgconfig(poppler-glib)
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.5.91
|
2012-07-09 17:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-egl)
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
2014-09-19 22:53:05 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.5.91
|
2013-10-30 20:41:11 +01:00
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
2013-12-24 23:45:16 +01:00
|
|
|
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
|
2013-10-30 20:41:11 +01:00
|
|
|
Requires: xkeyboard-config
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%description
|
2012-09-04 00:30:09 +02:00
|
|
|
Weston is the reference implementation of a Wayland compositor, and a
|
|
|
|
useful compositor in its own right. Weston has various backends that
|
|
|
|
lets it run on Linux kernel modesetting and evdev input as well as
|
|
|
|
under X11. Weston ships with a few example clients, from simple
|
|
|
|
clients that demonstrate certain aspects of the protocol to more
|
|
|
|
complete clients and a simplistic toolkit. There is also a quite
|
|
|
|
capable terminal emulator (weston-terminal) and an toy/example
|
|
|
|
desktop shell. Finally, weston also provides integration with the
|
|
|
|
Xorg server and can pull X clients into the Wayland desktop and act
|
|
|
|
as a X window manager.
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2013-03-24 17:34:03 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for Weston plugins
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Weston is the reference implementation of a Wayland compositor, and a
|
|
|
|
useful compositor in its own right. Weston has various backends that
|
|
|
|
lets it run on Linux kernel modesetting and evdev input as well as
|
|
|
|
under X11.
|
|
|
|
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop plugins for Weston.
|
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-09-08 15:05:23 +02:00
|
|
|
%patch -P 1 -p1
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%build
|
2014-09-08 15:05:23 +02:00
|
|
|
#if [ ! -e configure ]; then
|
2014-08-27 15:56:17 +02:00
|
|
|
autoreconf -fi
|
2014-09-08 15:05:23 +02:00
|
|
|
#fi
|
2013-04-17 08:11:16 +02:00
|
|
|
# Ensure people will use pkgconfig to locate headers.
|
2015-01-27 18:01:54 +01:00
|
|
|
# libinput backend is disabled for now as it requires libinput < 0.8.0.
|
2014-08-27 19:02:19 +02:00
|
|
|
# Implicit enable-libunwind would make the tests run endlessly on i586.
|
2014-08-27 15:56:17 +02:00
|
|
|
%configure --disable-static --includedir="%_includedir/pkg/%name" \
|
2015-01-27 18:01:54 +01:00
|
|
|
--disable-setuid-install --disable-libinput-backend --disable-libunwind
|
2013-07-15 11:58:15 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-07-09 17:18:36 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-22 16:40:36 +02:00
|
|
|
%make_install
|
2014-08-27 15:56:17 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2012-12-19 10:14:03 +01:00
|
|
|
%check
|
2014-08-27 15:56:17 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
|
|
|
export XDG_RUNTIME_DIR="$PWD/xdg"
|
|
|
|
mkdir -pm go-rwx "$XDG_RUNTIME_DIR"
|
2014-08-27 18:32:46 +02:00
|
|
|
if ! make BACKEND=headless-backend.so check; then
|
2014-07-22 16:40:36 +02:00
|
|
|
cat test-suite.log
|
2014-08-27 18:32:46 +02:00
|
|
|
# make check can not pass completely without an actual screen.
|
2014-08-27 15:56:17 +02:00
|
|
|
#exit 1
|
2014-01-24 13:31:27 +01:00
|
|
|
fi
|
2014-08-27 15:56:17 +02:00
|
|
|
%endif
|
2012-12-19 10:14:03 +01:00
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-07-22 16:40:36 +02:00
|
|
|
%doc COPYING README
|
2014-07-22 17:20:34 +02:00
|
|
|
%_bindir/w*
|
2014-07-22 16:40:36 +02:00
|
|
|
%_libexecdir/%name-*
|
|
|
|
%_libdir/%name/
|
|
|
|
%_datadir/%name/
|
2014-07-22 17:10:41 +02:00
|
|
|
%_mandir/man?/*.*
|
2012-07-09 17:18:36 +02:00
|
|
|
|
2013-03-24 17:34:03 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-04-17 08:11:16 +02:00
|
|
|
%_includedir/pkg/
|
2014-07-22 16:40:36 +02:00
|
|
|
%_libdir/pkgconfig/%name.pc
|
2013-03-24 17:34:03 +01:00
|
|
|
|
2012-07-09 17:18:36 +02:00
|
|
|
%changelog
|