File moonshine.spec of Package moonshine
#
# spec file for package moonshine (Version 0.1)
#
# Copyright (c) 2009 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
Summary: Moonshine Media Player and Browser Plugin
Group: Productivity/Multimedia/Other
License: X11/MIT
Url: http://abock.org/moonshine
Version: 0.1
Release: 1
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: glib2-devel mozilla-xulrunner190-devel update-desktop-files
Requires: moonlight-plugin
%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 legacy embedded Windows
Media content on the web and local files on a user's desktop.
Authors:
--------
Aaron Bockover <abockover@novell.com>
%package plugin
Summary: Moonshine Media Player and Browser Plugin
Group: Productivity/Multimedia/Other
License: X11/MIT
%if 0%{?suse_version} >= 1120
Conflicts: totem-browser-plugin-gmp
%else
Conflicts: totem-plugin
%endif
%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 legacy embedded Windows
Media content on the web and local files on a user's desktop.
Authors:
--------
Aaron Bockover <abockover@novell.com>
%prep
%setup -q
%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/128x128/apps/moonshine.png \
%{buildroot}%{_datadir}/moonshine/chrome/icons/default/moonshine-window.png
%suse_update_desktop_file -n %{name}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README NEWS
%{_bindir}/moonshine
%{_datadir}/moonshine
%{_datadir}/icons/hicolor
%{_datadir}/applications/*.desktop
%files plugin
%defattr(-, root, root)
%{_libdir}/browser-plugins/*.so
%changelog