File lollypop.spec of Package lollypop
#
# spec file for package lollypop
#
# Copyright (c) 2016 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/
#
%global gobject_introspection_version 1.35.9
%global gtk3_version 3.12
Name: lollypop
Summary: GNOME music playing application
License: GPL-3.0+
Version: 0.9.205
Release: 0
Url: http://gnumdk.github.io/lollypop-web/
Source0: https://github.com/gnumdk/lollypop/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: libxml2
BuildRequires: python3-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version}
Requires: gobject-introspection >= %{gobject_introspection_version}
Requires: gstreamer
Requires: gstreamer-plugins-base
Requires: python3-cairo
Requires: python3-gobject
Requires: python3-pylast
# Can't migrate to GDBus, the server-side support is not implemented yet:
# https://bugzilla.gnome.org/show_bug.cgi?id=656330
Requires: dbus-1-python3
%if 0%{?suse_version} > 1320
Recommends: python3-wikipedia
%endif
Requires(pre): desktop-file-utils
Requires(post): desktop-file-utils
Recommends: %{name}-lang = %{version}
%glib2_gsettings_schema_requires
%description
Lollypop is a new GNOME music playing application. It provides the following
features:
* Supports mp3/4, ogg and flac
* Genre/Cover browsing
* Genre/Artist/Cover browsing
* Search
* Main playlist (called queue in other apps)
* Party mode
* Replay gain
* Cover art downloader
* Context artist view
* MTP sync
* Fullscreen view
* Radios support
* Last.fm support
* Auto install codecs
* HiDPI support
* Tunein support.
%lang_package
%prep
%setup -q
%build
# REMOVE UNNECESSARY BANG FROM NON-EXEC FILE
sed -i '1{/#!\/usr\/bin\/python/d;}' src/database_upgrade.py
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
%find_lang %{name} %{?no_lang_C}
# THESE CACHE FILES ARE USELESS REALLY AS THEY ARE NOT ACCOMPANIED BY CORRESPONDING SOURCE FILES
# DELETING THESE SAVES US A TON OF RPMLINT WARNINGS
rm -fr %{buildroot}%{python3_sitelib}/lollypop/__pycache__
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}%{python3_sitelib}/%{name}/
%fdupes %{buildroot}%{_datadir}/
%post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrast
%desktop_database_postun
%glib2_gsettings_schema_postun
%files -f %{name}.lang
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/help/*/%{name}
%if 0%{?suse_version} == 1315
%dir %{_datadir}/appdata
%endif
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Lollypop.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}-symbolic.svg
%{python3_sitelib}/lollypop/
%changelog