File dino.spec of Package dino
#
# spec file for package dino
#
# 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/
#
Name: dino
Version: 0.5.0~git4.c8da1cfb
Release: 0
Summary: Modern Jabber/XMPP Client using GTK+/Vala
License: GPL-3.0
URL: https://github.com/dino/dino
Source: dino-%{version}.tar.xz
Patch0: gray_out_avatars_of_counterparts_that_are_offline.patch
BuildRequires: meson
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: vala
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-rtp-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(gpgme)
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: pkgconfig(libqrencode)
BuildRequires: pkgconfig(libsrtp2)
BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(nice)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(webrtc-audio-processing)
BuildRequires: pkgconfig(libomemo-c)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: hicolor-icon-theme
%description
Dino is an instant messaging client for the Jabber/XMPP network,
providing a unique and modern user experience based on the latest
technology from the GNOME project. Dino is still in early
development and has limited features, but already has basic support
for XMPP's latest encryption features. Future versions will provide
a plug-in API, so that developers can easily add new optional
features.
%package devel
Summary: Development files for %{name}
Group: Development/Languages/Other
Requires: %{name} = %{version}
%description devel
Contains libraries and header files for developing plugins for %{name}.
%prep
%autosetup -p1
%build
echo "PRERELEASE %{version}" > VERSION
export CFLAGS="%{optflags} -Wno-return-type"
%meson
%meson_build
%install
%meson_install
%find_lang dino
%find_lang dino-omemo
%find_lang dino-openpgp
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f dino.lang -f dino-omemo.lang -f dino-openpgp.lang
%license LICENSE
%doc README.md
%{_bindir}/dino
%dir %{_libdir}/dino
%dir %{_libdir}/dino/plugins
%{_libdir}/dino/plugins/*.so
%{_datadir}/applications/im.dino.Dino.desktop
%{_datadir}/dbus-1/services/im.dino.Dino.service
%{_datadir}/icons/hicolor/*/*/*dino*
%{_datadir}/metainfo/im.dino.Dino.appdata.xml
%{_libdir}/libdino.so.*
%{_libdir}/libqlite.so.*
%{_libdir}/libcrypto-vala.so.*
%{_libdir}/libxmpp-vala.so.*
%files devel
%{_includedir}/*.h
%{_libdir}/libdino.so
%{_libdir}/libqlite.so
%{_libdir}/libcrypto-vala.so
%{_libdir}/libxmpp-vala.so
%{_datadir}/vala/vapi/*.{vapi,deps}
%changelog