File proton-vpn.spec of Package proton-vpn
#
# spec file for package proton-vpn
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}%{!?sle15_python_module_pythons:%define pythons python3}
Name: proton-vpn
Version: 4.9.6
Release: 0
Summary: Official Proton VPN client
License: GPL-3.0-or-later
Group: Productivity/Networking/Security
URL: https://github.com/ProtonVPN/proton-vpn-gtk-app
Source0: https://github.com/ProtonVPN/proton-vpn-gtk-app/archive/refs/tags/%{version}.tar.gz
BuildRequires: %{python_module dbus-python}
BuildRequires: %{python_module distro}
BuildRequires: %{python_module gobject}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module proton-core}
BuildRequires: %{python_module proton-vpn-api-core >= 0.42.1}
BuildRequires: %{python_module proton-vpn-network-manager >= 0.12.13}
BuildRequires: %{python_module pycairo}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnotify)
Requires: %{pythons}-dbus-python
Requires: %{pythons}-distro
Requires: %{pythons}-gobject
Requires: %{pythons}-packaging
Requires: %{pythons}-proton-core
Requires: %{pythons}-proton-vpn-api-core >= 0.42.1
Requires: %{pythons}-proton-vpn-network-manager >= 0.12.13
Requires: %{pythons}-pycairo
Requires: %{pythons}-requests
Requires: gtk3
Suggests: libappindicator-gtk3
Conflicts: protonvpn-gui
Provides: protonvpn-app = %{version}
BuildArch: noarch
%description
The Proton VPN client is easy to use and packed with advanced features
carefully designed to improve your online security.
%prep
%autosetup -n proton-vpn-gtk-app-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{python_sitelib}
install -Dm0644 rpmbuild/SOURCES/proton-vpn-logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/proton-vpn-logo.svg
install -Dm0644 ./rpmbuild/SOURCES/protonvpn-app.desktop %{buildroot}%{_datadir}/applications/proton-vpn.desktop
%files
%doc README.md
%license LICENSE COPYING.md
%{_bindir}/protonvpn-app
%{_datadir}/applications/proton-vpn.desktop
%{_datadir}/icons/hicolor/scalable/apps/proton-vpn-logo.svg
%{python_sitelib}/proton
%{python_sitelib}/proton_vpn_gtk_app-%{version}.dist-info
%changelog