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