File vncmanager-controller.spec of Package vncmanager-controller.8122
#
# spec file for package vncmanager-controller
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#
Name: vncmanager-controller
Version: 1.0.0
Release: 0
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: libQt5Core-devel libQt5Network-devel libQt5Widgets-devel libqt5-qtx11extras-devel
BuildRequires: xproto-devel
BuildRequires: libX11-devel
BuildRequires: libXvnc-devel
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-fix-installation-directory-and-metadata-of-gnome-shell-extension.patch
Patch2: U_vncmanager-controller-Declare-gnome-shell-versions-3.10-to-3.26-as-supported.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