File mpdscribble.spec of Package mpdscribble
#
# spec file for package mpdscribble (Version 0.17)
#
# Copyright 2008 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.
Summary: An mpd client for submitting played tracks to last.fm
Name: mpdscribble
Version: 0.19+git
Release: 1
Source0: %{name}+git.tar.bz2
#Source1: http://hivelocity.dl.sourceforge.net/sourceforge/musicpd/%{name}-%{version}.tar.gz
Vendor: %{vendor}
URL: http://mpd.wikia.com/wiki/Client:Mpdscribble
License: GPLv2+
Group: Productivity/Multimedia/Sound/Utilities
Requires: mpd
BuildRequires: libsoup-devel >= 2.2
BuildRequires: glib2-devel >= 2.9
BuildRequires: libgio-2_0-0 >= 2.2
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
mpdscribble is a daemon that submits tracks played by the
Music Player Daemon (mpd) to last.fm (formerly known as
"audioscrobbler").
%prep
%setup -q -n %name
%build
if [ -x ./configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--libdir=%{_prefix}/%_lib \
--sysconfdir=%{_sysconfdir} \
--docdir=%{_docdir}/%{name} \
--disable-dependancy-tracking \
--disable-static
else
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix} \
--libdir=%{_prefix}/%_lib \
--sysconfdir=%{_sysconfdir} \
--docdir=%{_docdir}/%{name} \
--disable-dependancy-tracking \
--disable-static
fi
%{__make} %{?jobs:-j%jobs}
%debug_package
%install
%__make DESTDIR=$RPM_BUILD_ROOT install
[ -f "%{buildroot}/etc/f=mpdscribble.conf" ] &&
%__mv -f %{buildroot}/etc/f=mpdscribble.conf \
%{buildroot}%{_sysconfdir}/%{name}.conf
%clean
%__rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}
%doc AUTHORS COPYING NEWS README
%config(noreplace)%{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1.gz
%exclude /usr/lib/debug
%exclude /usr/lib/debug/*
%changelog
* Thu Jul 30 2009 Mario García H. <code933k@gmail.com> - 0.19+git
- Gone with the git version so that libre.fm could be used and
- doubly scrobbled along with another audioscrobler capable
- services.
- See the NEWS file and the home page to check out changes in
- the two 'minor' steps coded for mpdscribble.
* Fri Jun 5 2009 Mario García H. <code933k@gmail.com> - 0.17-1
- Initial package.