File moonshine.spec of Package moonshine
#
# spec file for package moonshine (Version 0.4)
#
# 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: moonshine
License: MIT
Group: Productivity/Multimedia/Video/Players
Summary: Desktop Shell for the Moonshine Media Player Plugin
Url: http://moonshine.cc/
Version: 0.4
Release: 4
Source: %{name}-%{version}.tar.bz2
Patch0: moonshine-loader.patch
Patch1: moonshine-downloader.patch
Patch2: moonshine-search-prefix.patch
Patch3: xulrunner-1.9.2.patch
ExclusiveArch: %ix86 x86_64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: glib2-devel pkg-config update-desktop-files
%if %suse_version > 1130
BuildRequires: mozilla-xulrunner192-devel
%else
BuildRequires: mozilla-xulrunner191-devel
%endif
Requires: moonlight-plugin
Requires: moonshine-plugin = %{version}
%description
Moonshine leverages the Windows Media capabilities from Silverlight,
provided by the Moonlight browser plugin on Linux, and the Firefox web
browser framework to enable the playback of embedded Windows Media
content on the web and local files on a user's desktop.
Authors:
--------
Aaron Bockover <abockover@novell.com>
%package plugin
License: MIT
Group: Productivity/Multimedia/Video/Players
Summary: Moonlight-based Browser Plugin for Windows Media Support
Requires: moonlight-plugin >= 1.0.1
Conflicts: totem-browser-plugin-gmp
%description plugin
Moonshine leverages the Windows Media capabilities from Silverlight,
provided by the Moonlight browser plugin on Linux, and the Firefox web
browser framework to enable the playback of embedded Windows Media
content on the web and local files on a user's desktop.
Authors:
--------
Aaron Bockover <abockover@novell.com>
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%if %suse_version > 1130
%patch3
%endif
%build
%{?env_options}
%{?configure_options}
%configure
%{__make} %{?jobs:-j%jobs}
%install
%{?env_options}
%makeinstall
rm %{buildroot}%{_libdir}/browser-plugins/*.la
rm %{buildroot}%{_datadir}/moonshine/chrome/icons/default/moonshine-window.png
ln -s %{_datadir}/icons/hicolor/256x256/apps/moonshine.png \
%{buildroot}%{_datadir}/moonshine/chrome/icons/default/moonshine-window.png
%suse_update_desktop_file -n moonshine
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc COPYING AUTHORS README NEWS
%dir %{_datadir}/moonshine
%{_bindir}/moonshine
%{_datadir}/moonshine
%{_datadir}/applications/moonshine.desktop
%{_datadir}/icons/hicolor/*/apps/moonshine.png
%files plugin
%defattr(-, root, root)
%doc COPYING AUTHORS README NEWS
%{_libdir}/browser-plugins/libmoonshine-plugin.so
%changelog