File reframe.spec of Package reframe

#
# spec file for package reframe
#
# 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 http://bugs.opensuse.org/


Name:           reframe
Version:        1.2.2
Release:        0
License:        Apache-2.0
Summary:        DRM/KMS based remote desktop for Linux that supports Wayland/NVIDIA/headless/login…
Url:            https://github.com/AlynxZhou/reframe/
Group:          System/Management
Source:         https://github.com/AlynxZhou/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  fdupes
BuildRequires:  sysuser-tools
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(libvncserver)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(epoxy)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(libsystemd)
# BuildArch:
%{?systemd_ordering}
%sysusers_requires

%description
DRM/KMS based remote desktop for Linux that supports
Wayland/NVIDIA/headless/login…

%prep
%autosetup -p1

%build
%meson
%meson_build
%sysusers_generate_pre %{_vpath_builddir}/dists/reframe-sysusers.conf reframe reframe-sysusers.conf

%install
%meson_install

%fdupes %{buildroot}%{_prefix}

%pre -f reframe.pre
%service_add_pre reframe@.socket reframe-streamer@.service reframe-server@.service

%post
%service_add_post reframe@.socket reframe-streamer@.service reframe-server@.service

%preun
%service_del_preun reframe@.socket reframe-streamer@.service reframe-server@.service

%postun
%service_del_postun reframe@.socket reframe-streamer@.service reframe-server@.service

%files
%license LICENSE
%doc README.md
%{_bindir}/reframe-server
%{_bindir}/reframe-streamer
%{_libdir}/libreframe-common.so
%{_unitdir}/reframe@.socket
%{_unitdir}/reframe-streamer@.service
%{_unitdir}/reframe-server@.service
%{_sysusersdir}/reframe-sysusers.conf
%dir %{_sysconfdir}/reframe
%config(noreplace) %{_sysconfdir}/reframe/example.conf

%changelog

openSUSE Build Service is sponsored by