File covergloobus.spec of Package covergloobus
#
# spec file for package covergloobus
#
# Copyright (c) 2015 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: covergloobus
Version: 1.7.3
Release: 0
Summary: Is a desktop coverart & media controller that can also display lyrics
License: GPL-3.0
BuildArch: noarch
Group: Productivity/Multimedia/Sound/Visualization
Url: http://gloobus.net/coverglobus/
Source0: https://launchpad.net/~gloobus-dev/+archive/ubuntu/covergloobus/+files/%{name}_%{version}.tar.gz
BuildRequires: python
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
BuildRequires: fdupes
Requires: dbus-1-python
Requires: python-gtk
Requires: python-xdg
%description
This is a simple application to show the cover and the info of what is playing in your favorite
player. It also downloads the lyrics of the songs middle clicking on the applet.
You can create your themes with a easy XML file and plugins for different players are also really
easy to implement. And plugins for different lyric engines are even easier!!
%prep
%setup -q -n %{name}-%{version}
%build
%configure --prefix=%_prefix
make %{?_smp_mflags}
%install
%make_install
%find_lang %name
%suse_update_desktop_file -G "Coverart" %{name} "DesktopUtility" "AudioVideo" "Music"
%suse_update_desktop_file -G "Settings" %{name}-config "Utility" "DesktopUtility"
cd %{buildroot}/%{_datadir}/%name/images
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/192x192/apps
install -c -m 644 %name.png \
%{buildroot}%{_datadir}/icons/hicolor/192x192/apps/%name.png
%fdupes -s %buildroot/%_prefix
%post
%desktop_database_post
%postun
%desktop_database_postun
%files -f %name.lang
%defattr(-,root,root)
%doc ChangeLog COPYING
%_datadir/%name
%_datadir/applications/*
%_datadir/icons/hicolor/*/apps/%name.*
%_bindir/%name
%_bindir/%name-config
%changelog