Name:           pidgin-rhythmbox
Version:        2.0
Release:        3%{?dist}
Summary:        Rhythmbox plugin for Pidgin

Group:          Applications/Internet
License:        GPLv2+
URL:            http://jon.oberheide.org/projects/pidgin-rhythmbox/
Source0:        http://jon.oberheide.org/projects/pidgin-rhythmbox/downloads/pidgin-rhythmbox-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  pidgin-devel
BuildRequires:  gtk2-devel
BuildRequires:  dbus-glib-devel dbus-devel
Requires:       pidgin rhythmbox

Provides:       gaim-rhythmbox = %{version}-%{release}
Obsoletes:      gaim-rhythmbox < %{version}-%{release}


%description
The Pidgin-Rhythmbox plugin will automatically update your Pidgin user and 
status info with the currently playing music in Rhythmbox.

If the artist and title are known, it will also attempt to create a link to 
the song's lyrics by using Google's "I'm Feeling Lucky" feature.

Pidgin-Rhythmbox will replace %rb in your user info and status message with 
the song information.


%prep
%setup -q -n %{name}-%{version}%{?prever}


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# remove .la file
rm $RPM_BUILD_ROOT/%{_libdir}/pidgin/pidgin-rhythmbox.la


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/pidgin/pidgin-rhythmbox.so


%changelog
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0-3
- Autorebuild for GCC 4.3

* Sat Sep  8 2007 Michel Salim <michel.sylvan@gmail.com 2.0-2
- License update

* Sun Apr 29 2007 Michel Salim <michel.salim@gmail.com> 2.0-1
- Update to 2.0
- Package renamed to pidgin-rhythmbox

* Sat Jan  6 2007 Michel Salim <michel.salim@gmail.com> 2.0-0.5.beta5
- Update to beta5

* Fri Nov  3 2006 Michel Salim <michel.salim@gmail.com> 2.0-0.4.beta4
- Update to beta4

* Thu Nov  2 2006 Michel Salim <michel.salim@gmail.com> 2.0-0.3.beta3
- Tidy up prever use, description field, and add files to documentation

* Thu Nov  2 2006 Michel Salim <michel.salim@gmail.com> 2.0-0.2.beta3
- Add missing BuildRequires

* Sat Oct 28 2006 Michel Salim <michel.salim@gmail.com> 2.0-0.1.beta3
- Initial package