%global snapshot 20110224 Name: mpdscribble Version: 0.22 Release: 0.n0i.7%{?snapshot:.%{snapshot}git}%{?dist} Summary: A mpd client which submits information about tracks being played to Last.fm Group: Applications/Multimedia License: GPLv2+ URL: http://mpd.wikia.com/wiki/Client:Mpdscribble %if %{?snapshot:1}0 Source0: %{name}-%{snapshot}.tar.bz2 Source99: %{name}-snapshot.sh %else Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glib2-devel libsoup-devel %description mpdscribble is a music player daemon (mpd) client which submits information about tracks being played to Last.fm (formerly audioscrobbler) %prep %if %{?snapshot:1}0 %setup -q -n %{name}-%{snapshot} %else %setup -q %endif %build %configure --with-http-client=soup make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} if [ -f %{buildroot}%{_sysconfdir}/f=mpdscribble.conf ] ; then mv %{buildroot}%{_sysconfdir}/f=mpdscribble.conf %{buildroot}%{_sysconfdir}/mpdscribble.conf fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/mpdscribble.conf %{_bindir}/mpdscribble %{_mandir}/man1/mpdscribble.1.gz %exclude %{_datadir}/doc/* %changelog * Thu Feb 24 2011 Marius FERARU - 0.22-0.n0i.6.20110224git - git snapshot from 20110224 * Sat Nov 13 2010 Marius FERARU - 0.21-0.n0i.5.20101113git - force building with "soup", "curl" build doesn't work * Sat Nov 13 2010 Marius FERARU - 0.21-0.n0i.4.20101113git - 0.21 git snapshot from 20101113 * Sun Jan 03 2010 Marius FERARU - 0.20-0.n0i.3.20100103git - 0.20 git snapshot from 20100103 * Mon Sep 07 2009 Marius FERARU - 0.18.1-1.n0i.2 - version 0.18.1 * Sat Aug 15 2009 Marius FERARU - 0.18-1.n0i.1 - version 0.18 * Tue Feb 03 2009 Jaroslaw Gorny - 0.16-1 - Version bumped to 0.16 - There's a systemwide config file now * Sun Dec 21 2008 Jaroslaw Gorny - 0.13-1 - Initial RPM