|
@@ -1,5 +1,6 @@
|
|
%define mono_dir %{_prefix}/lib/mono
|
|
%define mono_dir %{_prefix}/lib/mono
|
|
-%define moonlight_dir %{_libdir}/moonlight
|
|
|
|
|
|
+%define monodoc_dir %{_prefix}/lib/monodoc
|
|
|
|
+%define moonlight_dir %{_prefix}/lib/moonlight
|
|
%define pkgconfigdir %{_datadir}/pkgconfig
|
|
%define pkgconfigdir %{_datadir}/pkgconfig
|
|
%define included_mono 2.6
|
|
%define included_mono 2.6
|
|
|
|
|
|
@@ -7,26 +8,29 @@ Summary: An open source implementation of Silverlight
|
|
Summary(ja): Silverlight のオープンソースによる実装
|
|
Summary(ja): Silverlight のオープンソースによる実装
|
|
Name: moonlight
|
|
Name: moonlight
|
|
Version: 2.0
|
|
Version: 2.0
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
License: LGPL v2.0 only ; MIT License (or similar) ; Ms-Pl
|
|
License: LGPL v2.0 only ; MIT License (or similar) ; Ms-Pl
|
|
URL: http://go-mono.com/moonlight/
|
|
URL: http://go-mono.com/moonlight/
|
|
|
|
|
|
Source0: ftp://ftp.novell.com/pub/mono/sources/moon/2.0/moonlight-%{version}.tar.bz2
|
|
Source0: ftp://ftp.novell.com/pub/mono/sources/moon/2.0/moonlight-%{version}.tar.bz2
|
|
-Source1: mono-%{included_mono}.tar.bz2
|
|
|
|
-Source2: mono-basic-%{included_mono}.tar.bz2
|
|
|
|
|
|
+Source1: ftp://ftp.novell.com/pub/mono/sources/moon/2.0/mono-%{included_mono}.tar.bz2
|
|
|
|
+Source2: ftp://ftp.novell.com/pub/mono/sources/moon/2.0/mono-basic-%{included_mono}.tar.bz2
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
#Patch0: missing-files.patch
|
|
#Patch0: missing-files.patch
|
|
-BuildRequires: mono-devel >= 2.6
|
|
|
|
-BuildRequires: monodoc
|
|
|
|
|
|
+#BuildRequires: mono-devel >= 2.6
|
|
|
|
+#BuildRequires: monodoc
|
|
BuildRequires: gtk-sharp2
|
|
BuildRequires: gtk-sharp2
|
|
BuildRequires: rsvg2-sharp
|
|
BuildRequires: rsvg2-sharp
|
|
BuildRequires: wnck-sharp
|
|
BuildRequires: wnck-sharp
|
|
-BuildRequires: gtk2-devel gcc-c++
|
|
|
|
|
|
+BuildRequires: gcc-c++
|
|
|
|
+BuildRequires: gtk2-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: xulrunner-devel
|
|
BuildRequires: xulrunner-devel
|
|
|
|
+#BuildRequires: automake
|
|
|
|
+#BuildRequires: autoconf
|
|
ExclusiveArch: %ix86 x86_64
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -120,33 +124,47 @@ Provides a gtk-sharp object that can be used to embed a moonlight surface in a d
|
|
%build
|
|
%build
|
|
# The plugin requires a complete build of it's own mono
|
|
# The plugin requires a complete build of it's own mono
|
|
pushd ../mono-%{included_mono}
|
|
pushd ../mono-%{included_mono}
|
|
-./configure --prefix=%{_builddir}/install --with-mcs-docs=no --with-ikvm-native=no
|
|
|
|
-%{__make}
|
|
|
|
|
|
+./configure \
|
|
|
|
+ --prefix=%{_builddir}/install \
|
|
|
|
+ --with-mcs-docs=no \
|
|
|
|
+ --with-ikvm-native=no \
|
|
|
|
+ ;
|
|
|
|
+# mono is not strictly -j safe
|
|
|
|
+%{__make} EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
|
|
%{__make} install
|
|
%{__make} install
|
|
find %{_builddir}/install -name \*.la -delete
|
|
find %{_builddir}/install -name \*.la -delete
|
|
popd
|
|
popd
|
|
|
|
|
|
|
|
+# Configure against the junk install of mono
|
|
|
|
+export PATH=%{_builddir}/install/bin:${PATH}
|
|
|
|
+export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
|
|
+export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
|
|
+#autoreconf -f -i -Wnone
|
|
%configure \
|
|
%configure \
|
|
- --without-testing \
|
|
|
|
- --without-performance \
|
|
|
|
- --without-examples \
|
|
|
|
- --disable-debug \
|
|
|
|
- --disable-sanity \
|
|
|
|
- --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \
|
|
|
|
- --with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \
|
|
|
|
--with-ffmpeg=no \
|
|
--with-ffmpeg=no \
|
|
--with-cairo=system \
|
|
--with-cairo=system \
|
|
|
|
+ --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \
|
|
|
|
+ --with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \
|
|
--with-ff3=yes \
|
|
--with-ff3=yes \
|
|
-
|
|
|
|
|
|
+ --with-testing=no \
|
|
|
|
+ --with-performance=no \
|
|
|
|
+ --with-examples=no \
|
|
|
|
+ --with-debug=no \
|
|
|
|
+ --with-sanity-checks=no \
|
|
|
|
+
|
|
|
|
+export MONO_GAC_PREFIX=%{_builddir}/install:%{_prefix}
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
+export PATH=%{_builddir}/install/bin:${PATH}
|
|
|
|
+export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
|
|
+export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
make install DESTDIR=${RPM_BUILD_ROOT} pkgconfigdir=%{pkgconfigdir}
|
|
make install DESTDIR=${RPM_BUILD_ROOT} pkgconfigdir=%{pkgconfigdir}
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
|
|
-ln -s %{moonlight_dir}/plugin/libmoonloader.so \
|
|
|
|
|
|
+ln -s %{_libdir}/moonlight/plugin/libmoonloader.so \
|
|
$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
|
|
|
|
# remove unuse files
|
|
# remove unuse files
|
|
@@ -159,6 +177,7 @@ find %{buildroot} -name \*.la -delete
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+
|
|
%files libs
|
|
%files libs
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog README TODO NEWS
|
|
%doc AUTHORS COPYING ChangeLog README TODO NEWS
|
|
@@ -178,14 +197,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_bindir}/unrespack
|
|
%{_bindir}/unrespack
|
|
%{_bindir}/xaml2html
|
|
%{_bindir}/xaml2html
|
|
%{_bindir}/xamlg
|
|
%{_bindir}/xamlg
|
|
-%dir %{moonlight_dir}
|
|
|
|
-%{moonlight_dir}/mopen.exe*
|
|
|
|
-%{moonlight_dir}/munxap.exe
|
|
|
|
-%{moonlight_dir}/mxap.exe
|
|
|
|
-%{moonlight_dir}/respack.exe
|
|
|
|
-%{moonlight_dir}/xaml2html.exe
|
|
|
|
-%{moonlight_dir}/xamlg.exe
|
|
|
|
-%{moonlight_dir}/sockpol.exe
|
|
|
|
|
|
+%dir %{_libdir}/moonlight
|
|
|
|
+%{_libdir}/moonlight/mopen.exe*
|
|
|
|
+%{_libdir}/moonlight/munxap.exe
|
|
|
|
+%{_libdir}/moonlight/mxap.exe
|
|
|
|
+%{_libdir}/moonlight/respack.exe
|
|
|
|
+%{_libdir}/moonlight/xaml2html.exe
|
|
|
|
+%{_libdir}/moonlight/xamlg.exe
|
|
|
|
+%{_libdir}/moonlight/sockpol.exe
|
|
%{_mandir}/man1/mopen.1.gz
|
|
%{_mandir}/man1/mopen.1.gz
|
|
%{_mandir}/man1/mxap.1.gz
|
|
%{_mandir}/man1/mxap.1.gz
|
|
%{_mandir}/man1/respack.1.gz
|
|
%{_mandir}/man1/respack.1.gz
|
|
@@ -195,75 +214,78 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files plugin
|
|
%files plugin
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%dir %{moonlight_dir}/plugin
|
|
|
|
-%{moonlight_dir}/plugin/Microsoft.VisualBasic.dll
|
|
|
|
-%{moonlight_dir}/plugin/System.Core.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.Net.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.Runtime.Serialization.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.ServiceModel.Web.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.ServiceModel.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.Windows.Browser.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.Windows.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.Xml.dll*
|
|
|
|
-%{moonlight_dir}/plugin/System.dll*
|
|
|
|
-%{moonlight_dir}/plugin/libmoonloader.so
|
|
|
|
-%{moonlight_dir}/plugin/libmoonplugin-ff3bridge.so
|
|
|
|
-%{moonlight_dir}/plugin/libmoonplugin.so
|
|
|
|
-%{moonlight_dir}/plugin/mscorlib.dll*
|
|
|
|
|
|
+%dir %{_libdir}/moonlight/plugin
|
|
|
|
+%{_libdir}/moonlight/plugin/Microsoft.VisualBasic.dll
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Core.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Net.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Runtime.Serialization.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.ServiceModel.Web.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.ServiceModel.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Windows.Browser.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Windows.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.Xml.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/System.dll*
|
|
|
|
+%{_libdir}/moonlight/plugin/libmoonloader.so
|
|
|
|
+%{_libdir}/moonlight/plugin/libmoonplugin-ff3bridge.so
|
|
|
|
+%{_libdir}/moonlight/plugin/libmoonplugin.so
|
|
|
|
+%{_libdir}/moonlight/plugin/mscorlib.dll*
|
|
%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
|
|
|
|
%files web-devel
|
|
%files web-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_bindir}/smcs
|
|
%{_bindir}/smcs
|
|
-%dir %{_prefix}/lib/moonlight/2.0-redist
|
|
|
|
-%{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.Data.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll*
|
|
|
|
-%dir %{_prefix}/lib/moonlight/2.0
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/Microsoft.VisualBasic.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/Mono.CompilerServices.SymbolWriter.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Core.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Net.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Runtime.Serialization.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.ServiceModel.Web.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.ServiceModel.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Windows.Browser.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Windows.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.Xml.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/System.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/mscorlib.dll*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/respack.exe*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/smcs.exe*
|
|
|
|
-%{_prefix}/lib/moonlight/2.0/buildversion
|
|
|
|
-%{_datadir}/pkgconfig/moonlight-web-2.0.pc
|
|
|
|
|
|
+%dir %{moonlight_dir}/2.0-redist
|
|
|
|
+%{moonlight_dir}/2.0-redist/System.Windows.Controls.Data.dll*
|
|
|
|
+%{moonlight_dir}/2.0-redist/System.Windows.Controls.dll*
|
|
|
|
+%{moonlight_dir}/2.0-redist/System.Xml.Linq.dll*
|
|
|
|
+%dir %{moonlight_dir}/2.0
|
|
|
|
+%{moonlight_dir}/2.0/Microsoft.VisualBasic.dll*
|
|
|
|
+%{moonlight_dir}/2.0/Mono.CompilerServices.SymbolWriter.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Core.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Net.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Runtime.Serialization.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.ServiceModel.Web.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.ServiceModel.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Windows.Browser.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Windows.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.Xml.dll*
|
|
|
|
+%{moonlight_dir}/2.0/System.dll*
|
|
|
|
+%{moonlight_dir}/2.0/mscorlib.dll*
|
|
|
|
+%{moonlight_dir}/2.0/respack.exe*
|
|
|
|
+%{moonlight_dir}/2.0/smcs.exe*
|
|
|
|
+%{moonlight_dir}/2.0/buildversion
|
|
|
|
+%{pkgconfigdir}/moonlight-web-2.0.pc
|
|
|
|
|
|
%files desktop
|
|
%files desktop
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%{_prefix}/lib/mono/gac/Moon.Windows.Desktop
|
|
|
|
-%{_prefix}/lib/mono/gac/Moonlight.Gtk
|
|
|
|
-%{_prefix}/lib/mono/gac/System.Windows
|
|
|
|
-%{_prefix}/lib/mono/gac/System.Windows.Browser
|
|
|
|
-%{_prefix}/lib/mono/gac/System.Windows.Controls
|
|
|
|
-%{_prefix}/lib/mono/gac/System.Windows.Controls.Data
|
|
|
|
|
|
+%{mono_dir}/gac/Moon.Windows.Desktop
|
|
|
|
+%{mono_dir}/gac/Moonlight.Gtk
|
|
|
|
+%{mono_dir}/gac/System.Windows
|
|
|
|
+%{mono_dir}/gac/System.Windows.Browser
|
|
|
|
+%{mono_dir}/gac/System.Windows.Controls
|
|
|
|
+%{mono_dir}/gac/System.Windows.Controls.Data
|
|
|
|
|
|
%files desktop-devel
|
|
%files desktop-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%dir %{_prefix}/lib/mono/moonlight
|
|
|
|
-%{_prefix}/lib/mono/moonlight/Moon.Windows.Desktop.dll*
|
|
|
|
-%{_prefix}/lib/mono/moonlight/System.Windows.Browser.dll*
|
|
|
|
-%{_prefix}/lib/mono/moonlight/System.Windows.Controls.Data.dll*
|
|
|
|
-%{_prefix}/lib/mono/moonlight/System.Windows.Controls.dll*
|
|
|
|
-%{_prefix}/lib/mono/moonlight/System.Windows.dll*
|
|
|
|
-%{_datadir}/pkgconfig/moonlight-desktop-2.0.pc
|
|
|
|
|
|
+%dir %{mono_dir}/moonlight
|
|
|
|
+%{mono_dir}/moonlight/Moon.Windows.Desktop.dll*
|
|
|
|
+%{mono_dir}/moonlight/System.Windows.Browser.dll*
|
|
|
|
+%{mono_dir}/moonlight/System.Windows.Controls.Data.dll*
|
|
|
|
+%{mono_dir}/moonlight/System.Windows.Controls.dll*
|
|
|
|
+%{mono_dir}/moonlight/System.Windows.dll*
|
|
|
|
+%{pkgconfigdir}/moonlight-desktop-2.0.pc
|
|
# It may make sense in the future to have a moonlight-gtk package
|
|
# It may make sense in the future to have a moonlight-gtk package
|
|
-%{_prefix}/lib/mono/moonlight/Moonlight.Gtk.dll*
|
|
|
|
-%{_prefix}/lib/monodoc/sources/moonlight-gtk.source
|
|
|
|
-%{_prefix}/lib/monodoc/sources/moonlight-gtk.tree
|
|
|
|
-%{_prefix}/lib/monodoc/sources/moonlight-gtk.zip
|
|
|
|
-%{_datadir}/pkgconfig/moonlight-gtk-2.0.pc
|
|
|
|
|
|
+%{mono_dir}/moonlight/Moonlight.Gtk.dll*
|
|
|
|
+%{monodoc_dir}/sources/moonlight-gtk.source
|
|
|
|
+%{monodoc_dir}/sources/moonlight-gtk.tree
|
|
|
|
+%{monodoc_dir}/sources/moonlight-gtk.zip
|
|
|
|
+%{pkgconfigdir}/moonlight-gtk-2.0.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Sep 08 2010 Shu KONNO <owa@bg.wakwak.com> 2.0-3
|
|
|
|
+- export PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH, MONO_GAC_PREFIX
|
|
|
|
+
|
|
* Sat Sep 4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-2
|
|
* Sat Sep 4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-2
|
|
- fixed Group
|
|
- fixed Group
|
|
- added BR: wnck-sharp
|
|
- added BR: wnck-sharp
|