]>
Commit | Line | Data |
---|---|---|
f85c51a8 | 1 | # TODO |
653bc600 | 2 | # - find pld packages: rsvg2-sharp |
2526700a | 3 | # - Release tarballs: http://ftp.novell.com/pub/mono/sources/moon/ |
c3f748e6 ER |
4 | # - upstream 2.3 spec http://github.com/mono/moon/blob/moon/moon-2-3/moonlight.spec.in |
5 | # - debian 1.0 repo: http://git.debian.org/?p=pkg-mono/packages/moon.git | |
6 | # - fedora 1.0.1 http://olea.org/paquetes-rpm/repoview/moonlight.html | |
7 | # - ubuntu 2.3 https://launchpad.net/ubuntu/+source/moon/2.3-0ubuntu1 | |
fdda9daf ER |
8 | # - not compatible with our libunwind (missing demangle.h) |
9 | # - patch to be able to disable libunwind instead of BC | |
4a0e484b | 10 | # - http://lists.xensource.com/archives/html/xen-devel/2009-05/msg00075.html |
2526700a | 11 | Summary: Free Software clone of Silverlight |
840c8f88 | 12 | Name: mono-moonlight |
2526700a | 13 | Version: 2.3 |
f85c51a8 ER |
14 | Release: 0.1 |
15 | License: LGPL v2, MIT License (or similar), MS-PL | |
1fb3556d | 16 | Group: X11/Applications/Multimedia |
2526700a ER |
17 | URL: http://www.mono-project.com/Moonlight |
18 | Source0: http://ftp.novell.com/pub/mono/sources/moon/%{version}/moonlight-%{version}.tar.bz2 | |
19 | # Source0-md5: 164c4a5068f85244a0019ce49a6ee629 | |
c3f748e6 ER |
20 | Source1: http://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-2.6.1.tar.bz2 |
21 | # Source1-md5: ad1286a66e802bf0be01cc09f433db8f | |
22 | Source2: http://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-basic-2.6.tar.bz2 | |
23 | # Source2-md5: 172b70b30f58bf00834db223ab8d620e | |
2526700a | 24 | Patch0: minizip.patch |
292c1f89 | 25 | Patch1: moon_fix_gdk_pointer_size.patch |
2526700a | 26 | BuildRequires: alsa-lib-devel |
653bc600 ER |
27 | BuildRequires: autoconf |
28 | BuildRequires: automake | |
29 | BuildRequires: bison | |
840c8f88 | 30 | BuildRequires: cairo-devel >= 1.8.4 |
2f461416 | 31 | BuildRequires: curl-devel |
653bc600 | 32 | BuildRequires: dotnet-gnome-desktop-sharp-devel |
2526700a | 33 | BuildRequires: dotnet-gtk-sharp2 |
653bc600 | 34 | BuildRequires: dotnet-gtk-sharp2-devel |
f85c51a8 | 35 | BuildRequires: expat-devel |
2526700a | 36 | BuildRequires: ffmpeg-devel |
ca2402ee | 37 | BuildRequires: gettext-tools |
840c8f88 | 38 | BuildRequires: gtk+2-devel |
840c8f88 | 39 | BuildRequires: libstdc++-devel |
653bc600 | 40 | BuildRequires: libtool |
2526700a | 41 | BuildRequires: minizip-devel |
6724dc9e | 42 | BuildRequires: mono-compat-links |
653bc600 | 43 | BuildRequires: mono-csharp |
840c8f88 | 44 | BuildRequires: mono-devel >= 2.6 |
f85c51a8 | 45 | BuildRequires: mono-monodoc |
653bc600 ER |
46 | BuildRequires: ncurses-devel |
47 | BuildRequires: pkgconfig | |
f85c51a8 | 48 | BuildRequires: pulseaudio-devel |
e2d85b4e | 49 | BuildRequires: rpmbuild(macros) >= 1.357 |
f85c51a8 ER |
50 | #BuildRequires: rsvg2-sharp |
51 | #BuildRequires: wnck-sharp | |
840c8f88 AM |
52 | BuildRequires: xulrunner-devel |
53 | BuildRequires: zip | |
fdda9daf | 54 | BuildConflicts: libunwind-devel |
f85c51a8 ER |
55 | ExclusiveArch: %{ix86} %{x8664} |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
840c8f88 AM |
57 | |
58 | %description | |
59 | Moonlight is an open source implementation of Microsoft Silverlight | |
60 | for Unix systems. | |
61 | ||
62 | %package -n libmoon | |
840c8f88 | 63 | Summary: Novell Moonlight |
f85c51a8 | 64 | License: LGPL v2 |
1fb3556d | 65 | Group: X11/Applications/Multimedia |
840c8f88 AM |
66 | Requires: mono-core >= 2.6 |
67 | ||
68 | %description -n libmoon | |
69 | Moonlight is an open source implementation of Microsoft Silverlight | |
70 | for Unix systems. | |
71 | ||
840c8f88 | 72 | %package -n libmoon-devel |
840c8f88 | 73 | Summary: Development files for libmoon |
f85c51a8 | 74 | License: LGPL v2 |
1fb3556d | 75 | Group: Libraries |
840c8f88 AM |
76 | Requires: mono-devel >= 2.6 |
77 | ||
78 | %description -n libmoon-devel | |
79 | Development files for libmoon. | |
80 | ||
81 | Moonlight is an open source implementation of Microsoft Silverlight | |
82 | for Unix systems. | |
83 | ||
e2d85b4e | 84 | %package -n browser-plugin-moonlight |
840c8f88 | 85 | Summary: Novell Moonlight Browser Plugin |
f85c51a8 | 86 | License: LGPL v2, MIT License (or similar), MS-PL |
1fb3556d | 87 | Group: X11/Applications/Multimedia |
e2d85b4e | 88 | Requires: browser-plugins >= 2.0 |
f85c51a8 | 89 | Requires: libmoon = %{version}-%{release} |
840c8f88 | 90 | Requires: mono-core >= 2.6 |
e2d85b4e | 91 | Obsoletes: mono-moonlight-plugin |
840c8f88 | 92 | |
e2d85b4e | 93 | %description -n browser-plugin-moonlight |
840c8f88 AM |
94 | Novell Moonlight Browser Plugin. |
95 | ||
96 | Moonlight is an open source implementation of Microsoft Silverlight | |
97 | for Unix systems. | |
98 | ||
840c8f88 AM |
99 | %package web-devel |
100 | Summary: Development files for Moonlight Web | |
f85c51a8 | 101 | License: MIT License (or similar), MS-PL |
840c8f88 | 102 | Group: Development/Languages |
f85c51a8 | 103 | Suggests: %{name}-plugin = %{version}-%{release} |
840c8f88 AM |
104 | |
105 | %description web-devel | |
106 | Development files for creating Moonlight web applications. | |
107 | ||
108 | Moonlight is an open source implementation of Microsoft Silverlight | |
109 | for Unix systems. | |
110 | ||
840c8f88 | 111 | %package desktop |
840c8f88 | 112 | Summary: Mono bindings for Moonlight Desktop |
f85c51a8 | 113 | License: MIT License (or similar), MS-PL |
1fb3556d | 114 | Group: X11/Applications/Multimedia |
f85c51a8 | 115 | Requires: libmoon = %{version}-%{release} |
840c8f88 AM |
116 | |
117 | %description desktop | |
118 | Mono bindings for Novell Moonlight. | |
119 | ||
120 | Moonlight is an open source implementation of Microsoft Silverlight | |
121 | for Unix systems. | |
122 | ||
840c8f88 AM |
123 | %package desktop-devel |
124 | Summary: Development files for Moonlight Desktop | |
f85c51a8 | 125 | License: MIT License (or similar), MS-PL |
840c8f88 | 126 | Group: Development/Languages |
f85c51a8 ER |
127 | Requires: %{name}-desktop = %{version}-%{release} |
128 | Requires: dotnet-gtk-sharp2 | |
840c8f88 | 129 | Requires: glib2-devel |
f85c51a8 ER |
130 | Requires: libmoon = %{version}-%{release} |
131 | Suggests: %{name}-tools = %{version}-%{release} | |
840c8f88 AM |
132 | |
133 | %description desktop-devel | |
134 | Development files for Moonlight Desktop. | |
135 | ||
136 | Moonlight is an open source implementation of Microsoft Silverlight | |
137 | for Unix systems. | |
138 | ||
840c8f88 AM |
139 | %package tools |
140 | Summary: Various tools for Novell Moonlight | |
141 | License: MIT License (or similar) | |
142 | Group: Development/Languages | |
f85c51a8 ER |
143 | Requires: %{name}-desktop = %{version}-%{release} |
144 | Requires: libmoon = %{version}-%{release} | |
840c8f88 AM |
145 | |
146 | %description tools | |
147 | Various tools for Novell Moonlight. | |
148 | ||
149 | Moonlight is an open source implementation of Microsoft Silverlight | |
150 | for Unix systems. | |
151 | ||
840c8f88 | 152 | %prep |
c3f748e6 | 153 | %setup -q -n moonlight-%{version} -a1 -a2 |
2526700a | 154 | %patch0 -p1 |
292c1f89 | 155 | %patch1 -p1 |
2526700a | 156 | |
c3f748e6 ER |
157 | mv mono-2.6.1 mono |
158 | mv mono-basic-2.6 mono-basic | |
159 | ||
2526700a | 160 | rm -r pixman cairo src/zip curl |
840c8f88 | 161 | |
c3f748e6 ER |
162 | # force rebuild |
163 | rm -f configure | |
164 | ||
840c8f88 | 165 | %build |
c3f748e6 ER |
166 | topdir=$(pwd) |
167 | # build mono first | |
168 | # The plugin requires a complete build of it's own mono | |
4a0e484b | 169 | if [ ! -f mono.built ]; then |
c3f748e6 ER |
170 | cd mono |
171 | # We have not determined which --enable-minimal options might be safe | |
172 | # so please do not use any of them | |
173 | ./configure \ | |
174 | --prefix=$topdir/install \ | |
175 | --with-mcs-docs=no \ | |
176 | --with-ikvm-native=no | |
177 | %{__make} -j1 | |
c3f748e6 | 178 | cd .. |
4a0e484b | 179 | touch mono.built |
c3f748e6 ER |
180 | fi |
181 | ||
182 | if [ ! -f configure ]; then | |
183 | %{__libtoolize} | |
184 | %{__aclocal} -I m4 | |
185 | %{__autoconf} | |
186 | %{__automake} | |
187 | fi | |
f85c51a8 | 188 | %configure \ |
292c1f89 | 189 | --enable-dependency-tracking \ |
f85c51a8 ER |
190 | --without-testing \ |
191 | --without-performance \ | |
192 | --without-examples \ | |
b5793cb5 | 193 | --with-system-minizip=yes \ |
2526700a | 194 | --with-alsa=yes \ |
292c1f89 ER |
195 | --with-cairo=system \ |
196 | --with-curl=system \ | |
c3f748e6 ER |
197 | --with-debug=no \ |
198 | --with-ff2=no \ | |
292c1f89 | 199 | --with-ff3=yes \ |
2526700a ER |
200 | --with-ffmpeg=yes \ |
201 | --with-managed=no \ | |
2526700a | 202 | --with-pulse-audio=yes \ |
292c1f89 | 203 | --with-pulseaudio=yes \ |
c3f748e6 ER |
204 | --with-mcspath=$topdir/mono/mcs \ |
205 | --with-mono-basic-path=$topdir/mono-basic \ | |
f85c51a8 | 206 | |
c3f748e6 | 207 | %{__make} -j1 |
f85c51a8 | 208 | |
840c8f88 AM |
209 | # The next lines would build the XPI if we wanted it |
210 | # So that the xpi will pick up the custom libmono.so | |
211 | #export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH} | |
212 | #%{__make} user-plugin | |
213 | ||
214 | %install | |
215 | rm -rf $RPM_BUILD_ROOT | |
c3f748e6 | 216 | %{__make} install -j1 \ |
f85c51a8 ER |
217 | DESTDIR=$RPM_BUILD_ROOT |
218 | ||
840c8f88 | 219 | # Symlink the loader into browser-plugins for SUSE |
e2d85b4e ER |
220 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} |
221 | ln -s %{_libdir}/moonlight/plugin/libmoonloader.so $RPM_BUILD_ROOT%{_browserpluginsdir}/libmoonloader.so | |
f85c51a8 | 222 | |
840c8f88 | 223 | # We don't like nasty .la files |
f85c51a8 | 224 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v |
840c8f88 AM |
225 | |
226 | %clean | |
227 | rm -rf $RPM_BUILD_ROOT | |
1fb3556d ER |
228 | |
229 | %post -n libmoon -p /sbin/ldconfig | |
230 | %postun -n libmoon -p /sbin/ldconfig | |
231 | ||
e2d85b4e ER |
232 | %post -n browser-plugin-moonlight |
233 | %update_browser_plugins | |
234 | ||
235 | %postun -n browser-plugin-moonlight | |
236 | if [ "$1" = 0 ]; then | |
237 | %update_browser_plugins | |
238 | fi | |
239 | ||
1fb3556d ER |
240 | %files -n libmoon |
241 | %defattr(644,root,root,755) | |
e2d85b4e ER |
242 | %doc AUTHORS ChangeLog LICENSE NEWS README TODO |
243 | %attr(755,root,root) %{_libdir}/libmoon.so.*.*.* | |
244 | %attr(755,root,root) %ghost %{_libdir}/libmoon.so.0 | |
1fb3556d ER |
245 | |
246 | %files -n libmoon-devel | |
247 | %defattr(644,root,root,755) | |
248 | %{_libdir}/libmoon.so | |
249 | ||
e2d85b4e | 250 | %files -n browser-plugin-moonlight |
1fb3556d | 251 | %defattr(644,root,root,755) |
e2d85b4e | 252 | %attr(755,root,root) %{_browserpluginsdir}/libmoonloader.so |
1fb3556d | 253 | %dir %{_libdir}/moonlight/plugin |
1ec7b4b3 | 254 | %attr(755,root,root) %{_libdir}/moonlight/plugin/libmoonloader.so |
1ec7b4b3 | 255 | %attr(755,root,root) %{_libdir}/moonlight/plugin/libmoonplugin.so |
df0b2ad9 ER |
256 | %attr(755,root,root) %{_libdir}/moonlight/plugin/libmoonplugin-curlbridge.so |
257 | %attr(755,root,root) %{_libdir}/moonlight/plugin/libmoonplugin-ff3bridge.so | |
1fb3556d ER |
258 | %{_libdir}/moonlight/plugin/Microsoft.VisualBasic.dll* |
259 | %{_libdir}/moonlight/plugin/System.Core.dll* | |
260 | %{_libdir}/moonlight/plugin/System.Net.dll* | |
261 | %{_libdir}/moonlight/plugin/System.Runtime.Serialization.dll* | |
262 | %{_libdir}/moonlight/plugin/System.ServiceModel.Web.dll* | |
263 | %{_libdir}/moonlight/plugin/System.ServiceModel.dll* | |
264 | %{_libdir}/moonlight/plugin/System.Windows.Browser.dll* | |
265 | %{_libdir}/moonlight/plugin/System.Windows.dll* | |
266 | %{_libdir}/moonlight/plugin/System.Xml.dll* | |
267 | %{_libdir}/moonlight/plugin/System.dll* | |
1fb3556d | 268 | %{_libdir}/moonlight/plugin/mscorlib.dll* |
1fb3556d ER |
269 | |
270 | %files web-devel | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_bindir}/smcs | |
273 | %dir %{_prefix}/lib/moonlight | |
274 | %dir %{_prefix}/lib/moonlight/2.0-redist | |
275 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.Data.dll* | |
276 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll* | |
277 | %{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll* | |
278 | %dir %{_prefix}/lib/moonlight/2.0 | |
279 | %{_prefix}/lib/moonlight/2.0/Microsoft.VisualBasic.dll* | |
1fb3556d ER |
280 | %{_prefix}/lib/moonlight/2.0/Mono.CompilerServices.SymbolWriter.dll* |
281 | %{_prefix}/lib/moonlight/2.0/System.Core.dll* | |
282 | %{_prefix}/lib/moonlight/2.0/System.Net.dll* | |
283 | %{_prefix}/lib/moonlight/2.0/System.Runtime.Serialization.dll* | |
284 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.Web.dll* | |
285 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.dll* | |
286 | %{_prefix}/lib/moonlight/2.0/System.Windows.Browser.dll* | |
287 | %{_prefix}/lib/moonlight/2.0/System.Windows.dll* | |
288 | %{_prefix}/lib/moonlight/2.0/System.Xml.dll* | |
289 | %{_prefix}/lib/moonlight/2.0/System.dll* | |
290 | %{_prefix}/lib/moonlight/2.0/mscorlib.dll* | |
291 | %{_prefix}/lib/moonlight/2.0/respack.exe* | |
df0b2ad9 | 292 | %{_prefix}/lib/moonlight/2.0/smcs |
1fb3556d ER |
293 | %{_prefix}/lib/moonlight/2.0/smcs.exe* |
294 | %{_prefix}/lib/moonlight/2.0/buildversion | |
df0b2ad9 | 295 | %{_npkgconfigdir}/moonlight-web-2.0.pc |
1fb3556d ER |
296 | |
297 | %files desktop | |
298 | %defattr(644,root,root,755) | |
299 | %{_prefix}/lib/mono/gac/Moon.Windows.Desktop | |
300 | %{_prefix}/lib/mono/gac/Moonlight.Gtk | |
301 | %{_prefix}/lib/mono/gac/System.Windows | |
302 | %{_prefix}/lib/mono/gac/System.Windows.Browser | |
303 | %{_prefix}/lib/mono/gac/System.Windows.Controls | |
304 | %{_prefix}/lib/mono/gac/System.Windows.Controls.Data | |
305 | ||
306 | %files desktop-devel | |
307 | %defattr(644,root,root,755) | |
308 | %dir %{_prefix}/lib/mono/moonlight | |
309 | %{_prefix}/lib/mono/moonlight/Moon.Windows.Desktop.dll* | |
310 | %{_prefix}/lib/mono/moonlight/System.Windows.Browser.dll* | |
311 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.Data.dll* | |
312 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.dll* | |
313 | %{_prefix}/lib/mono/moonlight/System.Windows.dll* | |
df0b2ad9 | 314 | %{_npkgconfigdir}/moonlight-desktop-2.0.pc |
1ec7b4b3 | 315 | # It may make sense in the future to have a moonlight-gtk package |
1fb3556d ER |
316 | %{_prefix}/lib/mono/moonlight/Moonlight.Gtk.dll* |
317 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.source | |
318 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.tree | |
319 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.zip | |
df0b2ad9 | 320 | %{_npkgconfigdir}/moonlight-gtk-2.0.pc |
1fb3556d ER |
321 | |
322 | %files tools | |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) %{_bindir}/mopen | |
c3f748e6 ER |
325 | %attr(755,root,root) %{_bindir}/munxap |
326 | %attr(755,root,root) %{_bindir}/mxap | |
327 | %attr(755,root,root) %{_bindir}/respack | |
328 | %attr(755,root,root) %{_bindir}/sockpol | |
329 | %attr(755,root,root) %{_bindir}/unrespack | |
330 | %attr(755,root,root) %{_bindir}/xaml2html | |
331 | %attr(755,root,root) %{_bindir}/xamlg | |
332 | %{_mandir}/man1/mopen.1* | |
333 | %{_mandir}/man1/mxap.1* | |
334 | %{_mandir}/man1/respack.1* | |
335 | %{_mandir}/man1/sockpol.1* | |
336 | %{_mandir}/man1/svg2xaml.1* | |
337 | %{_mandir}/man1/xamlg.1* | |
1fb3556d ER |
338 | %dir %{_libdir}/moonlight |
339 | %{_libdir}/moonlight/mopen.exe* | |
c3f748e6 ER |
340 | %{_libdir}/moonlight/munxap.exe* |
341 | %{_libdir}/moonlight/mxap.exe* | |
342 | %{_libdir}/moonlight/respack.exe* | |
343 | %{_libdir}/moonlight/sockpol.exe* | |
344 | %{_libdir}/moonlight/xaml2html.exe* | |
1fb3556d | 345 | %{_libdir}/moonlight/xamlg.exe* |