File wayvnc.spec of Package wayvnc

#
# spec file for package wayvnc
#
# Copyright (c) 2023 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:           wayvnc
Version:        0.7.2
Release:        0
Summary:        VNC server for wlroots-based Wayland compositors
License:        ISC
URL:            https://github.com/any1/wayvnc
Source:         https://github.com/any1/wayvnc/archive/v%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  pam-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(aml)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(jansson)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(neatvnc) >= 0.7.0
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(scdoc)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(xkbcommon)

%description
This is a VNC server for wlroots-based Wayland compositors (:no_entry: Gnome, KDE and Weston are not supported).
It attaches to a running Wayland session, creates virtual input devices, and exposes a single display via the RFB protocol.
The Wayland session may be a headless one, so it is also possible to run wayvnc without a physical display attached.

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

%files
%{_bindir}/wayvnc
%{_bindir}/wayvncctl
%{_mandir}/man1/wayvnc.1%{?ext_man}
%{_mandir}/man1/wayvncctl.1%{?ext_man}
%license COPYING
%doc README.md FAQ.md

%changelog
openSUSE Build Service is sponsored by