File decibels.spec of Package decibels

#
# spec file for package decibels
#
# Copyright (c) 2025 mantarimay
# Copyright (c) 2024 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 lname   org.gnome.Decibels
%define sname   gi-typescript-definitions
%define scommit dbbaa0527556cd3ce5434c4a5072cd99348eff7a
Name:           decibels
Version:        48.0
Release:        0
Summary:        Play audio files with a waveform
License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/GNOME/decibels
Source0:        %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
Source1:        https://gitlab.gnome.org/BrainBlasted/%{sname}/-/archive/%{scommit}/%{sname}-%{scommit}.tar.bz2
BuildRequires:  appstream-glib
BuildRequires:  blueprint-compiler
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson >= 0.62.0
BuildRequires:  typescript
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gjs-1.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  typelib(Adw)
Requires:       typelib(GstPlay)
Provides:       bundled(gi-types)
BuildArch:      noarch

%description
App that lets you play audio files. 
It has a modern and adaptive interface, with a waveform, simple playback controls, 
and the ability to control the speed at which the audio is played.

%lang_package

%prep
%setup -q
tar -xf %{SOURCE1} --strip-components 1 -C gi-types

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{lname}

%check
%meson_test

%files
%license LICEN*
%doc README*
%{_bindir}/%{lname}
%dir %{_datadir}/%{lname}
%{_datadir}/%{lname}/%{lname}*
%{_datadir}/applications/%{lname}.desktop
%{_datadir}/icons/hicolor/*/*/%{lname}*
%{_datadir}/metainfo/%{lname}.metainfo.xml
%{_datadir}/dbus-1/services/%{lname}.service

%files lang -f %{lname}.lang

%changelog
openSUSE Build Service is sponsored by