File globalprotect-openconnect.spec of Package globalprotect-openconnect
#
# spec file for package globalprotect-openconnect
#
# Copyright (c) 2021 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: globalprotect-openconnect
Version: 1.4.8
Release: 0
Summary: A GlobalProtect VPN client (GUI) for Linux based on Openconnect
License: GPL-3.0
URL: https://github.com/yuezk/GlobalProtect-openconnect
Source: GlobalProtect-openconnect-%{version}.tar.gz
BuildRequires: cmake > 3.10
BuildRequires: cmake(Qt5)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5WebEngine)
BuildRequires: cmake(Qt5WebSockets)
BuildRequires: cmake(Qt5DBus)
BuildRequires: update-desktop-files
Requires: openconnect
%description
A GlobalProtect VPN client (GUI) for Linux based on Openconnect and built with
Qt5, supports SAML auth mode, inspired by gp-saml-gui.
Features:
- Similar user experience as the official client in macOS.
- Supports both SAML and non-SAML authentication modes.
- Supports automatically selecting the preferred gateway from the multiple gateways.
- Supports switching gateway from the system tray menu manually.
%prep
%autosetup -n GlobalProtect-openconnect-%{version}
%build
%cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE=-s
%cmake_build
%install
%cmake_install
%suse_update_desktop_file com.yuezk.qt.gpclient
%pre
%service_add_pre gpservice.service
%post
%service_add_post gpservice.service
%preun
%service_del_preun gpservice.service
%postun
%service_del_postun gpservice.service
%files
%license LICENSE
%doc README.md
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/scalable
%dir /usr/share/icons/hicolor/scalable/apps
%{_bindir}/gpclient
%{_bindir}/gpservice
%{_unitdir}/gpservice.service
%dir %{_sysconfdir}/gpservice
%config (noreplace) %{_sysconfdir}/gpservice/gp.conf
/usr/share/applications/com.yuezk.qt.gpclient.desktop
/usr/share/dbus-1/system-services/com.yuezk.qt.GPService.service
/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
/usr/share/icons/hicolor/scalable/apps/com.yuezk.qt.gpclient.svg
/usr/share/metainfo/com.yuezk.qt.gpclient.metainfo.xml
%changelog