|
@@ -4,25 +4,21 @@
|
|
%define pkgconfigdir %{_datadir}/pkgconfig
|
|
%define pkgconfigdir %{_datadir}/pkgconfig
|
|
%define included_mono 2.6.1
|
|
%define included_mono 2.6.1
|
|
%define included_basic 2.6
|
|
%define included_basic 2.6
|
|
-
|
|
|
|
Summary: An open source implementation of Silverlight
|
|
Summary: An open source implementation of Silverlight
|
|
Summary(ja): Silverlight のオープンソースによる実装
|
|
Summary(ja): Silverlight のオープンソースによる実装
|
|
Name: moonlight
|
|
Name: moonlight
|
|
Version: 2.3
|
|
Version: 2.3
|
|
-Release: 1%{?_dist_release}
|
|
|
|
-
|
|
|
|
|
|
+Release: 2%{?_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/%{version}/moonlight-%{version}.tar.bz2
|
|
Source0: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/moonlight-%{version}.tar.bz2
|
|
Source1: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-%{included_mono}.tar.bz2
|
|
Source1: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-%{included_mono}.tar.bz2
|
|
Source2: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-basic-%{included_basic}.tar.bz2
|
|
Source2: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-basic-%{included_basic}.tar.bz2
|
|
-
|
|
|
|
|
|
+Patch0: bad-register.patch
|
|
|
|
+Patch1: r159607.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-#Patch0: missing-files.patch
|
|
|
|
-#BuildRequires: mono-devel >= 2.6
|
|
|
|
-#BuildRequires: monodoc
|
|
|
|
|
|
+BuildRequires: mono-devel >= 2.6
|
|
BuildRequires: gtk-sharp2
|
|
BuildRequires: gtk-sharp2
|
|
BuildRequires: rsvg2-sharp
|
|
BuildRequires: rsvg2-sharp
|
|
BuildRequires: wnck-sharp
|
|
BuildRequires: wnck-sharp
|
|
@@ -31,8 +27,7 @@ BuildRequires: gtk2-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: xulrunner-devel
|
|
BuildRequires: xulrunner-devel
|
|
BuildRequires: bison
|
|
BuildRequires: bison
|
|
-#BuildRequires: autoconf
|
|
|
|
-#BuildRequires: automake
|
|
|
|
|
|
+BuildRequires: autoconf
|
|
ExclusiveArch: %ix86 x86_64
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -48,6 +43,7 @@ Moonlight は Unix 系システムのための,Microsoft Silverlight のオー
|
|
Summary: Moonlight libmoon
|
|
Summary: Moonlight libmoon
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: LGPL v2.0 only
|
|
License: LGPL v2.0 only
|
|
|
|
+Requires: mono-core >= 2.6
|
|
|
|
|
|
%description libs
|
|
%description libs
|
|
Moonlight libmoon
|
|
Moonlight libmoon
|
|
@@ -73,6 +69,7 @@ Moonlight tools (mopen, xamlg, xaml2html, mxap, respack, svg2xaml)
|
|
Summary: Moonlight browser plugin
|
|
Summary: Moonlight browser plugin
|
|
Group: Applications/Internet
|
|
Group: Applications/Internet
|
|
Requires: %{name}-libs == %{version}
|
|
Requires: %{name}-libs == %{version}
|
|
|
|
+Requires: mono-core >= 2.6
|
|
|
|
|
|
%description plugin
|
|
%description plugin
|
|
Browser plugin for Novell Moonlight
|
|
Browser plugin for Novell Moonlight
|
|
@@ -121,6 +118,10 @@ Provides a gtk-sharp object that can be used to embed a moonlight surface in a d
|
|
%setup -q
|
|
%setup -q
|
|
%setup -q -T -D -b 1 -n %{name}-%{version}
|
|
%setup -q -T -D -b 1 -n %{name}-%{version}
|
|
%setup -q -T -D -b 2 -n %{name}-%{version}
|
|
%setup -q -T -D -b 2 -n %{name}-%{version}
|
|
|
|
+pushd ../mono-%{included_mono}
|
|
|
|
+%patch0
|
|
|
|
+popd
|
|
|
|
+%patch1
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -142,7 +143,7 @@ export PATH=%{_builddir}/install/bin:${PATH}
|
|
export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
# Only needed when there are Makefile.am or configure.ac patches
|
|
# Only needed when there are Makefile.am or configure.ac patches
|
|
-#autoreconf -f -i -Wnone
|
|
|
|
|
|
+autoreconf -f -i -Wnone
|
|
%configure \
|
|
%configure \
|
|
--with-ffmpeg=no \
|
|
--with-ffmpeg=no \
|
|
--with-cairo=system \
|
|
--with-cairo=system \
|
|
@@ -155,6 +156,11 @@ export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
--with-examples=no \
|
|
--with-examples=no \
|
|
--with-debug=no \
|
|
--with-debug=no \
|
|
--with-sanity-checks=no \
|
|
--with-sanity-checks=no \
|
|
|
|
+ --without-testing \
|
|
|
|
+ --without-performance \
|
|
|
|
+ --without-examples \
|
|
|
|
+ --disable-debug \
|
|
|
|
+ --disable-sanity \
|
|
;
|
|
;
|
|
|
|
|
|
export MONO_GAC_PREFIX=%{_builddir}/install:%{_prefix}
|
|
export MONO_GAC_PREFIX=%{_builddir}/install:%{_prefix}
|
|
@@ -162,31 +168,37 @@ export MONO_GAC_PREFIX=%{_builddir}/install:%{_prefix}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
export PATH=%{_builddir}/install/bin:${PATH}
|
|
export PATH=%{_builddir}/install/bin:${PATH}
|
|
export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH}
|
|
export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
-make install DESTDIR=${RPM_BUILD_ROOT} pkgconfigdir=%{pkgconfigdir}
|
|
|
|
|
|
+make install DESTDIR=%{buildroot} pkgconfigdir=%{pkgconfigdir}
|
|
|
|
+
|
|
|
|
+install -m 644 %{_builddir}/install/lib/libmono.so.0 %{buildroot}%{_libdir}/moonlight/
|
|
|
|
+chrpath -r %{_libdir}/moonlight %{buildroot}%{_libdir}/moonlight/plugin/libmoonplugin.so
|
|
|
|
+chrpath -r %{_libdir}/moonlight %{buildroot}%{_libdir}/moonlight/plugin/libmoonplugin.so
|
|
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
|
|
|
|
|
|
+mkdir -p %{buildroot}%{_libdir}/mozilla/plugins
|
|
ln -s %{_libdir}/moonlight/plugin/libmoonloader.so \
|
|
ln -s %{_libdir}/moonlight/plugin/libmoonloader.so \
|
|
- $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
|
|
|
|
+ %{buildroot}%{_libdir}/mozilla/plugins/libmoonloader.so
|
|
|
|
|
|
# remove unuse files
|
|
# remove unuse files
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/libshocker.so
|
|
|
|
|
|
+rm -f %{buildroot}%{_libdir}/libshocker.so
|
|
find %{buildroot} -name \*.la -delete
|
|
find %{buildroot} -name \*.la -delete
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog README TODO NEWS
|
|
%doc AUTHORS COPYING ChangeLog README TODO NEWS
|
|
%{_libdir}/libmoon.so.*
|
|
%{_libdir}/libmoon.so.*
|
|
|
|
+%dir %{_libdir}/moonlight
|
|
|
|
+%{_libdir}/moonlight/libmono.so.0
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
@@ -202,7 +214,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_bindir}/unrespack
|
|
%{_bindir}/unrespack
|
|
%{_bindir}/xaml2html
|
|
%{_bindir}/xaml2html
|
|
%{_bindir}/xamlg
|
|
%{_bindir}/xamlg
|
|
-%dir %{_libdir}/moonlight
|
|
|
|
%{_libdir}/moonlight/mopen.exe*
|
|
%{_libdir}/moonlight/mopen.exe*
|
|
%{_libdir}/moonlight/munxap.exe
|
|
%{_libdir}/moonlight/munxap.exe
|
|
%{_libdir}/moonlight/mxap.exe
|
|
%{_libdir}/moonlight/mxap.exe
|
|
@@ -290,6 +301,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Oct 10 2010 Shu KONNO <owa@bg.wakwak.com> 2.3-2
|
|
|
|
+- rebuilt with mono-2.8
|
|
|
|
+- added bad-register.patch, r159607.patch (from suse)
|
|
|
|
+- added BR: autoconf (use autoreconf in %%build)
|
|
|
|
+- installed %%{_libdir}/moonlight/libmono.so.0 (obsoleted in mono-2.8)
|
|
|
|
+
|
|
* Tue Oct 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.3-1
|
|
* Tue Oct 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.3-1
|
|
- updated moonlightautoconf to 2.3
|
|
- updated moonlightautoconf to 2.3
|
|
- updated mono to 2.6.1
|
|
- updated mono to 2.6.1
|