Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 8ff26e6decb9d8632c217b44b055c47f > files > 3

banshee-2.6.0-3.mga3.src.rpm

%define build_appledevice	1
%define build_njb		0
%define build_mtp		1
%define build_karma		1
%define build_boo		1
#gw does not build with clutter 1.1.12:
#https://bugzilla.gnome.org/show_bug.cgi?id=611153
%define build_clutter		0
%define build_webkit		1

%{?_without_njb: %{expand: %%global build_njb 0}}
%{?_with_njb: %{expand: %%global build_njb 1}}
%{?_without_mtp: %{expand: %%global build_mtp 0}}
%{?_with_mtp: %{expand: %%global build_mtp 1}}
%{?_without_karma: %{expand: %%global build_karma 0}}
%{?_with_karma: %{expand: %%global build_karma 1}}
%{?_without_boo: %{expand: %%global build_boo 0}}
%{?_with_boo: %{expand: %%global build_boo 1}}
%{?_without_clutter: %{expand: %%global build_clutter 0}}
%{?_with_clutter: %{expand: %%global build_clutter 1}}

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	Music player with mobile player support
Name:		banshee
Version:	2.6.0
Release:	%mkrel 3
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
#(nl) KDE Solid integration : from mdv svn  soft/mandriva-kde-translation/trunk/solid/
Source1:	banshee-play-audiocd.desktop
License:	MIT
Group:		Sound/Players
Url:		http://banshee.fm

BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-sharp-glib-1.0) >= 0.5
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gconf-sharp-2.0) >= 2.8
BuildRequires:	pkgconfig(gdata-sharp-youtube) >= 1.4
BuildRequires:	pkgconfig(gio-sharp-2.0) >= 2.22.3
BuildRequires:	pkgconfig(gkeyfile-sharp)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-0.10) >= 0.10.26
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.26
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.8
BuildRequires:	pkgconfig(gtk-sharp-beans-2.0)
BuildRequires:	pkgconfig(gudev-sharp-1.0)
BuildRequires:	pkgconfig(mono) >= 2.4.3
BuildRequires:	pkgconfig(mono-addins) >= 0.3.1
BuildRequires:	pkgconfig(mono-zeroconf)
BuildRequires:	pkgconfig(notify-sharp)
BuildRequires:	pkgconfig(sqlite3) >= 3.4
BuildRequires:	pkgconfig(taglib-sharp) >= 2.0.3.7
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86vm)

%if %{build_mtp}
BuildRequires:	pkgconfig(libmtp)
%endif

%if %{build_appledevice}
Buildrequires:	pkgconfig(libgpod-sharp)
%endif

%if %{build_webkit}
Buildrequires:	pkgconfig(webkit-1.0) >= 1.2.2
%endif

%if %{build_clutter}
Buildrequires:	pkgconfig(clutter-1.0) >= 1.0.1
%endif

%if %{build_boo}
Buildrequires:	pkgconfig(boo) >= 0.8.1
%endif

%if %{build_karma}
Buildrequires:	pkgconfig(karma-sharp)
%endif

Requires:	gstreamer0.10-plugins-base
Requires:	gstreamer0.10-plugins-ugly
Requires:	gstreamer0.10-cdparanoia
Requires:	gstreamer0.10-gnomevfs
Suggests:	gstreamer0.10-xing
Suggests:	gstreamer0.10-lame
Suggests:	gstreamer0.10-faac
Suggests:	gstreamer0.10-faad
#gw for bpm detection:
Suggests:	gstreamer0.10-soundtouch
Suggests:	brasero

%description
With Banshee you can easily import, manage, and play selections from
your music collection. Banshee allows you to import CDs, sync your
music collection to an mobile device, play music directly from an
mobile player, create playlists with songs from your library, and
create audio and MP3 CDs from subsets of your library.

%if %{build_appledevice}
%package ipod
Group:		Sound/Players
Summary:	Ipod support for Banshee
Requires:	%{name} = %{version}-%{release}

%description ipod
With Banshee you can easily import, manage, and play selections from
your music collection. Banshee allows you to import CDs, sync your
music collection to an mobile device, play music directly from an
mobile player, create playlists with songs from your library, and
create audio and MP3 CDs from subsets of your library.

Install this package for iPod support in Banshee.
%endif

%if %{build_njb}
%package njb
Group:		Sound/Players
Summary:	Nomad jukebox support for Banshee
Requires:	%{name} = %{version}-%{release}
Buildrequires:	njb-sharp >= 0.3.0

%description njb
With Banshee you can easily import, manage, and play selections from
your music collection. Banshee allows you to import CDs, sync your
music collection to an mobile device, play music directly from an
mobile player, create playlists with songs from your library, and
create audio and MP3 CDs from subsets of your library.

Install this package for Nomad jukebox support in Banshee.
%endif

%if %{build_mtp}
%package mtp
Group:		Sound/Players
Summary:	MTP audio player support for Banshee
Requires:	%{name} = %{version}-%{release}

%description mtp
With Banshee you can easily import, manage, and play selections from
your music collection. Banshee allows you to import CDs, sync your
music collection to an mobile device, play music directly from an
mobile player, create playlists with songs from your library, and
create audio and MP3 CDs from subsets of your library.

Install this package for MTP audio player support in Banshee.
%endif

%if %{build_karma}
%package karma
Group:		Sound/Players
Summary:	Rio Karma audio player support for Banshee
Requires:	%{name} = %{version}

%description karma
With Banshee you can easily import, manage, and play selections from
your music collection. Banshee allows you to import CDs, sync your
music collection to an mobile device, play music directly from an
mobile player, create playlists with songs from your library, and
create audio and MP3 CDs from subsets of your library.

Install this package for Rio Karma audio player support in Banshee.
%endif

%package doc
Summary:	Development documentation for %{name}
Group:		Development/Other
Requires(post):		mono-tools >= 1.1.9
Requires(postun):	mono-tools >= 1.1.9
BuildArch:	noarch

%description doc
This package contains the API documentation for the %{name} in
Monodoc format.

%package devel
Group:		Development/Other
Requires:	%{name} = %{version}-%{release}
Summary:	Development parts of %{name}

%description devel
This package contains the pkg-config files needed for building Banshee
extensions.

%prep
%setup -q

%build
%configure2_5x  \
	--with-vendor-build-id="%{_vendor} %{distro_release}"  \
%if %{build_mtp}
	--enable-mtp \
%endif
%if !%{build_appledevice}
	--disable-appledevice \
%endif
%if %{build_karma}
	--enable-karma \
%endif
%if %{build_clutter}
	--enable-clutter \
%endif
	--disable-static \
	--disable-scrollkeeper \
	--disable-schemas-install
%make

%install
%makeinstall_std MONO=true

%find_lang %{name} --with-gnome

%if %{build_appledevice}
ln -sf %{_libdir}/libgpod/libgpod-sharp.dll* %{buildroot}%{_libdir}/%{name}/Extensions/
%endif

%if %{build_karma}
ln -sf %{_prefix}/lib/karma-sharp/karma-sharp.dll %{buildroot}%{_libdir}/%{name}/Extensions/
%endif

# we don't want these
find %{buildroot} -name "*.la" -delete

# gw fix paths in pkgconfig files
perl -pi -e "s^/lib$^/%{_lib}^" %{buildroot}%{_libdir}/pkgconfig/*.pc

#(nl) KDE Solid integration
mkdir -p %{buildroot}/%{_datadir}/apps/solid/actions/
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/apps/solid/actions/

%post doc
%{_bindir}/monodoc --make-index > /dev/null

%postun doc
if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
fi

%files -f %{name}.lang
%doc NEWS README AUTHORS
%{_bindir}/bamz
%{_bindir}/%{name}
%{_bindir}/muinshee
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/Backends
%{_libdir}/%{name}/Backends/Banshee.GStreamer.*
%{_libdir}/%{name}/Backends/Banshee.Gio.*
%{_libdir}/%{name}/Backends/Banshee.Gnome.*
%{_libdir}/%{name}/Backends/Banshee.NowPlaying.X11.*
%{_libdir}/%{name}/Backends/Banshee.Unix.*
%{_libdir}/%{name}/Backends/gio-sharp.dll*
%{_libdir}/%{name}/Backends/libbnpx11.so
%dir %{_libdir}/%{name}/Extensions
%{_libdir}/%{name}/Extensions/Banshee.Audiobook.dll*

%if %build_boo
%{_libdir}/%{name}/Extensions/Banshee.BooScript.dll*
%endif

%{_libdir}/%{name}/Extensions/Banshee.AmazonMp3.exe*
%{_libdir}/%{name}/Extensions/Banshee.Bpm.dll*
%{_libdir}/%{name}/Extensions/Banshee.CoverArt.dll*
%{_libdir}/%{name}/Extensions/Banshee.Daap.dll*
%{_libdir}/%{name}/Extensions/Banshee.Dap.MassStorage.dll*
%{_libdir}/%{name}/Extensions/Banshee.Dap.dll*
%{_libdir}/%{name}/Extensions/Banshee.Emusic.dll*
%{_libdir}/%{name}/Extensions/Banshee.Emusic.Store*
%{_libdir}/%{name}/Extensions/Banshee.FileSystemQueue.dll*
%{_libdir}/%{name}/Extensions/Banshee.Fixup.dll*
%{_libdir}/%{name}/Extensions/Banshee.InternetArchive.dll*
%{_libdir}/%{name}/Extensions/Banshee.InternetRadio.dll*
%{_libdir}/%{name}/Extensions/Banshee.Lastfm.dll*
%{_libdir}/%{name}/Extensions/Banshee.LastfmStreaming.dll*
%{_libdir}/%{name}/Extensions/Banshee.LibraryWatcher.dll*
%{_libdir}/%{name}/Extensions/Banshee.MiniMode.dll*
%{_libdir}/%{name}/Extensions/Banshee.Mpris.dll*
%{_libdir}/%{name}/Extensions/Banshee.MultimediaKeys.dll*
%{_libdir}/%{name}/Extensions/Banshee.NotificationArea.dll*
%{_libdir}/%{name}/Extensions/Banshee.NowPlaying.dll*
%{_libdir}/%{name}/Extensions/Banshee.OpticalDisc.dll*
%{_libdir}/%{name}/Extensions/Banshee.PlayerMigration.dll*
%{_libdir}/%{name}/Extensions/Banshee.PlayQueue.dll*
%{_libdir}/%{name}/Extensions/Banshee.Podcasting.dll*
%{_libdir}/%{name}/Extensions/Banshee.YouTube.dll*

%if %build_webkit
%{_libdir}/%{name}/Extensions/Banshee.AmazonMp3.Store.dll*
%{_libdir}/%{name}/Extensions/Banshee.MiroGuide.dll*
%{_libdir}/%{name}/Extensions/Banshee.Wikipedia.dll*
%endif

%{_libdir}/%{name}/*.exe*
%{_libdir}/%{name}/Banshee*.dll*
%{_libdir}/%{name}/Hyena*.dll*
%{_libdir}/%{name}/Lastfm*.dll*
%{_libdir}/%{name}/Migo.dll*
%{_libdir}/%{name}/Mono*.dll*
%{_libdir}/%{name}/MusicBrainz.dll*
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/Banshee.Services.addins
%{_datadir}/%{name}/
%{_datadir}/dbus-1/services/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-audiocd.desktop
%{_datadir}/applications/%{name}-media-player.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/apps/solid/actions/banshee-play-audiocd.desktop
%{_datadir}/mime/packages/banshee-amz.xml
%{_datadir}/mime/packages/banshee-emx.xml

%files devel
%{_libdir}/pkgconfig/%{name}*.pc

%files doc
%{_prefix}/lib/monodoc/sources/banshee-docs*
%{_prefix}/lib/monodoc/sources/hyena-docs*

%if %{build_appledevice}
%files ipod
%{_libdir}/%{name}/Extensions/Banshee.Dap.AppleDevice.dll*
%{_libdir}/%{name}/Extensions/libgpod-sharp.dll*
%endif

%if %{build_njb}
%files njb
%{_libdir}/%{name}/Extensions/Banshee.Dap/*jb*
%endif

%if %{build_mtp}
%files mtp
%{_libdir}/%{name}/Mtp.dll*
%{_libdir}/%{name}/Extensions/Banshee.Dap.Mtp.dll*
%endif

%if %{build_karma}
%files karma
%{_libdir}/%{name}/Extensions/Banshee.Dap.Karma.dll*
%{_libdir}/%{name}/Extensions/karma-sharp.dll*
%endif


%changelog

* Sat Jan 12 2013 fwang <fwang> 2.6.0-3.mga3
+ Revision: 358522
- rebuild for new google-data

* Fri Jan 11 2013 umeabot <umeabot> 2.6.0-2.mga3
+ Revision: 346841
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Sep 29 2012 ovitters <ovitters> 2.6.0-1.mga3
+ Revision: 300440
- update group: Sound -> Sound/Players
- new version 2.6.0

* Thu Sep 13 2012 ovitters <ovitters> 2.5.1-1.mga3
+ Revision: 293696
- new version 2.5.1

* Fri Aug 31 2012 fwang <fwang> 2.5.0-1.mga3
+ Revision: 285973
- new version 2.5.0

* Thu Aug 23 2012 tv <tv> 2.4.1-2.mga3
+ Revision: 283350
- rebuild for new taglib-sharp

* Thu May 31 2012 ovitters <ovitters> 2.4.1-1.mga3
+ Revision: 252560
- new version 2.4.1

* Mon Mar 19 2012 ovitters <ovitters> 2.4.0-1.mga3
+ Revision: 224539
- new version 2.4.0
- drop merged patch
- update buildrequires
- fix patch2
- add upstream patch to check ssl certificate
- clean spec

* Fri Mar 09 2012 fwang <fwang> 2.3.6-1.mga2
+ Revision: 222005
- new version 2.3.6

* Thu Feb 16 2012 fwang <fwang> 2.3.5-1.mga2
+ Revision: 209711
- new version 2.3.5

  + ovitters <ovitters>
    - add dep3 headers

* Sat Jan 21 2012 fwang <fwang> 2.3.4-1.mga2
+ Revision: 199076
- new version 2.3.4

* Thu Dec 22 2011 fwang <fwang> 2.3.3-1.mga2
+ Revision: 185616
- new version 2.3.3

* Fri Dec 02 2011 wally <wally> 2.3.2-1.mga2
+ Revision: 175153
- new version 2.3.2

* Wed Nov 02 2011 fwang <fwang> 2.2.1-1.mga2
+ Revision: 161243
- new version 2.2.1

* Tue Sep 20 2011 fwang <fwang> 2.2.0-1.mga2
+ Revision: 145891
- new version 2.2.0

* Thu Sep 08 2011 tv <tv> 2.1.4-1.mga2
+ Revision: 141079
- new release

* Wed Sep 07 2011 wally <wally> 2.1.3-2.mga2
+ Revision: 140546
- rebuild for new taglib-sharp
- add patch to fix build
- clean BRs and use pkgconfig style when possible

  + fwang <fwang>
    - new version 2.1.3

* Sun Jul 17 2011 dmorgan <dmorgan> 2.1.0-2.mga2
+ Revision: 125356
- Rebuild against new libgoogle-data-mono

* Sun Jul 03 2011 wally <wally> 2.1.0-1.mga2
+ Revision: 117571
- new version 2.1.0
- clean BRs
- disable static build
- drop old obsoletes and provides
- clean .spec

* Mon Jun 20 2011 dmorgan <dmorgan> 2.0.1-2.mga2
+ Revision: 110443
- Rebuild against new webkit

* Sun May 08 2011 pterjan <pterjan> 2.0.1-1.mga1
+ Revision: 96199
- Update to 2.0.1 (bug-fix-only release)

* Tue Apr 12 2011 ahmad <ahmad> 2.0.0-3.mga1
+ Revision: 83983
- drop some redundant BR.
- use %%distro_release instead of %%mgaversion

* Tue Apr 12 2011 ahmad <ahmad> 2.0.0-2.mga1
+ Revision: 83607
- bump rel for a smooth upgrade from 2010.1 (package in main/backports is -2mdv)

* Tue Apr 12 2011 ahmad <ahmad> 2.0.0-1.mga1
+ Revision: 83601
- update to 2.0.0
- disable hal when disabling (old) ipod support (Mandriva)
- fix the solid action .desktop file (Mandriva)

* Thu Mar 24 2011 boklm <boklm> 1.8.1-3.mga1
+ Revision: 76131
- rebuild for bug #497

* Wed Mar 16 2011 ahmad <ahmad> 1.8.1-2.mga1
+ Revision: 72934
- add BR libproxy-devel
- add BR libgnome-keyring-devel

  + ennael <ennael>
    - adapt vendor name
    - remove mdv version
    - clean spec file
    - imported package banshee