]>
Commit | Line | Data |
---|---|---|
f85c51a8 ER |
1 | # TODO |
2 | # - find pld packages: rsvg2-sharp wnck-sharp | |
840c8f88 AM |
3 | Summary: Novell Moonlight |
4 | Name: mono-moonlight | |
f85c51a8 ER |
5 | Version: 3.0 |
6 | Release: 0.1 | |
7 | License: LGPL v2, MIT License (or similar), MS-PL | |
1fb3556d | 8 | Group: X11/Applications/Multimedia |
840c8f88 | 9 | URL: http://go-mono.com/moonlight/ |
f85c51a8 ER |
10 | Source0: http://download.github.com/mono-moon-moon-0.8-10290-g3ff068e.tar.gz |
11 | # Source0-md5: 24967265d29388c52df72135a9582b74 | |
840c8f88 AM |
12 | # Always required |
13 | BuildRequires: cairo-devel >= 1.8.4 | |
f85c51a8 | 14 | BuildRequires: expat-devel |
840c8f88 | 15 | BuildRequires: gtk+2-devel |
840c8f88 AM |
16 | BuildRequires: libstdc++-devel |
17 | # Technically these two could be optional | |
f85c51a8 ER |
18 | BuildRequires: alsa-lib-devel |
19 | BuildRequires: dotnet-gtk-sharp2 | |
840c8f88 | 20 | BuildRequires: mono-devel >= 2.6 |
f85c51a8 ER |
21 | BuildRequires: mono-monodoc |
22 | BuildRequires: pulseaudio-devel | |
23 | #BuildRequires: rsvg2-sharp | |
24 | #BuildRequires: wnck-sharp | |
840c8f88 AM |
25 | BuildRequires: xulrunner-devel |
26 | BuildRequires: zip | |
27 | # Required to build the desktop assemblies | |
28 | # Required to build the plugin | |
f85c51a8 ER |
29 | BuildRequires: ffmpeg-devel |
30 | ExclusiveArch: %{ix86} %{x8664} | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
840c8f88 AM |
32 | |
33 | %description | |
34 | Moonlight is an open source implementation of Microsoft Silverlight | |
35 | for Unix systems. | |
36 | ||
37 | %package -n libmoon | |
840c8f88 | 38 | Summary: Novell Moonlight |
f85c51a8 | 39 | License: LGPL v2 |
1fb3556d | 40 | Group: X11/Applications/Multimedia |
840c8f88 AM |
41 | Requires: mono-core >= 2.6 |
42 | ||
43 | %description -n libmoon | |
44 | Moonlight is an open source implementation of Microsoft Silverlight | |
45 | for Unix systems. | |
46 | ||
840c8f88 | 47 | %package -n libmoon-devel |
840c8f88 | 48 | Summary: Development files for libmoon |
f85c51a8 | 49 | License: LGPL v2 |
1fb3556d | 50 | Group: Libraries |
840c8f88 AM |
51 | Requires: mono-devel >= 2.6 |
52 | ||
53 | %description -n libmoon-devel | |
54 | Development files for libmoon. | |
55 | ||
56 | Moonlight is an open source implementation of Microsoft Silverlight | |
57 | for Unix systems. | |
58 | ||
840c8f88 | 59 | %package plugin |
840c8f88 | 60 | Summary: Novell Moonlight Browser Plugin |
f85c51a8 | 61 | License: LGPL v2, MIT License (or similar), MS-PL |
1fb3556d | 62 | Group: X11/Applications/Multimedia |
f85c51a8 | 63 | Requires: libmoon = %{version}-%{release} |
840c8f88 AM |
64 | Requires: mono-core >= 2.6 |
65 | ||
66 | %description plugin | |
67 | Novell Moonlight Browser Plugin. | |
68 | ||
69 | Moonlight is an open source implementation of Microsoft Silverlight | |
70 | for Unix systems. | |
71 | ||
840c8f88 AM |
72 | %package web-devel |
73 | Summary: Development files for Moonlight Web | |
f85c51a8 | 74 | License: MIT License (or similar), MS-PL |
840c8f88 | 75 | Group: Development/Languages |
f85c51a8 | 76 | Suggests: %{name}-plugin = %{version}-%{release} |
840c8f88 AM |
77 | |
78 | %description web-devel | |
79 | Development files for creating Moonlight web applications. | |
80 | ||
81 | Moonlight is an open source implementation of Microsoft Silverlight | |
82 | for Unix systems. | |
83 | ||
840c8f88 | 84 | %package desktop |
840c8f88 | 85 | Summary: Mono bindings for Moonlight Desktop |
f85c51a8 | 86 | License: MIT License (or similar), MS-PL |
1fb3556d | 87 | Group: X11/Applications/Multimedia |
f85c51a8 | 88 | Requires: libmoon = %{version}-%{release} |
840c8f88 AM |
89 | |
90 | %description desktop | |
91 | Mono bindings for Novell Moonlight. | |
92 | ||
93 | Moonlight is an open source implementation of Microsoft Silverlight | |
94 | for Unix systems. | |
95 | ||
840c8f88 AM |
96 | %package desktop-devel |
97 | Summary: Development files for Moonlight Desktop | |
f85c51a8 | 98 | License: MIT License (or similar), MS-PL |
840c8f88 | 99 | Group: Development/Languages |
f85c51a8 ER |
100 | Requires: %{name}-desktop = %{version}-%{release} |
101 | Requires: dotnet-gtk-sharp2 | |
840c8f88 | 102 | Requires: glib2-devel |
f85c51a8 ER |
103 | Requires: libmoon = %{version}-%{release} |
104 | Suggests: %{name}-tools = %{version}-%{release} | |
840c8f88 AM |
105 | |
106 | %description desktop-devel | |
107 | Development files for Moonlight Desktop. | |
108 | ||
109 | Moonlight is an open source implementation of Microsoft Silverlight | |
110 | for Unix systems. | |
111 | ||
840c8f88 AM |
112 | %package tools |
113 | Summary: Various tools for Novell Moonlight | |
114 | License: MIT License (or similar) | |
115 | Group: Development/Languages | |
f85c51a8 ER |
116 | Requires: %{name}-desktop = %{version}-%{release} |
117 | Requires: libmoon = %{version}-%{release} | |
840c8f88 AM |
118 | |
119 | %description tools | |
120 | Various tools for Novell Moonlight. | |
121 | ||
122 | Moonlight is an open source implementation of Microsoft Silverlight | |
123 | for Unix systems. | |
124 | ||
840c8f88 | 125 | %prep |
f85c51a8 ER |
126 | %setup -qc |
127 | mv mono-moon-*/* . | |
840c8f88 AM |
128 | |
129 | %build | |
130 | # The plugin requires a complete build of it's own mono | |
1fb3556d | 131 | cd ../mono-%{included_mono} |
840c8f88 AM |
132 | # We have not determined which --enable-minimal options might be safe |
133 | # so please do not use any of them | |
f85c51a8 ER |
134 | ./configure \ |
135 | --prefix=%{_builddir}/install \ | |
136 | --with-mcs-docs=no \ | |
137 | --with-ikvm-native=no | |
138 | ||
139 | # mono is not strictly -j safe | |
140 | %{__make} -j1 | |
840c8f88 AM |
141 | # This gets installed in the build dir so that it gets wiped away |
142 | # and not installed on the system | |
143 | %{__make} install | |
1fb3556d ER |
144 | cd - |
145 | ||
840c8f88 AM |
146 | # And then we build moonlight |
147 | # Only needed when there are Makefile.am or configure.ac patches | |
148 | #autoreconf -f -i -Wnone | |
f85c51a8 ER |
149 | %configure \ |
150 | --without-testing \ | |
151 | --without-performance \ | |
152 | --without-examples \ | |
153 | --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \ | |
154 | --with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \ | |
155 | --with-ffmpeg=%{with_ffmpeg} \ | |
156 | --with-cairo=%{with_cairo} | |
157 | ||
158 | %{__make} | |
159 | ||
840c8f88 AM |
160 | # The next lines would build the XPI if we wanted it |
161 | # So that the xpi will pick up the custom libmono.so | |
162 | #export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH} | |
163 | #%{__make} user-plugin | |
164 | ||
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
f85c51a8 ER |
167 | %{__make} install \ |
168 | DESTDIR=$RPM_BUILD_ROOT | |
169 | ||
840c8f88 AM |
170 | # Symlink the loader into browser-plugins for SUSE |
171 | install -d $RPM_BUILD_ROOT%{_libdir}/browser-plugins | |
172 | ln -s %{_libdir}/moonlight/plugin/libmoonloader.so $RPM_BUILD_ROOT%{_libdir}/browser-plugins/libmoonloader.so | |
f85c51a8 | 173 | |
840c8f88 | 174 | # We don't like nasty .la files |
f85c51a8 | 175 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v |
840c8f88 AM |
176 | |
177 | %clean | |
178 | rm -rf $RPM_BUILD_ROOT | |
1fb3556d ER |
179 | |
180 | %post -n libmoon -p /sbin/ldconfig | |
181 | %postun -n libmoon -p /sbin/ldconfig | |
182 | ||
183 | %files -n libmoon | |
184 | %defattr(644,root,root,755) | |
185 | %doc AUTHORS COPYING README TODO NEWS | |
186 | %attr(755,root,root) %{_libdir}/libmoon.so.* | |
187 | ||
188 | %files -n libmoon-devel | |
189 | %defattr(644,root,root,755) | |
190 | %{_libdir}/libmoon.so | |
191 | ||
192 | %files plugin | |
193 | %defattr(644,root,root,755) | |
194 | %dir %{_libdir}/moonlight/plugin | |
195 | %{_libdir}/moonlight/plugin/libmoonloader.so | |
196 | %{_libdir}/moonlight/plugin/libmoonplugin-ff3bridge.so | |
197 | %{_libdir}/moonlight/plugin/libmoonplugin.so | |
198 | %{_libdir}/moonlight/plugin/Microsoft.VisualBasic.dll* | |
199 | %{_libdir}/moonlight/plugin/System.Core.dll* | |
200 | %{_libdir}/moonlight/plugin/System.Net.dll* | |
201 | %{_libdir}/moonlight/plugin/System.Runtime.Serialization.dll* | |
202 | %{_libdir}/moonlight/plugin/System.ServiceModel.Web.dll* | |
203 | %{_libdir}/moonlight/plugin/System.ServiceModel.dll* | |
204 | %{_libdir}/moonlight/plugin/System.Windows.Browser.dll* | |
205 | %{_libdir}/moonlight/plugin/System.Windows.dll* | |
206 | %{_libdir}/moonlight/plugin/System.Xml.dll* | |
207 | %{_libdir}/moonlight/plugin/System.dll* | |
208 | # Is there somewhere we could put this that would be universal? | |
209 | %{_libdir}/moonlight/plugin/mscorlib.dll* | |
210 | %{_libdir}/browser-plugins/libmoonloader.so | |
211 | ||
212 | %files web-devel | |
213 | %defattr(644,root,root,755) | |
214 | %attr(755,root,root) %{_bindir}/smcs | |
215 | %dir %{_prefix}/lib/moonlight | |
216 | %dir %{_prefix}/lib/moonlight/2.0-redist | |
217 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.Data.dll* | |
218 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll* | |
219 | %{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll* | |
220 | %dir %{_prefix}/lib/moonlight/2.0 | |
221 | %{_prefix}/lib/moonlight/2.0/Microsoft.VisualBasic.dll* | |
222 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll* | |
223 | %{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll* | |
224 | %{_prefix}/lib/moonlight/2.0/Mono.CompilerServices.SymbolWriter.dll* | |
225 | %{_prefix}/lib/moonlight/2.0/System.Core.dll* | |
226 | %{_prefix}/lib/moonlight/2.0/System.Net.dll* | |
227 | %{_prefix}/lib/moonlight/2.0/System.Runtime.Serialization.dll* | |
228 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.Web.dll* | |
229 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.dll* | |
230 | %{_prefix}/lib/moonlight/2.0/System.Windows.Browser.dll* | |
231 | %{_prefix}/lib/moonlight/2.0/System.Windows.dll* | |
232 | %{_prefix}/lib/moonlight/2.0/System.Xml.dll* | |
233 | %{_prefix}/lib/moonlight/2.0/System.dll* | |
234 | %{_prefix}/lib/moonlight/2.0/mscorlib.dll* | |
235 | %{_prefix}/lib/moonlight/2.0/respack.exe* | |
236 | %{_prefix}/lib/moonlight/2.0/smcs.exe* | |
237 | %{_prefix}/lib/moonlight/2.0/buildversion | |
238 | %{_datadir}/pkgconfig/moonlight-web-2.0.pc | |
239 | ||
240 | %files desktop | |
241 | %defattr(644,root,root,755) | |
242 | %{_prefix}/lib/mono/gac/Moon.Windows.Desktop | |
243 | %{_prefix}/lib/mono/gac/Moonlight.Gtk | |
244 | %{_prefix}/lib/mono/gac/System.Windows | |
245 | %{_prefix}/lib/mono/gac/System.Windows.Browser | |
246 | %{_prefix}/lib/mono/gac/System.Windows.Controls | |
247 | %{_prefix}/lib/mono/gac/System.Windows.Controls.Data | |
248 | ||
249 | %files desktop-devel | |
250 | %defattr(644,root,root,755) | |
251 | %dir %{_prefix}/lib/mono/moonlight | |
252 | %{_prefix}/lib/mono/moonlight/Moon.Windows.Desktop.dll* | |
253 | %{_prefix}/lib/mono/moonlight/System.Windows.Browser.dll* | |
254 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.Data.dll* | |
255 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.dll* | |
256 | %{_prefix}/lib/mono/moonlight/System.Windows.dll* | |
257 | # It may make sense in the future to have a moonlight-gtk package | |
258 | %{_datadir}/pkgconfig/moonlight-desktop-2.0.pc | |
259 | %{_prefix}/lib/mono/moonlight/Moonlight.Gtk.dll* | |
260 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.source | |
261 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.tree | |
262 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.zip | |
263 | %{_datadir}/pkgconfig/moonlight-gtk-2.0.pc | |
264 | ||
265 | %files tools | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_bindir}/mopen | |
268 | %{_bindir}/munxap %{_bindir}/mxap %{_bindir}/respack | |
269 | %{_bindir}/sockpol %{_bindir}/unrespack %{_bindir}/xaml2html | |
270 | %{_bindir}/xamlg %{_mandir}/man1/mopen.1%ext_man | |
271 | %{_mandir}/man1/mxap.1%ext_man %{_mandir}/man1/respack.1%ext_man | |
272 | %{_mandir}/man1/sockpol.1%ext_man %{_mandir}/man1/svg2xaml.1%ext_man | |
273 | %{_mandir}/man1/xamlg.1%ext_man | |
274 | %dir %{_libdir}/moonlight | |
275 | %{_libdir}/moonlight/mopen.exe* | |
276 | %{_bindir}/munxap %{_bindir}/mxap %{_bindir}/respack | |
277 | %{_bindir}/sockpol %{_bindir}/unrespack %{_bindir}/xaml2html | |
278 | %{_bindir}/xamlg %{_mandir}/man1/mopen.1%ext_man | |
279 | %{_mandir}/man1/mxap.1%ext_man %{_mandir}/man1/respack.1%ext_man | |
280 | %{_mandir}/man1/sockpol.1%ext_man %{_mandir}/man1/svg2xaml.1%ext_man | |
281 | %{_mandir}/man1/xamlg.1%ext_man %{_libdir}/moonlight/munxap.exe* | |
282 | %{_libdir}/moonlight/mxap.exe* %{_libdir}/moonlight/respack.exe* | |
283 | %{_libdir}/moonlight/sockpol.exe* %{_libdir}/moonlight/xaml2html.exe* | |
284 | %{_libdir}/moonlight/xamlg.exe* |