File banshee-community-extensions.spec of Package banshee-community-extensions

#
# spec file for package banshee-community-extensions (Version 1.8.0)
#
# Copyright (c) 2010 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           banshee-community-extensions
Version:        1.8.0
Release:        0
License:        MIT/X11 and GPL
Group:          Productivity/Multimedia/Sound/Players
Summary:        Extensions for Banshee media player
Url:            http://banshee-project.org/
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExcludeArch:    s390 s390x
BuildRequires:	gettext-runtime glib2-devel mono-devel fftw3-devel libsamplerate-devel intltool taglib-sharp-devel mono-addins sqlite-devel gstreamer010-plugins-base-devel make ndesk-dbus-glib-devel gtk-sharp2
#BuildRequires:  lirc
BuildRequires:  banshee-1-devel >= 1.7.6
%if %suse_version > 1100
BuildRequires:  notify-sharp
%endif
Requires:       banshee-1 >= 1.7.6
#Requires:       lirc
Recommends:     %{name}-lang = %{version}
Recommends:     banshee-extensions-alarm
Recommends:     banshee-extensions-awn
Recommends:     banshee-extensions-coverwallpaper
Recommends:     banshee-extensions-lcd
Recommends:     banshee-extensions-liveradio
Recommends:     banshee-extensions-magnatune
Recommends:     banshee-extensions-mirage
Recommends:     banshee-extensions-radiostationfetcher
Recommends:     banshee-extensions-streamrecorder
Recommends:     banshee-extensions-lyrics
%if %suse_version > 1110
Recommends:     banshee-extensions-telepathy
%endif

%description
Contains various contributed extensions:
* Alarm Clock
* Awn
* Cover Wallpaper
* LCD
* Live Radio
%if %suse_version > 1100
* Lyrics
%endif
* Magnatune
* Mirage
* Radio Station Fetcher
* Stream Recorder
%if %suse_version > 1110
* Telepathy
%endif

%package -n banshee-extension-alarm
License:        X11/MIT
Summary:        Alarm Clock
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-alarm
Use Banshee as an alarm clock.

%package -n banshee-extension-awn
License:        X11/MIT
Summary:        Awn Integration
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-awn
Provides integration with Avant Window Navigator.

%package -n banshee-extension-coverwallpaper
License:        X11/MIT
Summary:        Set Coverart as Desktop Background
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-coverwallpaper
Sets the cover art for the currently playing as the desktop background image.

%package -n banshee-extension-lcd
License:        X11/MIT
Summary:        LCD Device Display
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-lcd
Display track info on a LCD using LCDproc.

%package -n banshee-extension-liveradio
License:        X11/MIT
Summary:        Internet Radio Directory
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-liveradio
Find and listen to internet radio stations from various web directories.

%package -n banshee-extension-lyrics
License:        X11/MIT
Summary:        Lyrics Context Pane
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-lyrics
View lyrics for the currently playing song in the context pane.

%package -n banshee-extension-magnatune
License:        X11/MIT
Summary:        Streaming Music from Magnatune
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-magnatune
Listen to streams of music from Magnatune.

%package -n banshee-extension-mirage
License:        GPL v2
Summary:        Mirage Similarity Engine
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-mirage
Adds playback shuffle-by-similar and Auto DJ fill-by-similar modes, based on songs' acoustic similarity.

%package -n banshee-extension-radiostationfetcher
License:        X11/MIT
Summary:        Radio Station Fetcher
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-radiostationfetcher
Fetch internet radio stations from services like shoutcast.com.

%package -n banshee-extension-streamrecorder
License:        X11/MIT
Summary:        Stream Recorder
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-streamrecorder
Record internet-radio streams.

%if %suse_version > 1110
%package -n banshee-extension-telepathy
License:        X11/MIT
Summary:        Connect and Share With Your Friends
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee-1 >= %{version}
Requires:       notify-sharp
Requires:       empathy >= 2.27.91
Requires:       telepathy-gabble >= 0.9
Requires:       telepathy-mission-control >= 5.3.1
Recommends:     %{name}-lang = %{version}

%description -n banshee-extension-telepathy
Share music with your instant messaging friends.
%endif

%package lang
License:        X11/MIT
Summary:        Languages for package banshee-community-extensions
Group:          Productivity/Multimedia/Sound/Players

%description lang
Provides translations to the package banshee-community-extensions

%prep
%setup -q

%build
%{?env_options}
%configure \
    --disable-clutterflow \
    --disable-lirc

make

%install
%makeinstall
%find_lang %{name}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'
strip --strip-unneeded %{buildroot}/%{_libdir}/banshee-1/Extensions/libmirageaudio.so

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
#%doc ChangeLog NEWS COPYING AUTHORS README
%doc NEWS COPYING AUTHORS README
#%{_libdir}/banshee-1/Extensions/ClutterFlow.*
#%{_libdir}/banshee-1/Extensions/Banshee.ClutterFlow.*
#%{_libdir}/banshee-1/Extensions/Banshee.Lirc.*

%files lang -f %{name}.lang

%files -n banshee-extension-alarm
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.AlarmClock.*

%files -n banshee-extension-awn
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.Awn.*

%files -n banshee-extension-coverwallpaper
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.CoverWallpaper.*

%files -n banshee-extension-lcd
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.LCD.*

%files -n banshee-extension-liveradio
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.LiveRadio.*

%files -n banshee-extension-lyrics
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.Lyrics.*

%files -n banshee-extension-magnatune
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.Magnatune.*

%files -n banshee-extension-mirage
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/libmirageaudio.so
%{_libdir}/banshee-1/Extensions/Banshee.Mirage.*
%{_libdir}/banshee-1/Extensions/Mirage.*

%files -n banshee-extension-radiostationfetcher
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.RadioStationFetcher.*

%files -n banshee-extension-streamrecorder
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.Streamrecorder.*

%if %suse_version > 1110
%files -n banshee-extension-telepathy
%defattr(-,root,root)
%{_libdir}/banshee-1/Extensions/Banshee.Telepathy.*
%endif

%changelog