File nuvolaplayer.spec of Package nuvolaplayer
#
# spec file for package nuvolaplayer
#
# 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/
#
%define pkgname %{name}3
Name: nuvolaplayer
Version: 3.0.7
Release: 0
Summary: Cloud Music Integration for the Desktop
License: GPL-3.0+
Group: Productivity/Multimedia/Sound/Players
Url: https://tiliado.eu/nuvolaplayer/
Source: https://github.com/tiliado/nuvolaplayer/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: python
BuildRequires: python-scour
BuildRequires: rsvg-view
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.22.1
#BuildRequires: pkgconfig(appindicator3-0.1)
BuildRequires: pkgconfig(dioriteglib-0.2) >= 0.2.1
BuildRequires: pkgconfig(gio-2.0) >= 2.40
BuildRequires: pkgconfig(glib-2.0) >= 2.40
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10
BuildRequires: pkgconfig(json-glib-1.0) >= 0.7
BuildRequires: pkgconfig(libarchive) >= 3.1
BuildRequires: pkgconfig(libnotify) >= 0.7
BuildRequires: pkgconfig(libsoup-2.4) >= 2.38
BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.4
BuildRequires: pkgconfig(x11) >= 0.5
Recommends: %{name}-lang
Provides: google-music-frame = %{version}
Obsoletes: google-music-frame < 1.0.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nuvola Player runs web interface of cloud music service in its own
window and provides integration with a Linux desktop.
Currently supported services are Google Music, Grooveshark, Hype Machine
and 8tracks.
%package devel
Summary: Headers and vala files
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: vala >= 0.22.1
BuildArch: noarch
%description devel
Nuvola Player runs web interface of cloud music service in its own
window and provides integration with a Linux desktop.
This package contains files needed when developing with %{name}.
%prep
%setup -q
%build
./waf configure \
--no-debug \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
# --with-appindicator
./waf build --prefix=%{_prefix}
%install
./waf install --prefix=%{_prefix} --destdir=%{buildroot}
%suse_update_desktop_file -r %{pkgname} Music Player AudioVideo
# Find duplicates
%fdupes -s %{buildroot}%{_datadir}/%{pkgname}
install -d %{buildroot}%{_docdir}/%{name}
install -m 644 -t %{buildroot}%{_docdir}/%{name} README.md CHANGELOG.md CONTRIBUTING.md
%post
/sbin/ldconfig -p
%desktop_database_post
%icon_theme_cache_post
%postun
/sbin/ldconfig -p
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README.md
%doc %{_docdir}/%{name}/CHANGELOG.md
%{_bindir}/%{pkgname}*
%{_datadir}/applications/%{pkgname}.desktop
%{_datadir}/icons/hicolor/*/apps/%{pkgname}.*
%{_datadir}/appdata/
%{_datadir}/%{pkgname}/
%{_libdir}/%{pkgname}
%{_libdir}/lib%{pkgname}-*.so
%files devel
%defattr(-, root, root)
%doc %{_docdir}/%{name}/CONTRIBUTING.md
%{_includedir}/%{pkgname}-1.0
%{_datadir}/vala/vapi/%{pkgname}*
%changelog