From 4396c06ee6ee7b4f649ad2506d367797f8f42c1f Mon Sep 17 00:00:00 2001 From: blackPanther OS Date: Sat, 1 Aug 2020 08:26:00 +0200 Subject: [PATCH 1/2] Added blackPanther OS to Readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fbb761..39d526d 100644 --- a/README.md +++ b/README.md @@ -91,15 +91,17 @@ The ProtonVPN GUI is currently still an experimental interface. It requir |Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0` | |OpenSUSE/SLES | `sudo zypper install python3-gobject python3-gobject-Gdk typelib-1_0-Gtk-3_0 libgtk-3-0` | |Arch Linux/Manjaro | `sudo pacman -S python-gobject gtk3` | +|blackPanther OS | `autorequires via official rpm package (for devel:installing python3-gobject3 libgtk+3 lib64gtk-gir3.0)` | #### ProtonVPN Tray dependencies | **Distro** | **Command** | |:----------------------------------------|:----------------------------------------------------------------------------------------------------------------| |Fedora/CentOS/RHEL | `sudo dnf install -y libappindicator-gtk3 libnotify` | -|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y gir1.2-appindicator3 libnotify-bin` | +|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y gir1.2-appindicator3 libnotify-bin` | |OpenSUSE/SLES | `sudo zypper install libappindicator-gtk3 libnotify` | |Arch Linux/Manjaro | `sudo pacman -S libappindicator-gtk3 libnotify` | +|blackPanther OS | `autorequires via official rpm package (for devel:installing lib64appindicator3_1 lib64appindicator3-gir0.1)` | **NOTE:** Gnome users will need to install an additional extension for this to work: KStatusNotifierItem/AppIndicator Support @@ -120,6 +122,7 @@ If you would like to use `pkexec` instead of the terminal (or alter `visudo`), t |Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y libpolkit-agent-1-0` | |OpenSUSE/SLES | `sudo zypper install polkit` | |Arch Linux/Manjaro | `sudo pacman -S polkit` | +|blackPanther OS | `autorequires via official rpm package (for devel:installing polkit polkit-kde-agent)` | ## Installing ProtonVPN Linux GUI @@ -128,7 +131,7 @@ If you would like to use `pkexec` instead of the terminal (or alter `visudo`), t - Ubuntu derivatives: To-do - OpenSUSE/SLES: To-do - Arch Linux/Manjaro: Available at AUR - +- blackPanther OS : `installing protonvpn-gui` ### PIP based @@ -173,6 +176,7 @@ If you would like to run the the GUI within a virtual environment (for either de |Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install libcairo2-dev libgirepository1.0-dev pkg-config` | |OpenSUSE/SLES | `sudo zypper install cairo-devel gobject-introspection-devel python3-cairo-devel pkg-config` | |Arch Linux/Manjaro | `sudo pacman -S cairo base-devel gobject-introspection pkgconf` | +|blackPanther OS | `installing cairo-devel python3-cairo-devel gobject-introspection pkgconf` | 1. `git clone https://github.com/ProtonVPN/linux-gui` 2. `cd linux-gui` From 3279cc43cae308eb639a210dd39469d7ac9a52c2 Mon Sep 17 00:00:00 2001 From: blackPanther OS Date: Sat, 1 Aug 2020 08:38:05 +0200 Subject: [PATCH 2/2] Initial spec for rpmbuild --- protonvpn-gui.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 protonvpn-gui.spec diff --git a/protonvpn-gui.spec b/protonvpn-gui.spec new file mode 100644 index 0000000..42a4b00 --- /dev/null +++ b/protonvpn-gui.spec @@ -0,0 +1,94 @@ +%define name protonvpn-gui +%define Summary Gtk3 GUI for ProtonVPN. +%define Summary_hu Gtk3 grafikus intgerfész ProtonVPN-hez +%define sourcetype tar.xz +%define version 2.1.1 + +Name: %name +Summary: %Summary +Summary(hu): %Summary_hu +Version: %version +Release: %mkrel 1 +License: GPL2 +Distribution: blackPanther OS +Vendor: blackPanther Europe +Packager: Charles K Barcza +URL: https://github.com/ProtonVPN/linux-gui +Group: System/Network +Source0: %name-%version.%sourcetype +Buildroot: %_tmppath/%name-%version-%release-root +BuildArch: noarch +BuildRequires: python3-setuptools +BuildRequires: python3 +Requires: python3-requests >= 2.23.0 +Requires: protonvpn-cli >= 2.2.2 +Requires: python3-configparser >= 4.0.2 +Requires: python3-gobject3 +Requires: %{_lib}appindicator3_1 libnotify +Provides: protonvpn-linux-gui = %version + +%description +Python3-Gtk3 graphical user interface for ProtonVPN service. + + +%files +%defattr(-,root,root) +%_bindir/%name +%_bindir/*-tray +%python3_sitelib/linux_gui +%python3_sitelib/protonvpn_gui-2.1.1-py3.7.egg-info +%_datadir/applications/*.desktop +%_iconsdir/*.png +%_iconsdir/*/*.png + +%prep +%setup -q -n linux-gui + +%build +%py3_build + +%install +%py3_install + +%define nameicon linux_gui/resources/img/logo/protonvpn_logo.png +mkdir -p -m755 %{buildroot}{%_liconsdir,%_iconsdir,%_miconsdir} +convert -scale 48x48 %{nameicon} %{buildroot}/%{_liconsdir}/%{name}.png +convert -scale 32x32 %{nameicon} %{buildroot}/%{_iconsdir}/%{name}.png +convert -scale 16x16 %{nameicon} %{buildroot}/%{_miconsdir}/%{name}.png + + +rm -rf %{buildroot}%{_datadir}/applications +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/blackPanther-%{name}.desktop < 2.1.1-1bP +- build package for blackPanther OS v17-20.1 +-------------------------------------------------------------------------