mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
update packaging
This commit is contained in:
1
packaging/obs/globalprotect-openconnect-rpmlintrc
Normal file
1
packaging/obs/globalprotect-openconnect-rpmlintrc
Normal file
@@ -0,0 +1 @@
|
||||
setBadness('suse-dbus-unauthorized-service', 0)
|
5
packaging/obs/globalprotect-openconnect.changes
Normal file
5
packaging/obs/globalprotect-openconnect.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 9 02:13:46 UTC 2020 - k3vinyue@gmail.com - 1.3.0
|
||||
|
||||
- Update to 1.3.0
|
||||
* Bump version to 1.3.0
|
96
packaging/obs/globalprotect-openconnect.spec
Normal file
96
packaging/obs/globalprotect-openconnect.spec
Normal file
@@ -0,0 +1,96 @@
|
||||
Name: globalprotect-openconnect
|
||||
Version: 1.3.3
|
||||
Release: 1
|
||||
Summary: A GlobalProtect VPN client powered by OpenConnect
|
||||
Group: Productivity/Networking/PPP
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
License: GPL-3.0
|
||||
URL: https://github.com/yuezk/GlobalProtect-openconnect
|
||||
Source0: %{name}.tar.gz
|
||||
BuildRequires: cmake cmake(Qt5) cmake(Qt5Gui) cmake(Qt5WebEngine) cmake(Qt5WebSockets) cmake(Qt5DBus)
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Requires: openconnect >= 8.0
|
||||
Conflicts: globalprotect-openconnect-snapshot
|
||||
|
||||
|
||||
%global debug_package %{nil}
|
||||
|
||||
%description
|
||||
A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Qt5, supports SAML auth mode.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n "globalprotect-openconnect-%{version}"
|
||||
|
||||
|
||||
%pre
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%service_add_pre gpservice.service
|
||||
%endif
|
||||
|
||||
|
||||
%post
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%service_add_post gpservice.service
|
||||
%else
|
||||
%systemd_post gpservice.service
|
||||
%endif
|
||||
|
||||
|
||||
%preun
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%service_del_preun gpservice.service
|
||||
%else
|
||||
%systemd_preun gpservice.service
|
||||
%endif
|
||||
|
||||
|
||||
%postun
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%service_del_postun gpservice.service
|
||||
%else
|
||||
%systemd_postun gpservice.service
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
|
||||
%cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE=-s
|
||||
|
||||
%if 0%{?fedora_version} && 0%{?fedora_version} <= 32
|
||||
%make_build
|
||||
%else
|
||||
%cmake_build
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
|
||||
%if 0%{?fedora_version} && 0%{?fedora_version} <= 32
|
||||
%make_install
|
||||
%else
|
||||
%cmake_install
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_unitdir}/gpservice.service
|
||||
%{_bindir}/gpclient
|
||||
%{_bindir}/gpservice
|
||||
%{_datadir}/applications/com.yuezk.qt.gpclient.desktop
|
||||
%{_datadir}/dbus-1/system-services/com.yuezk.qt.GPService.service
|
||||
%{_datadir}/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||
%{_datadir}/icons/hicolor/scalable/apps/com.yuezk.qt.gpclient.svg
|
||||
%{_datadir}/metainfo/com.yuezk.qt.gpclient.metainfo.xml
|
||||
|
||||
%dir %{_datadir}/icons/hicolor
|
||||
%dir %{_datadir}/icons/hicolor/scalable
|
||||
%dir %{_datadir}/icons/hicolor/scalable/apps
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user