File protonvpn-gui.spec of Package protonvpn-gui
#
# spec file for package protonvpn-gui
#
# Copyright (c) 2022 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/
#
%define logo_name protonvpn-logo.png
%define desktop_name protonvpn.desktop
%define iconpath icons/hicolor/256x256/apps
%define build_tar_ball 0
Prefix: %{_prefix}
Name: protonvpn-gui
%define unmangled_name %{name}
Version: 1.11.0
Release: 0
Summary: Official ProtonVPN GUI
Group: ProtonVPN
License: GPL-3.0-only
URL: https://github.com/ProtonVPN/linux-app
%if %{build_tar_ball}
Source0: linux-app-%{version}.tar.gz
%else
Source0: _service
%endif
Source3: %{desktop_name}
Source4: %{logo_name}
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: pcre
BuildRequires: fdupes
Requires: python3-gobject
Requires: python3-protonvpn-nm-lib >= 3.13.0
Requires: python3-psutil
#Requires: gtk3
#Requires: libgtk-3-0
#Requires: webkit2gtk3
Requires: typelib-1_0-WebKit2-4_0
#Requires: libwebkit2gtk-4_0-37
#Suggests: libappindicator-gtk3
Suggests: libappindicator
Suggests: gnome-tweaks
#Suggests: gnome-shell-extension-appindicator
%{?python_disable_dependency_generator}
%description
Official ProtonVPN Graphical User Interface.
%prep
%if %{build_tar_ball}
%setup -n %{unmangled_name}-%{version} -n %{unmangled_name}-%{version} -n linux-app-%{version}
%else
%setup -n %_sourcedir/%{unmangled_name}-%{version} -n %_sourcedir/%{unmangled_name}-%{version} -n %_sourcedir/linux-app-%{version} -T -D
%endif
%build
python3 setup.py build
%install
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{desktop_name}
mkdir -p %{buildroot}%{_datadir}/%{iconpath}
cp %{SOURCE4} %{buildroot}%{_datadir}/%{iconpath}/%{logo_name}
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%_sourcedir/INSTALLED_FILES
%fdupes %{buildroot}
%files -f %_sourcedir/INSTALLED_FILES
%{python3_sitelib}/protonvpn_gui/
%{python3_sitelib}/protonvpn_gui-*.egg-info/
%{_datadir}/applications/%{desktop_name}
%{_datadir}/%{iconpath}/%{logo_name}
%defattr(-,root,root)
%changelog
* Thu Nov 04 2021 Proton Technologies AG <opensource@proton.me> 1.6.0-1
- Improve: Further improve memory management to avoid potential leaks
* Tue Nov 02 2021 Proton Technologies AG <opensource@proton.me> 1.5.2-1
- Hotfix: Update event dialog and fix typo
* Tue Oct 26 2021 Proton Technologies AG <opensource@proton.me> 1.5.1-1
- Hotfix: Fixed issue with search not working
* Fri Oct 15 2021 Proton Technologies AG <opensource@proton.me> 1.5.0-7
- Feature: Handle and display events
- Fix: Memory leak
- Improve: Exception handling
* Thu Oct 14 2021 Proton Technologies AG <opensource@proton.me> 1.4.1-1
- Hotfix: Add missing dependency for Webkit
* Fri Sep 24 2021 Proton Technologies AG <opensource@proton.me> 1.4.0-1
- Handle human verification
* Mon Aug 09 2021 Proton Technologies AG <opensource@proton.me> 1.3.0-7
- Feature: Add troubleshooting dialog, including support for alternative routing
- Imprving server list switching UX to/from Secure Core
* Fri Jul 30 2021 Proton Technologies AG <opensource@proton.me> 1.2.0-1
- Fix: Logs should be using UTC time
- Fix: Display window icons (minimize, maximize and close)
- Fix: Unable to update server list after 15min (crash report would appear on certain distros)
* Fri Jul 30 2021 Proton Technologies AG <opensource@proton.me> 1.1.1-1
- Hotfix: Fix Gio.Task.run_in_thread issue
* Thu Jul 01 2021 Proton Technologies AG <opensource@proton.me> 1.1.0-7
- Enhancement: Improve GUI responsiveness; prevent the GUI from resizing on X axis
* Tue Jun 22 2021 Proton Technologies AG <opensource@proton.me> 1.0.1-1
- Hotfix: Display force disable connectivity check message in case of failure
* Mon May 24 2021 Proton Technologies AG <opensource@proton.me> 1.0.0-1
- Update package to stable
* Mon May 24 2021 Proton Technologies AG <opensource@proton.me> 0.8.0-2
- Feature: Add button to get logs
* Mon May 24 2021 Proton Technologies AG <opensource@proton.me> 0.7.3-3
- Add support for python3-protonvpn-nm-lib 3.2.0
* Tue May 11 2021 Proton Technologies AG <opensource@proton.me> 0.7.2-1
- Fix crash when dummy indicator is used in the absence of tray dependency
* Tue May 11 2021 Proton Technologies AG <opensource@proton.me> 0.7.1-4
- Fix quick settings invisible blocking overlay, preventing from pressing on quick setting buttons
- Fix tray quick connect and disconnect buttons, so that they're contextually aware of VPN status
- Display incompatibility dialog on systems that GUI dependencies can not be met
- Hide quick connect tray item on login window
- Update GUI and tray after reconnecting to VPN from suspend or network change
* Mon May 10 2021 Proton Technologies AG <opensource@proton.me> 0.7.0-3
- Feature: add sys-tray icon
- Add missing indicator dependency
- Add extra packages that are needed for indicator/tray to work on fedora
* Thu May 06 2021 Proton Technologies AG <opensource@proton.me> 0.6.2-2
- Add warning message if kill switch is blocking all connections
- Display only countries when connected to secure core, on dashboard
- Display streaming icons if present
- Add space to secure core sub-servers flags and label
* Wed May 05 2021 Proton Technologies AG <opensource@proton.me> 0.6.1-2
- Fix connect button glitch
- Add info icon hover effect
- Add timetout to when fetching IP
- Improve dashboard UI after disconnecting
- Fix quick connect/disconnect glitch
* Tue May 04 2021 Proton Technologies AG <opensource@proton.me> 0.6.0-1
- Fix quick connect loop
- Add possibility to login upon pressing Enter after filling in credentials on login window
- Make possibile to add extra content to dialog via a method
- Modify connecting overlay message display
- Display an appropriate error on failed login
- Other color and styling changes
* Wed Apr 21 2021 Proton Technologies AG <opensource@proton.me> 0.5.0-1
- Add new server list headers
- Feature: Add streaming information for servers that provide streaming services
- Update server list styling
* Wed Apr 21 2021 Proton Technologies AG <opensource@proton.me> 0.4.0-2
- Add about dialog; display current version
- Add .desktop file
* Fri Apr 16 2021 Proton Technologies AG <opensource@proton.me> 0.3.0-1
- Adjust and displays server load colour
- Implement server multi-features aka feature bitmap
- Disable permanent Kill Switch from login window if it is enabled
* Wed Apr 14 2021 Proton Technologies AG <opensource@proton.me> 0.2.0-1
- Implement logout and quit
- Feature: filter countries
* Fri Apr 2 2021 Proton Technologies AG <opensource@proton.me> 0.1.0-2
- Add quick-settings buttons
- Add reconnetion logic after clicking on quick-settings buttons
- Fix secure core server list reload
- Fix issue when connecting to servers with long names
* Mon Feb 22 2021 Proton Technologies AG <opensource@proton.me> 0.0.3-1
- First package