]>
Commit | Line | Data |
---|---|---|
f85c51a8 ER |
1 | # TODO |
2 | # - find pld packages: rsvg2-sharp wnck-sharp | |
2526700a ER |
3 | # - Release tarballs: http://ftp.novell.com/pub/mono/sources/moon/ |
4 | # - debian repo: http://git.debian.org/?p=pkg-mono/packages/moon.git | |
5 | # - fedora http://olea.org/paquetes-rpm/repoview/moonlight.html | |
6 | # - ubuntu http://packages.ubuntu.com/search?keywords=moonlight-plugin-mozilla | |
fdda9daf ER |
7 | # - not compatible with our libunwind (missing demangle.h) |
8 | # - patch to be able to disable libunwind instead of BC | |
2526700a | 9 | Summary: Free Software clone of Silverlight |
840c8f88 | 10 | Name: mono-moonlight |
2526700a | 11 | Version: 2.3 |
f85c51a8 ER |
12 | Release: 0.1 |
13 | License: LGPL v2, MIT License (or similar), MS-PL | |
1fb3556d | 14 | Group: X11/Applications/Multimedia |
2526700a ER |
15 | URL: http://www.mono-project.com/Moonlight |
16 | Source0: http://ftp.novell.com/pub/mono/sources/moon/%{version}/moonlight-%{version}.tar.bz2 | |
17 | # Source0-md5: 164c4a5068f85244a0019ce49a6ee629 | |
18 | Patch0: minizip.patch | |
292c1f89 | 19 | Patch1: moon_fix_gdk_pointer_size.patch |
2526700a | 20 | BuildRequires: alsa-lib-devel |
840c8f88 | 21 | BuildRequires: cairo-devel >= 1.8.4 |
2526700a | 22 | BuildRequires: dotnet-gtk-sharp2 |
f85c51a8 | 23 | BuildRequires: expat-devel |
2526700a | 24 | BuildRequires: ffmpeg-devel |
840c8f88 | 25 | BuildRequires: gtk+2-devel |
840c8f88 | 26 | BuildRequires: libstdc++-devel |
2526700a | 27 | BuildRequires: minizip-devel |
840c8f88 | 28 | BuildRequires: mono-devel >= 2.6 |
f85c51a8 ER |
29 | BuildRequires: mono-monodoc |
30 | BuildRequires: pulseaudio-devel | |
31 | #BuildRequires: rsvg2-sharp | |
32 | #BuildRequires: wnck-sharp | |
840c8f88 AM |
33 | BuildRequires: xulrunner-devel |
34 | BuildRequires: zip | |
fdda9daf | 35 | BuildConflicts: libunwind-devel |
f85c51a8 ER |
36 | ExclusiveArch: %{ix86} %{x8664} |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
840c8f88 AM |
38 | |
39 | %description | |
40 | Moonlight is an open source implementation of Microsoft Silverlight | |
41 | for Unix systems. | |
42 | ||
43 | %package -n libmoon | |
840c8f88 | 44 | Summary: Novell Moonlight |
f85c51a8 | 45 | License: LGPL v2 |
1fb3556d | 46 | Group: X11/Applications/Multimedia |
840c8f88 AM |
47 | Requires: mono-core >= 2.6 |
48 | ||
49 | %description -n libmoon | |
50 | Moonlight is an open source implementation of Microsoft Silverlight | |
51 | for Unix systems. | |
52 | ||
840c8f88 | 53 | %package -n libmoon-devel |
840c8f88 | 54 | Summary: Development files for libmoon |
f85c51a8 | 55 | License: LGPL v2 |
1fb3556d | 56 | Group: Libraries |
840c8f88 AM |
57 | Requires: mono-devel >= 2.6 |
58 | ||
59 | %description -n libmoon-devel | |
60 | Development files for libmoon. | |
61 | ||
62 | Moonlight is an open source implementation of Microsoft Silverlight | |
63 | for Unix systems. | |
64 | ||
840c8f88 | 65 | %package plugin |
840c8f88 | 66 | Summary: Novell Moonlight Browser Plugin |
f85c51a8 | 67 | License: LGPL v2, MIT License (or similar), MS-PL |
1fb3556d | 68 | Group: X11/Applications/Multimedia |
f85c51a8 | 69 | Requires: libmoon = %{version}-%{release} |
840c8f88 AM |
70 | Requires: mono-core >= 2.6 |
71 | ||
72 | %description plugin | |
73 | Novell Moonlight Browser Plugin. | |
74 | ||
75 | Moonlight is an open source implementation of Microsoft Silverlight | |
76 | for Unix systems. | |
77 | ||
840c8f88 AM |
78 | %package web-devel |
79 | Summary: Development files for Moonlight Web | |
f85c51a8 | 80 | License: MIT License (or similar), MS-PL |
840c8f88 | 81 | Group: Development/Languages |
f85c51a8 | 82 | Suggests: %{name}-plugin = %{version}-%{release} |
840c8f88 AM |
83 | |
84 | %description web-devel | |
85 | Development files for creating Moonlight web applications. | |
86 | ||
87 | Moonlight is an open source implementation of Microsoft Silverlight | |
88 | for Unix systems. | |
89 | ||
840c8f88 | 90 | %package desktop |
840c8f88 | 91 | Summary: Mono bindings for Moonlight Desktop |
f85c51a8 | 92 | License: MIT License (or similar), MS-PL |
1fb3556d | 93 | Group: X11/Applications/Multimedia |
f85c51a8 | 94 | Requires: libmoon = %{version}-%{release} |
840c8f88 AM |
95 | |
96 | %description desktop | |
97 | Mono bindings for Novell Moonlight. | |
98 | ||
99 | Moonlight is an open source implementation of Microsoft Silverlight | |
100 | for Unix systems. | |
101 | ||
840c8f88 AM |
102 | %package desktop-devel |
103 | Summary: Development files for Moonlight Desktop | |
f85c51a8 | 104 | License: MIT License (or similar), MS-PL |
840c8f88 | 105 | Group: Development/Languages |
f85c51a8 ER |
106 | Requires: %{name}-desktop = %{version}-%{release} |
107 | Requires: dotnet-gtk-sharp2 | |
840c8f88 | 108 | Requires: glib2-devel |
f85c51a8 ER |
109 | Requires: libmoon = %{version}-%{release} |
110 | Suggests: %{name}-tools = %{version}-%{release} | |
840c8f88 AM |
111 | |
112 | %description desktop-devel | |
113 | Development files for Moonlight Desktop. | |
114 | ||
115 | Moonlight is an open source implementation of Microsoft Silverlight | |
116 | for Unix systems. | |
117 | ||
840c8f88 AM |
118 | %package tools |
119 | Summary: Various tools for Novell Moonlight | |
120 | License: MIT License (or similar) | |
121 | Group: Development/Languages | |
f85c51a8 ER |
122 | Requires: %{name}-desktop = %{version}-%{release} |
123 | Requires: libmoon = %{version}-%{release} | |
840c8f88 AM |
124 | |
125 | %description tools | |
126 | Various tools for Novell Moonlight. | |
127 | ||
128 | Moonlight is an open source implementation of Microsoft Silverlight | |
129 | for Unix systems. | |
130 | ||
840c8f88 | 131 | %prep |
2526700a ER |
132 | %setup -q -n moonlight-%{version} |
133 | %patch0 -p1 | |
292c1f89 | 134 | %patch1 -p1 |
2526700a ER |
135 | |
136 | rm -r pixman cairo src/zip curl | |
840c8f88 AM |
137 | |
138 | %build | |
292c1f89 ER |
139 | %{__libtoolize} |
140 | %{__aclocal} -I m4 | |
141 | %{__autoconf} | |
142 | %{__automake} | |
f85c51a8 | 143 | %configure \ |
292c1f89 | 144 | --enable-dependency-tracking \ |
f85c51a8 ER |
145 | --without-testing \ |
146 | --without-performance \ | |
147 | --without-examples \ | |
b5793cb5 | 148 | --with-system-minizip=yes \ |
2526700a | 149 | --with-alsa=yes \ |
292c1f89 ER |
150 | --with-cairo=system \ |
151 | --with-curl=system \ | |
152 | --with-ff3=yes \ | |
2526700a ER |
153 | --with-ffmpeg=yes \ |
154 | --with-managed=no \ | |
2526700a | 155 | --with-pulse-audio=yes \ |
292c1f89 | 156 | --with-pulseaudio=yes \ |
2526700a ER |
157 | --with-mcspath=%{_bindir} \ |
158 | ||
159 | # --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \ | |
160 | # --with-mono-basic-path=%{_builddir}/mono-basic-%{included_mono} \ | |
f85c51a8 ER |
161 | |
162 | %{__make} | |
163 | ||
840c8f88 AM |
164 | # The next lines would build the XPI if we wanted it |
165 | # So that the xpi will pick up the custom libmono.so | |
166 | #export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH} | |
167 | #%{__make} user-plugin | |
168 | ||
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
f85c51a8 ER |
171 | %{__make} install \ |
172 | DESTDIR=$RPM_BUILD_ROOT | |
173 | ||
840c8f88 AM |
174 | # Symlink the loader into browser-plugins for SUSE |
175 | install -d $RPM_BUILD_ROOT%{_libdir}/browser-plugins | |
176 | ln -s %{_libdir}/moonlight/plugin/libmoonloader.so $RPM_BUILD_ROOT%{_libdir}/browser-plugins/libmoonloader.so | |
f85c51a8 | 177 | |
840c8f88 | 178 | # We don't like nasty .la files |
f85c51a8 | 179 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v |
840c8f88 AM |
180 | |
181 | %clean | |
182 | rm -rf $RPM_BUILD_ROOT | |
1fb3556d ER |
183 | |
184 | %post -n libmoon -p /sbin/ldconfig | |
185 | %postun -n libmoon -p /sbin/ldconfig | |
186 | ||
187 | %files -n libmoon | |
188 | %defattr(644,root,root,755) | |
2526700a | 189 | %doc AUTHORS ChangeLog demo-status.txt LICENSE NEWS README TODO wishlist |
1fb3556d ER |
190 | %attr(755,root,root) %{_libdir}/libmoon.so.* |
191 | ||
192 | %files -n libmoon-devel | |
193 | %defattr(644,root,root,755) | |
194 | %{_libdir}/libmoon.so | |
195 | ||
196 | %files plugin | |
197 | %defattr(644,root,root,755) | |
198 | %dir %{_libdir}/moonlight/plugin | |
199 | %{_libdir}/moonlight/plugin/libmoonloader.so | |
200 | %{_libdir}/moonlight/plugin/libmoonplugin-ff3bridge.so | |
201 | %{_libdir}/moonlight/plugin/libmoonplugin.so | |
202 | %{_libdir}/moonlight/plugin/Microsoft.VisualBasic.dll* | |
203 | %{_libdir}/moonlight/plugin/System.Core.dll* | |
204 | %{_libdir}/moonlight/plugin/System.Net.dll* | |
205 | %{_libdir}/moonlight/plugin/System.Runtime.Serialization.dll* | |
206 | %{_libdir}/moonlight/plugin/System.ServiceModel.Web.dll* | |
207 | %{_libdir}/moonlight/plugin/System.ServiceModel.dll* | |
208 | %{_libdir}/moonlight/plugin/System.Windows.Browser.dll* | |
209 | %{_libdir}/moonlight/plugin/System.Windows.dll* | |
210 | %{_libdir}/moonlight/plugin/System.Xml.dll* | |
211 | %{_libdir}/moonlight/plugin/System.dll* | |
212 | # Is there somewhere we could put this that would be universal? | |
213 | %{_libdir}/moonlight/plugin/mscorlib.dll* | |
214 | %{_libdir}/browser-plugins/libmoonloader.so | |
215 | ||
216 | %files web-devel | |
217 | %defattr(644,root,root,755) | |
218 | %attr(755,root,root) %{_bindir}/smcs | |
219 | %dir %{_prefix}/lib/moonlight | |
220 | %dir %{_prefix}/lib/moonlight/2.0-redist | |
221 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.Data.dll* | |
222 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll* | |
223 | %{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll* | |
224 | %dir %{_prefix}/lib/moonlight/2.0 | |
225 | %{_prefix}/lib/moonlight/2.0/Microsoft.VisualBasic.dll* | |
226 | %{_prefix}/lib/moonlight/2.0-redist/System.Windows.Controls.dll* | |
227 | %{_prefix}/lib/moonlight/2.0-redist/System.Xml.Linq.dll* | |
228 | %{_prefix}/lib/moonlight/2.0/Mono.CompilerServices.SymbolWriter.dll* | |
229 | %{_prefix}/lib/moonlight/2.0/System.Core.dll* | |
230 | %{_prefix}/lib/moonlight/2.0/System.Net.dll* | |
231 | %{_prefix}/lib/moonlight/2.0/System.Runtime.Serialization.dll* | |
232 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.Web.dll* | |
233 | %{_prefix}/lib/moonlight/2.0/System.ServiceModel.dll* | |
234 | %{_prefix}/lib/moonlight/2.0/System.Windows.Browser.dll* | |
235 | %{_prefix}/lib/moonlight/2.0/System.Windows.dll* | |
236 | %{_prefix}/lib/moonlight/2.0/System.Xml.dll* | |
237 | %{_prefix}/lib/moonlight/2.0/System.dll* | |
238 | %{_prefix}/lib/moonlight/2.0/mscorlib.dll* | |
239 | %{_prefix}/lib/moonlight/2.0/respack.exe* | |
240 | %{_prefix}/lib/moonlight/2.0/smcs.exe* | |
241 | %{_prefix}/lib/moonlight/2.0/buildversion | |
242 | %{_datadir}/pkgconfig/moonlight-web-2.0.pc | |
243 | ||
244 | %files desktop | |
245 | %defattr(644,root,root,755) | |
246 | %{_prefix}/lib/mono/gac/Moon.Windows.Desktop | |
247 | %{_prefix}/lib/mono/gac/Moonlight.Gtk | |
248 | %{_prefix}/lib/mono/gac/System.Windows | |
249 | %{_prefix}/lib/mono/gac/System.Windows.Browser | |
250 | %{_prefix}/lib/mono/gac/System.Windows.Controls | |
251 | %{_prefix}/lib/mono/gac/System.Windows.Controls.Data | |
252 | ||
253 | %files desktop-devel | |
254 | %defattr(644,root,root,755) | |
255 | %dir %{_prefix}/lib/mono/moonlight | |
256 | %{_prefix}/lib/mono/moonlight/Moon.Windows.Desktop.dll* | |
257 | %{_prefix}/lib/mono/moonlight/System.Windows.Browser.dll* | |
258 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.Data.dll* | |
259 | %{_prefix}/lib/mono/moonlight/System.Windows.Controls.dll* | |
260 | %{_prefix}/lib/mono/moonlight/System.Windows.dll* | |
261 | # It may make sense in the future to have a moonlight-gtk package | |
262 | %{_datadir}/pkgconfig/moonlight-desktop-2.0.pc | |
263 | %{_prefix}/lib/mono/moonlight/Moonlight.Gtk.dll* | |
264 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.source | |
265 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.tree | |
266 | %{_prefix}/lib/monodoc/sources/moonlight-gtk.zip | |
267 | %{_datadir}/pkgconfig/moonlight-gtk-2.0.pc | |
268 | ||
269 | %files tools | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_bindir}/mopen | |
272 | %{_bindir}/munxap %{_bindir}/mxap %{_bindir}/respack | |
273 | %{_bindir}/sockpol %{_bindir}/unrespack %{_bindir}/xaml2html | |
274 | %{_bindir}/xamlg %{_mandir}/man1/mopen.1%ext_man | |
275 | %{_mandir}/man1/mxap.1%ext_man %{_mandir}/man1/respack.1%ext_man | |
276 | %{_mandir}/man1/sockpol.1%ext_man %{_mandir}/man1/svg2xaml.1%ext_man | |
277 | %{_mandir}/man1/xamlg.1%ext_man | |
278 | %dir %{_libdir}/moonlight | |
279 | %{_libdir}/moonlight/mopen.exe* | |
280 | %{_bindir}/munxap %{_bindir}/mxap %{_bindir}/respack | |
281 | %{_bindir}/sockpol %{_bindir}/unrespack %{_bindir}/xaml2html | |
282 | %{_bindir}/xamlg %{_mandir}/man1/mopen.1%ext_man | |
283 | %{_mandir}/man1/mxap.1%ext_man %{_mandir}/man1/respack.1%ext_man | |
284 | %{_mandir}/man1/sockpol.1%ext_man %{_mandir}/man1/svg2xaml.1%ext_man | |
285 | %{_mandir}/man1/xamlg.1%ext_man %{_libdir}/moonlight/munxap.exe* | |
286 | %{_libdir}/moonlight/mxap.exe* %{_libdir}/moonlight/respack.exe* | |
287 | %{_libdir}/moonlight/sockpol.exe* %{_libdir}/moonlight/xaml2html.exe* | |
288 | %{_libdir}/moonlight/xamlg.exe* |