File newsflash.spec of Package newsflash
#
# spec file for package newsflash
#
# Copyright (c) 2020 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 appname io.gitlab.news_flash.NewsFlash
Name: newsflash
Version: 4.1.4
Release: 0
Summary: RSS client
License: GPL-3.0-only
URL: https://gitlab.com/news-flash/news_flash_gtk
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo
BuildRequires: meson
BuildRequires: gcc-c++
BuildRequires: clang
BuildRequires: pkgconfig
BuildRequires: cargo-packaging
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libhandy-1)
BuildRequires: pkgconfig(libadwaita-1) >= 1.4
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(webkitgtk-6.0) >= 2.42
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(blueprint-compiler)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.14
BuildRequires: pkgconfig(clapper-0.0)
BuildRequires: python3-gobject
Provides: news-flash-gtk = %{version}-%{release}
Obsoletes: news-flash-gtk < %{version}-%{release}
%description
A modern feed reader designed for the GNOME desktop. NewsFlash is a program designed to complement an already existing web-based RSS reader account.
It combines all the advantages of web based services like syncing across all your devices with everything you expect
from a modern desktop program: Desktop notifications, fast search and filtering, tagging, handy keyboard shortcuts
and having access to all your articles as long as you like.
%lang_package
%prep
%autosetup -a1
sed -i 's/0.0.0/%{version}/g' meson.build
%build
export RUSTC_BOOTSTRAP=1
%meson
%meson_build
%install
%meson_install
%suse_update_desktop_file -r %{appname} GNOME GTK Feed
%find_lang %{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{appname}
%{_datadir}/applications/%{appname}.desktop
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/metainfo/%{appname}.appdata.xml
%{_datadir}/dbus-1/services/*.service
%files lang -f %{name}.lang
%changelog