File gnome-music.spec of Package gnome-music

#
# spec file for package gnome-music
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


Name:           gnome-music
Version:        3.10.1
Release:        0
Summary:        Music Player for GNOME
License:        SUSE-GPL-2.0-with-plugin-exception and LGPL-2.1+
Group:          Productivity/Multimedia/Sound/Players
Url:            http://www.gnome.org
Source:         http://download.gnome.org/sources/gnome-music/3.10/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  intltool >= 0.26
BuildRequires:  itstool
BuildRequires:  python3-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0) >= 2.36.0
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.34.0
BuildRequires:  pkgconfig(grilo-0.2) >= 0.2.6
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.8.0
BuildRequires:  pkgconfig(tracker-miner-0.16) >= 0.16.1
BuildRequires:  pkgconfig(tracker-sparql-0.16) >= 0.16.1
Requires:       dbus-1-python3
# gnomemusic/albumArtCache.py imports cairo directly.
Requires:       python3-cairo
# This is a python 3 application
Requires:       python3-gobject
# gnome-music relies on tracker to find local files.
Requires:       tracker-miner-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Music player and management application for GNOME.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{python3_sitelib}/gnomemusic

%clean
rm -rf %{buildroot}

%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc README AUTHORS COPYING
%{_bindir}/gnome-music
%dir %{_datadir}/appdata
%{_datadir}/appdata/gnome-music.appdata.xml
%{_datadir}/applications/gnome-music.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Music.gschema.xml
%{_datadir}/gnome-music/
%{_datadir}/icons/hicolor/*/apps/gnome-music.png
%{_libdir}/gnome-music/
%{python3_sitelib}/gnomemusic/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by