File openvpn3-indicator.spec of Package openvpn3-indicator

#
# spec file for package openvpn3-indicator
#
# 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/
#

%define pythons python3

Name:           openvpn3-indicator
Version:        1.0.git.1762207303.97bb7d9
Release:        0
Summary:        Simple indicator application for OpenVPN3
License:        AGPL-3.0-or-later
URL:            https://github.com/OpenVPN/openvpn3-indicator
Source:         openvpn3-indicator-%{version}.tar.gz
BuildRequires:  %{pythons}
BuildRequires:  python-rpm-macros
BuildRequires:  make
BuildRequires:  zip
BuildRequires:  desktop-file-utils
BuildRequires:  gtk3-tools
BuildRequires:  fdupes
BuildArch:      noarch
Requires:  python3
Requires:  dbus-1-python3
Requires:  python3-gobject
Requires:  python3-SecretStorage
Requires:  python3-setproctitle
Requires:  typelib(GLib) = 2.0
Requires:  typelib(GObject) = 2.0
Requires:  typelib(Gtk) = 3.0
Requires:  typelib(AppIndicator3) = 0.1
Requires:  typelib(Gio) = 2.0
Requires:  python3-openvpn3

%description
This is a simple indicator application that controls OpenVPN3 tunnels.
It is based on D-Bus interface provided by OpenVPN3 Linux client.
It is a temporary solution until Network Manager supports OpenVPN3.

%prep
%autosetup

%build

%install
make DESTDIR="%{?buildroot}" BINDIR="%{_bindir}" DATADIR="%{_datadir}" HARDCODE_PYTHON="%{_bindir}/python%{python_version}" package
%fdupes %{buildroot}%{_datadir}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/man/man1/%{name}*
%dir %{_datadir}/mime
%dir %{_datadir}/mime/packages
%{_datadir}/mime/packages/*.xml
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*
%config %{_sysconfdir}/xdg/autostart/*.desktop

%changelog
openSUSE Build Service is sponsored by