File kms-quads.spec of Package kms-quads
#
# spec file for package kms-quads
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019, Guillaume GARDET <guillaume@opensuse.org>
#
# 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 https://bugs.opensuse.org/
#
Name: kms-quads
Version: 0.0.git1573165883.b164919
Release: 0
Summary: Demo for KMS API
License: MIT
Group: Development/Tools/Other
Url: https://gitlab.freedesktop.org/daniels/kms-quads.git
Source: %{name}-%{version}.tar.xz
BuildRequires: Mesa-devel
BuildRequires: Mesa-libGLESv2-devel
BuildRequires: Mesa-libGLESv3-devel
BuildRequires: Mesa-libEGL-devel
BuildRequires: gcc
BuildRequires: libdrm-devel
BuildRequires: libgbm-devel
BuildRequires: libinput-devel
BuildRequires: libudev-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkg-config
BuildRequires: systemd-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
kms-quads is a simple and well-explained example of how to use the Linux
kernel's KMS API to drive graphical displays.
Once started, you should see four rectangles of different colours, with
the border between them moving.
%prep
%setup -q
%build
meson build
ninja -C build
%install
mkdir -p %{buildroot}/%{_bindir}
cp ./build/kms-quads %{buildroot}/%{_bindir}
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{_bindir}/*
%changelog