File xvfb-run.spec of Package xvfb-run

# spec file for package xvfb-run
# Copyright (c) 2018 SUSE LINUX 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

Name:           xvfb-run
Version:        1.5.2
Release:        0
Summary:        Script to run a virtualized X-Server
License:        GPL-2.0-only
Group:          System/X11/Utilities
Patch0:         xvfb-run-mktemp.patch
Requires:       coreutils
Requires:       util-linux
Requires:       which
Requires:       xauth
Requires:       xorg-x11-server
Requires:       xorg-x11-xauth
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This script starts an instance of Xvfb, the "fake" X server, runs a command
with that server available, and kills the X server when done. The return
value of the command becomes the return value of this script.

cp %{SOURCE0} .
%patch0 -p0


install -p -D %{_builddir}/ %{buildroot}%{_bindir}/xvfb-run
chmod 755 %{buildroot}%{_bindir}/xvfb-run

mkdir -p %{buildroot}%{_mandir}/man1/
cp %{SOURCE1} %{buildroot}%{_mandir}/man1/xvfb-run.1.gz