File gnome-music.spec of Package gnome-music.26665

# spec file for package gnome-music
# Copyright (c) 2022 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

Name:           gnome-music
Version:        41.1
Release:        0
Summary:        Music Player for GNOME
License:        LGPL-2.1-or-later AND SUSE-GPL-2.0-with-plugin-exception
Group:          Productivity/Multimedia/Sound/Players
Source99:       %{name}-rpmlintrc

#PATCH-FIX-SLE  0001-gnome-music-use-python36.patch -- disable python 3.7 specific feature to allow gnome-music build and run on python 3.6 for SLE/Leap 15.4.
Patch0:         0001-gnome-music-use-python36.patch
#PATCH-FIX-SLE  0002-gnome-music-revert-from-future-import-annotations.patch -- disable python 3.7 specific feature to allow gnome-music build and run on python 3.6 for SLE/Leap 15.4.
Patch1:         0002-gnome-music-revert-from-future-import-annotations.patch

BuildRequires:  fdupes
BuildRequires:  itstool
BuildRequires:  meson
BuildRequires:  pkgconfig
%if 0%{?sle_version}
BuildRequires:  python3-devel >= 3.6
BuildRequires:  python3-devel >= 3.7
BuildRequires:  pkgconfig(glib-2.0) >= 2.67.1
BuildRequires:  pkgconfig(goa-1.0) >= 3.35.90
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.35.0
BuildRequires:  pkgconfig(grilo-0.3) >= 0.3.13
BuildRequires:  pkgconfig(grilo-plugins-0.3) >= 0.3.12
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.24.14
BuildRequires:  pkgconfig(libdazzle-1.0) >= 3.28.0
BuildRequires:  pkgconfig(libhandy-1) >= 1.2.0
BuildRequires:  pkgconfig(libmediaart-2.0) >= 1.9.1
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(pango) >= 1.44.0
BuildRequires:  pkgconfig(py3cairo) >= 1.14
BuildRequires:  pkgconfig(pygobject-3.0) >= 3.36.1
BuildRequires:  pkgconfig(tracker-sparql-3.0) >= 2.99.3
Requires:       dbus-1-python3
# gnome-music requires grilo-plugin-tracker to interact with tracker and find files (bsc#1083659)
Requires:       grilo-plugin-tracker
# gnomemusic/ imports cairo directly.
Requires:       python3-cairo >= 1.14
# This is a python 3 application
Requires:       python3-gobject
# ... a python3 GUI application
Requires:       python3-gobject-Gdk
# gnomemusic/ imports requests (not introspected)
Requires:       python3-requests
# gnome-music relies on tracker to find local files (bsc#1084861)
Requires:       tracker >= 2.99
# gnome-music relies on tracker to find local files.
Requires:       tracker-miner-files >= 2.99
# The versioned format depenency is written in a form not understood by our gi-scanner
Requires:       typelib(Tracker) = 3.0
Requires:       typelib(GstTag) = 1.0
Recommends:     gstreamer-plugins-ugly

Music player and management application for GNOME.


%setup -q
%if 0%{?sle_version}
%patch0 -p1
%patch1 -p1
# Fix shebangs:
sed -i -e 's|#!%{_bindir}/env python3|#!%{_bindir}/python3|'



%find_lang %{name} %{?no_lang_C}
%find_lang org.gnome.Music %{?no_lang_C} %{name}.lang
%fdupes %{buildroot}%{python3_sitelib}/gnomemusic
%fdupes %{buildroot}%{_datadir}/

%license LICENSE
%doc %{_datadir}/help/C/%{name}/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by