File banshee-doubanfm.spec of Package banshee-doubanfm

#
# spec file for package banshee-doubanfm
#
# Copyright (c) 2011 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/
#



Name:           banshee-doubanfm
Version:        0.2.4
Release:        1
License:        MIT
Summary:        DoubanFM Extension for Banshee media player
Url:            http://code.google.com/p/banshee-doubanfm/
Group:          Productivity/Multimedia/Sound/Players
Source:         banshee-doubanfm-%{version}.tar.gz
BuildRequires:  gconf2-devel
BuildRequires:  intltool
# needed for autogen.sh
BuildRequires:  libtool
BuildRequires:  mono-devel >= 1.9.1
BuildRequires:  gnome-doc-utils-devel >= 0.17.3
BuildRequires:  pkgconfig(banshee-thickclient) >= 1.9.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides an extension for Banshee to listen to Douban FM,
a popular online radio station in China.

%package -n banshee-extension-doubanfm
Summary:        DoubanFM Extension for Banshee media player
Group:          Productivity/Multimedia/Sound/Players
Requires:       banshee >= 2.0.0
Recommends:     banshee-extension-doubanfm-lang
# Nice to have since it's not the upstream name, but also required to make lang package installable
Provides:       %{name} = %{version}

%description -n banshee-extension-doubanfm
This package provides an extension for Banshee to listen to Douban FM,
a popular online radio station in China.

%lang_package -n banshee-extension-doubanfm
%prep
%setup -q -n %{name}

%build
# There's no configure, so we need to call autogen.sh first
./autogen.sh
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang banshee-extension-doubanfm

%files -n banshee-extension-doubanfm
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/banshee/Extensions/Banshee.DoubanFM.*

%files -n banshee-extension-doubanfm-lang -f banshee-extension-doubanfm.lang

%changelog
openSUSE Build Service is sponsored by