gnunet-messenger-gtk/gnunet-messenger-gtk.spec

74 lines
2.3 KiB
RPMSpec

#
# spec file for package gnunet-messenger-gtk
#
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# 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/
#
Name: gnunet-messenger-gtk
Version: 0.10.2
Release: 0
Summary: GUI for GNUnet Messenger service
License: AGPL-3.0-or-later
URL: https://www.gnunet.org/
Source: http://ftpmirror.gnu.org/gnunet/messenger-gtk-%{version}.tar.gz
Source2: http://ftpmirror.gnu.org/gnunet/messenger-gtk-%{version}.tar.gz.sig
# https://gnunet.org/~schanzen/3D11063C10F98D14BD24D1470B0998EF86F59B6A
Source3: %{name}.keyring
BuildRequires: desktop-file-utils
BuildRequires: libunistring-devel
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnunetchat) >= 0.5.1
BuildRequires: pkgconfig(gnunetutil)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-rtp-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libhandy-1)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libportal)
BuildRequires: pkgconfig(libportal-gtk3)
BuildRequires: pkgconfig(libqrencode)
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
BuildRequires: gcc13
%endif
%description
A GTK based UI using the GNUnet Messenger service
%prep
%autosetup -p1 -n messenger-gtk-%{version}
%build
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
export CC=gcc-13
%endif
%meson
%meson_build
%install
%meson_install
%find_lang messenger-gtk
%files -f messenger-gtk.lang
%license COPYING
%{_bindir}/messenger-gtk
%{_datadir}/appdata/org.gnunet.Messenger.appdata.xml
%{_datadir}/applications/org.gnunet.Messenger.desktop
%{_datadir}/icons/hicolor/*/apps/*
%changelog