4f74591
Name:    banshee
252c30e
Version: 0.10.12
dee32fc
Release: 4%{?dist}
4f74591
Summary: easily import, manage, and play selections from your music collection
4f74591
4f74591
Group:   Applications/Multimedia
4f74591
License: MIT
4f74591
URL:     http://banshee-project.org/
4f74591
Source0: http://banshee-project.org/files/banshee/%{name}-%{version}.tar.gz
4f74591
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3f2360d
Patch1: banshee-0.10.12-mono-libdir.patch
dee32fc
Patch2: banshee-0.10.12-libdbus-glib-dllmap.patch
4f74591
4f74591
BuildRequires: ipod-sharp
4f74591
BuildRequires: avahi-sharp
4f74591
BuildRequires: libmusicbrainz-devel >= 2.1.1
a19c672
BuildRequires: gtk-sharp2-devel
4f74591
BuildRequires: mono-devel >= 1.1.10
4f74591
BuildRequires: mono-data
4f74591
BuildRequires: mono-data-sqlite
4f74591
BuildRequires: hal-devel
4f74591
BuildRequires: dbus-sharp >= 0.36.2
4f74591
BuildRequires: sqlite-devel >= 3.3
4f74591
BuildRequires: gstreamer-devel >= 0.10
4f74591
BuildRequires: gstreamer-plugins-base-devel >= 0.10
4f74591
BuildRequires: gnome-desktop-devel
be3baf5
BuildRequires: gnome-sharp-devel
4f74591
BuildRequires: nautilus-cd-burner-devel
426d359
BuildRequires: dbus-sharp-devel
a368522
BuildRequires: gettext-devel
be3baf5
BuildRequires: perl-XML-Parser
cb16414
cb16414
Requires:       libipoddevice
4f74591
Requires(post): GConf2
4f74591
Requires(post): desktop-file-utils
4f74591
Requires(postun): desktop-file-utils
4f74591
4f74591
%description
4f74591
Banshee allows you to import CDs, sync your music collection to an iPod,
4f74591
play music directly from an iPod, create playlists with songs from your
4f74591
library, and create audio and MP3 CDs from subsets of your library.
4f74591
4f74591
%prep
4f74591
%setup -q
3f2360d
%patch1 -p1 -b .mono-libdir
dee32fc
%patch2 -p1 -b .libdbus-glib-dllmap
4f74591
4f74591
%build
9c3a01c
# try to work around a problem where gst-inspect does
9c3a01c
# not find plugins the first time around
9c3a01c
/usr/bin/gst-inspect-0.10 --print-all
9c3a01c
4f74591
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
1b48a42
%configure  --disable-docs --with-gstreamer-0-10 --disable-helix
8f64667
make
4f74591
4f74591
%install
4f74591
%{__rm} -rf $RPM_BUILD_ROOT
4f74591
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
4f74591
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
4f74591
%makeinstall
4f74591
4f74591
desktop-file-install --vendor gnome --delete-original		\
4f74591
  --dir $RPM_BUILD_ROOT%{_datadir}/applications			\
4f74591
  --add-category X-Fedora					\
4f74591
  --add-only-show-in=GNOME                                      \
4f74591
  $RPM_BUILD_ROOT%{_datadir}/applications/banshee.desktop
4f74591
4f74591
%find_lang %name
4f74591
4f74591
%clean
4f74591
%{__rm} -rf $RPM_BUILD_ROOT
4f74591
4f74591
%post
4f74591
update-desktop-database %{_datadir}/applications
4f74591
4f74591
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
dee32fc
for schema in audioscrobbler.schemas banshee.schemas banshee-notificationareaicon.schemas daap.schemas filesystemmonitor.schemas metadatasearch.schemas mmkeys.schemas; do
4f74591
  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$schema > /dev/null || :
4f74591
done
4f74591
4f74591
touch --no-create %{_datadir}/icons/hicolor || :
4f74591
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
4f74591
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
4f74591
fi
4f74591
4f74591
4f74591
%postun
4f74591
update-desktop-database %{_datadir}/applications
4f74591
4f74591
touch --no-create %{_datadir}/icons/hicolor || :
4f74591
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
4f74591
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
4f74591
fi
4f74591
4f74591
4f74591
%files -f %{name}.lang
4f74591
%defattr(-,root,root,-)
4f74591
%doc COPYING
4f74591
%{_bindir}/banshee
4f74591
%{_libdir}/banshee
4f74591
%{_libdir}/pkgconfig/banshee.pc
4f74591
%{_datadir}/applications/*.desktop
4f74591
%{_datadir}/icons/hicolor/*
4f74591
%{_datadir}/dbus-1/services/org.gnome.Banshee.service
4f74591
%{_sysconfdir}/gconf/schemas
4f74591
%exclude %{_libdir}/banshee/*.a
4f74591
%exclude %{_libdir}/banshee/*.la
4f74591
4f74591
%changelog
dee32fc
* Fri Sep  1 2006 Christopher Aillon <caillon@redhat.com> - 0.10.12-4
dee32fc
- Register banshee-notificationareaicon.schemas in %%post (bug 185605)
dee32fc
- Add dllmap for libdbus-glib so banshee works without dbus-glib-devel
dee32fc
  (bug 202990)
dee32fc
0a95192
* Mon Aug 28 2006 Christopher Aillon <caillon@redhat.com> - 0.10.12-3
0a95192
- Rebuild
0a95192
05fa551
* Sat Aug 26 2006 Christopher Aillon <caillon@redhat.com> - 0.10.12-2
05fa551
- For some reason, the last build picked up dependencies on both
05fa551
  mono(glib-sharp) = 2.8.0.0 and mono(glib-sharp) = 2.10.0.0
05fa551
  Not sure why, but hopefully this rebuild fixes it....
05fa551
05fa551
* Wed Aug 23 2006 Christopher Aillon <caillon@redhat.com> - 0.10.12-1
252c30e
- Update to 0.10.12
252c30e
- Build against newer mono stack
252c30e
426d359
* Mon Aug  7 2006 Nalin Dahyabhai <nalin@redhat.com> - 0.10.11-1
426d359
- Update to 0.10.11
426d359
- Buildrequire: dbus-sharp-devel, because configure looks for it
a368522
- Buildrequire: gettext-devel, because configure looks for its copy of msgfmt
426d359
73f8b13
* Fri Jun 16 2006 Jeremy Katz <katzj@redhat.com> - 0.10.10-2
9c3a01c
- rebuild against new nautilus-cd-burner
9c3a01c
- hack to get it to build
73f8b13
c689434
* Tue May  2 2006 Christopher Aillon <caillon@redhat.com> 0.10.10-1
c689434
- Update to 0.10.10
c689434
2c94d00
* Tue Mar 21 2006 Christopher Aillon <caillon@redhat.com> 0.10.9-1
2c94d00
- Update to 0.10.9
2c94d00
4ebdf50
* Tue Mar 14 2006 Christopher Aillon <caillon@redhat.com> 0.10.8-1
4ebdf50
- Update to 0.10.8
4ebdf50
cb16414
* Thu Mar  9 2006 Christopher Aillon <caillon@redhat.com> 0.10.7-2
cb16414
- Add explicit Requires on libipoddevice (#184482)
cb16414
6f34567
* Tue Mar  7 2006 Christopher Aillon <caillon@redhat.com> 0.10.7-1
6f34567
- Update to 0.10.7
6f34567
- Fix build on x86-64
6f34567
8f64667
* Mon Mar  6 2006 Christopher Aillon <caillon@redhat.com> 0.10.6-3
8f64667
- Don't build with smp_mflags, as parallel make causes the build to fail
8f64667
b4dd000
* Sat Mar  4 2006 Christopher Aillon <caillon@redhat.com> 0.10.6-2
b4dd000
- Rebuild
b4dd000
4f74591
* Tue Feb 21 2006 Christopher Aillon <caillon@redhat.com> 0.10.6-1
4f74591
- Initial RPM