File libliftoff.spec of Package libliftoff
#
# spec file for package libliftoff
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
%define libname libliftoff0
Name: libliftoff
Version: 0
Release: 0
Summary: Lightweight hardware composer library for libdrm
License: MIT
Group: System/GUI/Other
URL: https://github.com/emersion/libliftoff
Source: %{name}-%{version}.tar.xz
BuildRequires: meson >= 0.47.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libdrm)
%description
Lightweight hardware composer library for libdrm.
libliftoff eases the use of KMS planes from userspace without standing in your
way. Users create "virtual planes" called layers, set KMS properties on them,
and libliftoff will allocate planes for these layers if possible.
%package -n %{libname}
Summary: Lightweight hardware composer library for libdrm - Shared library
Group: System/GUI/Other
%description -n %{libname}
Lightweight hardware composer library for libdrm.
libliftoff eases the use of KMS planes from userspace without standing in your
way. Users create "virtual planes" called layers, set KMS properties on them,
and libliftoff will allocate planes for these layers if possible.
This package holds the shared library files.
%package devel
Summary: Lightweight hardware composer library for libdrm - Development files
Group: System/GUI/Other
Requires: %{libname} = %{version}
%description devel
Lightweight hardware composer library for libdrm.
libliftoff eases the use of KMS planes from userspace without standing in your
way. Users create "virtual planes" called layers, set KMS properties on them,
and libliftoff will allocate planes for these layers if possible.
This package holds the development files.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/libliftoff.so.*
%files devel
%{_libdir}/libliftoff.so
%{_libdir}/pkgconfig/libliftoff.pc
%{_includedir}/libliftoff.h
%changelog