packages: mono-moonlight/mono-moonlight.spec - try pldize spec, try match p...

glen glen at pld-linux.org
Sun Sep 12 21:49:20 CEST 2010


Author: glen                         Date: Sun Sep 12 19:49:20 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- try pldize spec, try match pld deps
- source0 for 3.0

---- Files affected:
packages/mono-moonlight:
   mono-moonlight.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/mono-moonlight/mono-moonlight.spec
diff -u packages/mono-moonlight/mono-moonlight.spec:1.2 packages/mono-moonlight/mono-moonlight.spec:1.3
--- packages/mono-moonlight/mono-moonlight.spec:1.2	Sun Sep 12 21:30:12 2010
+++ packages/mono-moonlight/mono-moonlight.spec	Sun Sep 12 21:49:14 2010
@@ -1,32 +1,35 @@
 # $Revision$, $Date$
+# TODO
+# - find pld packages: rsvg2-sharp wnck-sharp
 Summary:	Novell Moonlight
 Name:		mono-moonlight
-Version:	@VERSION@
-Release:	0
-License:	LGPL v2.0 only ; MIT License (or similar) ; Ms-Pl
+Version:	3.0
+Release:	0.1
+License:	LGPL v2, MIT License (or similar), MS-PL
 Group:		X11/Applications/Multimedia
 URL:		http://go-mono.com/moonlight/
-ExclusiveArch:	%{ix86{ %{x8664}
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Source0:	%{name}-%{version}.tar.bz2
+Source0:	http://download.github.com/mono-moon-moon-0.8-10290-g3ff068e.tar.gz
+# Source0-md5:	24967265d29388c52df72135a9582b74
 # Always required
 BuildRequires:	cairo-devel >= 1.8.4
+BuildRequires:	expat-devel
 BuildRequires:	gtk+2-devel
-BuildRequires:	libexpat-devel
 BuildRequires:	libstdc++-devel
 # Technically these two could be optional
-BuildRequires:	alsa-devel
-BuildRequires:	gtk-sharp2
-BuildRequires:	libpulse-devel
+BuildRequires:	alsa-lib-devel
+BuildRequires:	dotnet-gtk-sharp2
 BuildRequires:	mono-devel >= 2.6
-BuildRequires:	monodoc-core
-BuildRequires:	rsvg2-sharp
-BuildRequires:	wnck-sharp
+BuildRequires:	mono-monodoc
+BuildRequires:	pulseaudio-devel
+#BuildRequires:	rsvg2-sharp
+#BuildRequires:	wnck-sharp
 BuildRequires:	xulrunner-devel
 BuildRequires:	zip
 # Required to build the desktop assemblies
 # Required to build the plugin
-BuildRequires:	libffmpeg-devel
+BuildRequires:	ffmpeg-devel
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Moonlight is an open source implementation of Microsoft Silverlight
@@ -34,7 +37,7 @@
 
 %package -n libmoon
 Summary:	Novell Moonlight
-License:	LGPL v2.0 only
+License:	LGPL v2
 Group:		X11/Applications/Multimedia
 Requires:	mono-core >= 2.6
 
@@ -44,7 +47,7 @@
 
 %package -n libmoon-devel
 Summary:	Development files for libmoon
-License:	LGPL v2.0 only
+License:	LGPL v2
 Group:		Libraries
 Requires:	mono-devel >= 2.6
 
@@ -56,9 +59,9 @@
 
 %package plugin
 Summary:	Novell Moonlight Browser Plugin
-License:	LGPL v2.0 only ; MIT License (or similar) ; Ms-Pl
+License:	LGPL v2, MIT License (or similar), MS-PL
 Group:		X11/Applications/Multimedia
-Requires:	libmoon0 == %{version}
+Requires:	libmoon = %{version}-%{release}
 Requires:	mono-core >= 2.6
 
 %description plugin
@@ -67,12 +70,11 @@
 Moonlight is an open source implementation of Microsoft Silverlight
 for Unix systems.
 
-
 %package web-devel
 Summary:	Development files for Moonlight Web
-License:	MIT License (or similar) ; Ms-Pl
+License:	MIT License (or similar), MS-PL
 Group:		Development/Languages
-Recommends:	%{name}-plugin == %{version}
+Suggests:	%{name}-plugin = %{version}-%{release}
 
 %description web-devel
 Development files for creating Moonlight web applications.
@@ -82,9 +84,9 @@
 
 %package desktop
 Summary:	Mono bindings for Moonlight Desktop
-License:	MIT License (or similar) ; Ms-Pl
+License:	MIT License (or similar), MS-PL
 Group:		X11/Applications/Multimedia
-Requires:	libmoon0 == %{version}
+Requires:	libmoon = %{version}-%{release}
 
 %description desktop
 Mono bindings for Novell Moonlight.
@@ -94,13 +96,13 @@
 
 %package desktop-devel
 Summary:	Development files for Moonlight Desktop
-License:	MIT License (or similar) ; Ms-Pl
+License:	MIT License (or similar), MS-PL
 Group:		Development/Languages
-Recommends:	%{name}-tools == %{version}
-Requires:	%{name}-desktop == %{version}
+Requires:	%{name}-desktop = %{version}-%{release}
+Requires:	dotnet-gtk-sharp2
 Requires:	glib2-devel
-Requires:	gtk-sharp2
-Requires:	libmoon0 == %{version}
+Requires:	libmoon = %{version}-%{release}
+Suggests:	%{name}-tools = %{version}-%{release}
 
 %description desktop-devel
 Development files for Moonlight Desktop.
@@ -108,13 +110,12 @@
 Moonlight is an open source implementation of Microsoft Silverlight
 for Unix systems.
 
-
 %package tools
 Summary:	Various tools for Novell Moonlight
 License:	MIT License (or similar)
 Group:		Development/Languages
-Requires:	%{name}-desktop == %{version}
-Requires:	libmoon0 == %{version}
+Requires:	%{name}-desktop = %{version}-%{release}
+Requires:	libmoon = %{version}-%{release}
 
 %description tools
 Various tools for Novell Moonlight.
@@ -123,19 +124,21 @@
 for Unix systems.
 
 %prep
-%setup -q
-%setup -q -T -D -b 1
-%setup -q -T -D -b 2
+%setup -qc
+mv mono-moon-*/* .
 
 %build
 # The plugin requires a complete build of it's own mono
 cd ../mono-%{included_mono}
 # We have not determined which --enable-minimal options might be safe
 # so please do not use any of them
-./configure --prefix=%{_builddir}/install \
-			--with-mcs-docs=no \
-			--with-ikvm-native=no
-%{__make} #%{?jobs:-j%jobs} # mono is not strictly -j safe
+./configure \
+	--prefix=%{_builddir}/install \
+	--with-mcs-docs=no \
+	--with-ikvm-native=no
+
+# mono is not strictly -j safe
+%{__make} -j1
 # This gets installed in the build dir so that it gets wiped away
 # and not installed on the system
 %{__make} install
@@ -144,12 +147,17 @@
 # And then we build moonlight
 # Only needed when there are Makefile.am or configure.ac patches
 #autoreconf -f -i -Wnone
-%configure --without-testing --without-performance --without-examples \
-		   --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \
-		   --with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \
-		   --with-ffmpeg=%{with_ffmpeg} \
-		   --with-cairo=%{with_cairo}
-%{__make} %{?jobs:-j%jobs}
+%configure \
+	--without-testing \
+	--without-performance \
+	--without-examples \
+	--with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \
+	--with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \
+	--with-ffmpeg=%{with_ffmpeg} \
+	--with-cairo=%{with_cairo}
+
+%{__make}
+
 # The next lines would build the XPI if we wanted it
 # So that the xpi will pick up the custom libmono.so
 #export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH}
@@ -157,12 +165,15 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
 # Symlink the loader into browser-plugins for SUSE
 install -d $RPM_BUILD_ROOT%{_libdir}/browser-plugins
 ln -s %{_libdir}/moonlight/plugin/libmoonloader.so $RPM_BUILD_ROOT%{_libdir}/browser-plugins/libmoonloader.so
+
 # We don't like nasty .la files
-find $RPM_BUILD_ROOT -name \*.la -delete
+find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -279,6 +290,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/09/12 19:49:14  glen
+- try pldize spec, try match pld deps
+- source0 for 3.0
+
 Revision 1.2  2010/09/12 19:30:12  glen
 - fix groups, pld section order
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mono-moonlight/mono-moonlight.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list