File shortwave.spec of Package shortwave

#
# spec file for package shortwave
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

%define _lto_cflags %{nil} 
Name:           shortwave
Version:        5.0.0
Release:        0
Summary:        Listen to internet radio
License:        GPL-3.0-or-later
Url:            https://gitlab.gnome.org/World/Shortwave
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.zst
BuildRequires:  meson
BuildRequires:  git
BuildRequires:  cargo-packaging
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libseccomp)
BuildRequires:  pkgconfig(libhandy-1)
BuildRequires:  pkgconfig(shumate-1.0)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0)

Recommends:     %{name}-lang

%description
If you have any questions regarding the use or development of Shortwave,
want to discuss design or simply hang out, please join us on our #shortwave:matrix.org channel.

%lang_package

%prep
%autosetup -a1

%build
%meson
%meson_build

%install
%meson_install
%suse_update_desktop_file -r de.haeckerfelix.Shortwave "GTK;GNOME;Audio;HamRadio;"
%find_lang %{name}


%files
%license  COPYING.md
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/de.haeckerfelix.Shortwave.service
%{_datadir}/glib-2.0/schemas/de.haeckerfelix.Shortwave.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/de.haeckerfelix.Shortwave.svg
%{_datadir}/icons/hicolor/symbolic/apps/de.haeckerfelix.Shortwave-symbolic.svg
%{_datadir}/metainfo/de.haeckerfelix.Shortwave.metainfo.xml
%{_datadir}/shortwave
%{_datadir}/shortwave/de.haeckerfelix.Shortwave.gresource

%files lang -f %{name}.lang

%changelog

openSUSE Build Service is sponsored by