File kms++.spec of Package kmsxx
#
# spec file for package kms++
#
# Copyright (c) 2025 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/
#
Name: kms++
Version: 0.0.0
Release: 0
Summary: Python ctypes bindings for Video4Linux2 (V4L2) API
License: MPL-2.0
URL: https://github.com/tomba/kmsxx
Source: kmsxx-%{version}.tar.xz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pybind11}
BuildRequires: %{python_module pybind11-devel}
BuildRequires: %{python_module wheel}
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: fmt-devel
BuildRequires: kmscube
BuildRequires: libdrm-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: libevdev-devel
%description
Python ctypes bindings for Video4Linux2 (V4L2) API
%package devel
Summary: devel files for kms++
%description devel
%package -n %primary_python-pykms
Summary: Python modul for kms++
%description -n %primary_python-pykms
%prep
%autosetup -p1 -n kmsxx-%{version}
%build
meson setup \
--buildtype=plain \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--includedir=%{_includedir} \
--datadir=%{_datadir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--localedir=%{_datadir}/locale \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir} \
--sharedstatedir=%{_sharedstatedir} \
build
%meson_build -C build
%install
%meson_install -C build
%files
%doc README.md
%_bindir/fbtest
%_bindir/kms*
%_libdir/libkms++.so.*
%_libdir/libkms++util.so.*
%files -n %primary_python-pykms
%{python_sitearch}/pykms
%files devel
%_includedir/kms++*
%_libdir/pkgconfig/kms++*.pc
%_libdir/libkms++*.so
%changelog
* Sun Nov 2 2025 Adrian Schröter <adrian@suse.de>
- initial package of version 0.0.0 (no official release yet)