File banshee-doubanfm.spec of Package banshee-doubanfm
#
# spec file for package banshee-doubanfm
#
# Copyright (c) 2013 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.3.4
Release: 0
Summary: DoubanFM Extension for Banshee media player
License: MIT
Group: Productivity/Multimedia/Sound/Players
Summary(zh_CN): Banshee 播放器的豆瓣扩展
Url: https://bitbucket.org/pro711/banshee-doubanfm/overview
Source: pro711-%{name}-44400efeb772.tar.bz2
# PATCH-FIX-UPSTREAM banshee-doubanfm-dotnet4.patch dimstar@opensuse.org -- Build as .Net 4.0 target
Patch0: banshee-doubanfm-dotnet4.patch
BuildRequires: gconf2-devel
BuildRequires: intltool
# needed for autogen.sh
BuildRequires: gnome-doc-utils-devel >= 0.17.3
BuildRequires: libtool
BuildRequires: mono-devel >= 1.9.1
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.
%description -l zh_CN
此软件包是 Banshee 播放器的豆瓣电台支持扩展,喜欢收听豆瓣电台的小清新们可以选择安装。
%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.
%description -n banshee-extension-doubanfm -l zh_CN
此软件包是 Banshee 播放器的豆瓣电台支持扩展,喜欢收听豆瓣电台的小清新们可以选择安装。
%lang_package -n banshee-extension-doubanfm
%prep
%setup -q -n pro711-%{name}-44400efeb772
%patch0 -p1
%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