forked from pool/weston
Select headless renderer
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/weston?expand=0&rev=26
This commit is contained in:
parent
566f36a852
commit
3ac431bf26
15
weston.spec
15
weston.spec
@ -22,7 +22,7 @@ Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Wayland Reference Compositor
|
||||
License: HPND and CC-BY-SA-3.0
|
||||
Group: System/X11/Servers/XF86_5
|
||||
Group: System/X11/Servers
|
||||
Url: http://wayland.freedesktop.org/
|
||||
|
||||
#Git-Clone: git://anongit.freedesktop.org/wayland/weston
|
||||
@ -120,11 +120,20 @@ rm -f "%buildroot/%_libdir"/*.la "%buildroot/%_libdir/weston"/*.la;
|
||||
|
||||
%check
|
||||
ls -dl /proc/self || exit 0;
|
||||
mkdir -pm go-rwx xdg;
|
||||
# Ignore exit code, because """the headless backend is not even in the 1.0
|
||||
# stable series. It means it will be an option starting from 1.2 of stable
|
||||
# series."""
|
||||
XDG_RUNTIME_DIR="$PWD/xdg" make check || :;
|
||||
# And the 1.4 tests don't use it :/
|
||||
export XDG_RUNTIME_DIR="$HOME/xdgrun"
|
||||
export XDG_CONFIG_HOME="$HOME"
|
||||
cat >"$XDG_CONFIG_HOME/weston.ini" <<-EOF
|
||||
[core]
|
||||
backend=headless-backend.so
|
||||
EOF
|
||||
mkdir -pm go-rwx "$XDG_RUNTIME_DIR"
|
||||
if ! make check; then
|
||||
cat tests/test-suite.log
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user