File pragha.spec of Package pragha
#
# spec file for package pragha
#
# Copyright (c) 2012 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: pragha
Version: 1.1.1
Release: 0
Summary: Lightweight Music Player
License: GPL-3.0+
Group: Productivity/Multimedia/Sound/Players
Url: http://pragha.wikispaces.com/
Source0: https://github.com/downloads/matiasdelellis/%{name}/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE pragha-1.0.2-pixdir.patch lazy.kent@opensuse.org -- install icons into program dir, not into system one
Patch0: pragha-1.0.2-pixdir.patch
# PATCH-FIX-UPSTREAM pragha-1.1.1-russian.patch lazy.kent@opensuse.org -- correct Russian translation
Patch1: pragha-1.1.1-russian.patch
BuildRequires: ImageMagick
BuildRequires: autoconf
BuildRequires: fdupes
BuildRequires: libcdio-devel
BuildRequires: libtool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gtk+-2.0) >= 2.24
BuildRequires: pkgconfig(keybinder)
BuildRequires: pkgconfig(libcddb)
BuildRequires: pkgconfig(libcdio_paranoia)
BuildRequires: pkgconfig(libclastfm) >= 0.5
BuildRequires: pkgconfig(libglyr)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(totem-plparser)
%if 0%{?suse_version} >= 1210
BuildRequires: pkgconfig(taglib)
%else
BuildRequires: taglib-devel
%endif
Requires: gstreamer-0_10-plugins-base
Requires: gstreamer-0_10-plugins-good
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A Lightweight Music Player for GNU/Linux, based on Gtk, sqlite, and
completely written in C, constructed to be fast, light, and
simultaneously complete without obstructing the daily work.
Pragha was originally derived of Consonance Music Manager
(http://sites.google.com/site/consonancemanager/), discontinued by the
original author.
Some of the features are:
* Library management using sqlite3.
* Versatile Amarok-style play queue.
* Multiple views.
* OSD support with Libnotify.
* Id3 tag editing.
* mp3, ogg, flac, modplug, wav, asf, wma, mp4, m4a, MonkeyAudio and
Audio CD support.
* Last.fm scrobbling, get cover art, get artist information, append
similar songs, love, unlove, etc.
* Playlist management (M3U Exporting).
* DBUS management interface.
* MPRIS2 Support.
* Search/Filterin the current playlist.
* Search lyrics.
%lang_package
%prep
%setup -q
%patch0
%patch1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Remove installed docs -- I will install them myself.
rm -rf %{buildroot}%{_datadir}/doc/%{name}
# Install Norwegian Bokmål locale to the right place.
mv -f %{buildroot}%{_datadir}/locale/{no,nb}
# Install icons of various sizes.
for size in 96x96 64x64 48x48 32x32 22x22 16x16 ; do
install -dm 0755 \
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps
convert -resize ${size} data/%{name}.png \
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
done
%fdupes -s %{buildroot}%{_datadir}
%find_lang %{name}
%suse_update_desktop_file %{name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
# FIXME: add AUTHORS to docs if not empty.
%doc ChangeLog COPYING FAQ NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%doc %{_mandir}/man?/*
%files lang -f %{name}.lang
%changelog