File paper-plane.spec of Package paper-plane

#
# spec file for package paper-plane
#
# Copyright (c) 2023 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 _lto_cflags %{nil}
%define _ver    v0.1.0-beta.5
Name:           paper-plane
Version:        0.1.0~beta.5
Release:        0
Summary:        Chat over Telegram on a modern and elegant client 
License:        GPL-3.0-only
URL:            https://github.com/paper-plane-developers/paper-plane
Source:         %{url}/releases/download/%{_ver}/%{name}-%{_ver}.tar.xz#/%{name}-%{_ver}.tar.zst
BuildRequires:  blueprint-compiler
BuildRequires:  cargo-packaging
BuildRequires:  clang
BuildRequires:  desktop-file-utils
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(shumate-1.0)
BuildRequires:  pkgconfig(tdjson)
BuildRequires:  pkgconfig(rlottie)

%description
Paper Plane is an alternative Telegram client. It uses libadwaita for its
user interface and strives to meet the design principles of the GNOME
desktop.

%lang_package

%prep
%autosetup -n %{name}-%{_ver}

# try to build with current tdlib
sed -i '/tdjson/s/==/>=/' meson.build

%build
%meson
%meson_build

%install
%meson_install
rm -rf %{buildroot}%{_datadir}/locale/zh_Hans

%find_lang %{name}

%files
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/metainfo/*.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by