File vncmanager-controller.spec of Package vncmanager-controller.20533
#
# spec file for package vncmanager-controller
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: vncmanager-controller
Version: 1.0.1
Release: 0
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libQt5Core-devel
BuildRequires: libQt5Network-devel
BuildRequires: libQt5Widgets-devel
BuildRequires: libXvnc-devel
BuildRequires: libqt5-qtx11extras-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xproto)
Url: https://github.com/michalsrb/vncmanager-controller
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Configuration application for VNC session
License: MIT
Group: System/X11/Utilities
Source: vncmanager-controller-%{version}.tar.gz
Patch1: U_vncmanager-controller-Declare-gnome-shell-versions-3.10-to-3.34-as-supported.patch
Patch2: 0001-fix-js-code-incompatibility-with-gnome-3.34.patch
Requires: vncmanager
%description
This is configuration application to configure sharing and security from inside VNC session.
%package gnome
Requires: gnome-shell
Requires: vncmanager-controller
Supplements: packageand(%{name}:gnome-shell)
Summary: Configuration application for VNC session
Group: System/GUI/GNOME
%description gnome
This is configuration application to configure sharing and security from inside VNC session.
%prep
%setup
%patch1 -p1
%patch2 -p1
%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=ON
%make_jobs
%install
%cmake_install
%files
%defattr(-,root,root)
%{_bindir}/vncmanager-controller
%dir %{_sysconfdir}/xdg/autostart
%{_sysconfdir}/xdg/autostart/vncmanager-controller.desktop
%doc LICENSE
%files gnome
%defattr(-,root,root)
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/extensions
%{_datadir}/gnome-shell/extensions/*
%changelog