1 | %define mono_dir %{_prefix}/lib/mono |
---|
2 | %define monodoc_dir %{_prefix}/lib/monodoc |
---|
3 | %define moonlight_dir %{_prefix}/lib/moonlight |
---|
4 | %define pkgconfigdir %{_datadir}/pkgconfig |
---|
5 | %define included_mono 2.6.1 |
---|
6 | %define included_basic 2.6 |
---|
7 | |
---|
8 | Summary: An open source implementation of Silverlight |
---|
9 | Summary(ja): Silverlight のオープンソースによる実装 |
---|
10 | Name: moonlight |
---|
11 | Version: 2.3 |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | |
---|
14 | Group: Applications/Multimedia |
---|
15 | License: LGPL v2.0 only ; MIT License (or similar) ; Ms-Pl |
---|
16 | URL: http://go-mono.com/moonlight/ |
---|
17 | |
---|
18 | Source0: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/moonlight-%{version}.tar.bz2 |
---|
19 | Source1: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-%{included_mono}.tar.bz2 |
---|
20 | Source2: ftp://ftp.novell.com/pub/mono/sources/moon/%{version}/mono-basic-%{included_basic}.tar.bz2 |
---|
21 | |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | #Patch0: missing-files.patch |
---|
24 | #BuildRequires: mono-devel >= 2.6 |
---|
25 | #BuildRequires: monodoc |
---|
26 | BuildRequires: gtk-sharp2 |
---|
27 | BuildRequires: rsvg2-sharp |
---|
28 | BuildRequires: wnck-sharp |
---|
29 | BuildRequires: gcc-c++ |
---|
30 | BuildRequires: gtk2-devel |
---|
31 | BuildRequires: alsa-lib-devel |
---|
32 | BuildRequires: xulrunner-devel |
---|
33 | BuildRequires: bison |
---|
34 | #BuildRequires: autoconf |
---|
35 | #BuildRequires: automake |
---|
36 | ExclusiveArch: %ix86 x86_64 |
---|
37 | |
---|
38 | %description |
---|
39 | Moonlight is an open source implementation of Microsoft Silverlight for |
---|
40 | Unix systems. |
---|
41 | |
---|
42 | %description -l ja |
---|
43 | Moonlight は Unix 系システムのための,Microsoft Silverlight のオープン |
---|
44 | ソースな実装です. |
---|
45 | |
---|
46 | |
---|
47 | %package libs |
---|
48 | Summary: Moonlight libmoon |
---|
49 | Group: System Environment/Libraries |
---|
50 | License: LGPL v2.0 only |
---|
51 | |
---|
52 | %description libs |
---|
53 | Moonlight libmoon |
---|
54 | |
---|
55 | %package devel |
---|
56 | Summary: Moonlight libmoon C/C++ development files |
---|
57 | Group: Development/Libraries |
---|
58 | License: LGPL v2.0 only |
---|
59 | Requires: %{name}-libs == %{version} |
---|
60 | |
---|
61 | %description devel |
---|
62 | Development files for libmoon |
---|
63 | |
---|
64 | %package tools |
---|
65 | Summary: Moonlight tools |
---|
66 | Group: Development/Tools |
---|
67 | Requires: %{name}-libs == %{version} |
---|
68 | |
---|
69 | %description tools |
---|
70 | Moonlight tools (mopen, xamlg, xaml2html, mxap, respack, svg2xaml) |
---|
71 | |
---|
72 | %package plugin |
---|
73 | Summary: Moonlight browser plugin |
---|
74 | Group: Applications/Internet |
---|
75 | Requires: %{name}-libs == %{version} |
---|
76 | |
---|
77 | %description plugin |
---|
78 | Browser plugin for Novell Moonlight |
---|
79 | |
---|
80 | %package web-devel |
---|
81 | Summary: Development files for Moonlight Web |
---|
82 | Group: Development/Libraries |
---|
83 | License: MIT License (or similar) ; Ms-Pl |
---|
84 | Requires: %{name}-plugin == %{version} |
---|
85 | |
---|
86 | %description web-devel |
---|
87 | Development files for creating Moonlight web applications. |
---|
88 | |
---|
89 | %package desktop |
---|
90 | Summary: Mono bindings for Moonlight Desktop |
---|
91 | Group: Development/Libraries |
---|
92 | License: MIT License (or similar) ; Ms-Pl |
---|
93 | Requires: %{name}-libs == %{version} |
---|
94 | |
---|
95 | %description desktop |
---|
96 | Mono bindings for Novell Moonlight. |
---|
97 | |
---|
98 | %package desktop-devel |
---|
99 | Summary: Development files for Moonlight Desktop |
---|
100 | Group: Development/Libraries |
---|
101 | License: MIT License (or similar) ; Ms-Pl |
---|
102 | Requires: %{name}-libs == %{version} |
---|
103 | Requires: glib2-devel |
---|
104 | Requires: gtk-sharp2 |
---|
105 | Requires: %{name}-desktop == %{version} |
---|
106 | Requires: %{name}-tools == %{version} |
---|
107 | |
---|
108 | %description desktop-devel |
---|
109 | Development files for Moonlight Desktop. |
---|
110 | |
---|
111 | %package sharp |
---|
112 | Summary: Moonlight sharp |
---|
113 | Group: Development/Libraries |
---|
114 | Requires: %{name}-libs == %{version} |
---|
115 | |
---|
116 | %description sharp |
---|
117 | Provides a gtk-sharp object that can be used to embed a moonlight surface in a desktop application. |
---|
118 | |
---|
119 | |
---|
120 | %prep |
---|
121 | %setup -q |
---|
122 | %setup -q -T -D -b 1 -n %{name}-%{version} |
---|
123 | %setup -q -T -D -b 2 -n %{name}-%{version} |
---|
124 | |
---|
125 | |
---|
126 | %build |
---|
127 | # The plugin requires a complete build of it's own mono |
---|
128 | pushd ../mono-%{included_mono} |
---|
129 | ./configure \ |
---|
130 | --prefix=%{_builddir}/install \ |
---|
131 | --with-mcs-docs=no \ |
---|
132 | --with-ikvm-native=no \ |
---|
133 | ; |
---|
134 | # mono is not strictly -j safe |
---|
135 | %{__make} EXTERNAL_MCS=false EXTERNAL_RUNTIME=false |
---|
136 | %{__make} install |
---|
137 | find %{_builddir}/install -name \*.la -delete |
---|
138 | popd |
---|
139 | |
---|
140 | # Configure against the junk install of mono |
---|
141 | export PATH=%{_builddir}/install/bin:${PATH} |
---|
142 | export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH} |
---|
143 | export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH} |
---|
144 | # Only needed when there are Makefile.am or configure.ac patches |
---|
145 | #autoreconf -f -i -Wnone |
---|
146 | %configure \ |
---|
147 | --with-ffmpeg=no \ |
---|
148 | --with-cairo=system \ |
---|
149 | --with-curl=system \ |
---|
150 | --with-mcspath=%{_builddir}/mono-%{included_mono}/mcs \ |
---|
151 | --with-mono-basic-path=%{_builddir}/mono-basic-%{included_basic} \ |
---|
152 | --with-ff3=yes \ |
---|
153 | --with-testing=no \ |
---|
154 | --with-performance=no \ |
---|
155 | --with-examples=no \ |
---|
156 | --with-debug=no \ |
---|
157 | --with-sanity-checks=no \ |
---|
158 | ; |
---|
159 | |
---|
160 | export MONO_GAC_PREFIX=%{_builddir}/install:%{_prefix} |
---|
161 | %{__make} %{?_smp_mflags} |
---|
162 | |
---|
163 | |
---|
164 | %install |
---|
165 | rm -rf $RPM_BUILD_ROOT |
---|
166 | export PATH=%{_builddir}/install/bin:${PATH} |
---|
167 | export LD_LIBRARY_PATH=%{_builddir}/install/lib:${LD_LIBRARY_PATH} |
---|
168 | export PKG_CONFIG_PATH=%{_builddir}/install/lib/pkgconfig:${PKG_CONFIG_PATH} |
---|
169 | make install DESTDIR=${RPM_BUILD_ROOT} pkgconfigdir=%{pkgconfigdir} |
---|
170 | |
---|
171 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins |
---|
172 | ln -s %{_libdir}/moonlight/plugin/libmoonloader.so \ |
---|
173 | $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/libmoonloader.so |
---|
174 | |
---|
175 | # remove unuse files |
---|
176 | rm -f $RPM_BUILD_ROOT%{_libdir}/libshocker.so |
---|
177 | find %{buildroot} -name \*.la -delete |
---|
178 | |
---|
179 | |
---|
180 | %post libs -p /sbin/ldconfig |
---|
181 | %postun libs -p /sbin/ldconfig |
---|
182 | %clean |
---|
183 | rm -rf $RPM_BUILD_ROOT |
---|
184 | |
---|
185 | |
---|
186 | %files libs |
---|
187 | %defattr(-, root, root) |
---|
188 | %doc AUTHORS COPYING ChangeLog README TODO NEWS |
---|
189 | %{_libdir}/libmoon.so.* |
---|
190 | |
---|
191 | %files devel |
---|
192 | %defattr(-, root, root) |
---|
193 | %{_libdir}/libmoon.so |
---|
194 | |
---|
195 | %files tools |
---|
196 | %defattr(-, root, root) |
---|
197 | %{_bindir}/mopen |
---|
198 | %{_bindir}/munxap |
---|
199 | %{_bindir}/mxap |
---|
200 | %{_bindir}/respack |
---|
201 | %{_bindir}/sockpol |
---|
202 | %{_bindir}/unrespack |
---|
203 | %{_bindir}/xaml2html |
---|
204 | %{_bindir}/xamlg |
---|
205 | %dir %{_libdir}/moonlight |
---|
206 | %{_libdir}/moonlight/mopen.exe* |
---|
207 | %{_libdir}/moonlight/munxap.exe |
---|
208 | %{_libdir}/moonlight/mxap.exe |
---|
209 | %{_libdir}/moonlight/respack.exe |
---|
210 | %{_libdir}/moonlight/xaml2html.exe |
---|
211 | %{_libdir}/moonlight/xamlg.exe |
---|
212 | %{_libdir}/moonlight/sockpol.exe |
---|
213 | %{_mandir}/man1/mopen.1.gz |
---|
214 | %{_mandir}/man1/mxap.1.gz |
---|
215 | %{_mandir}/man1/respack.1.gz |
---|
216 | %{_mandir}/man1/svg2xaml.1.gz |
---|
217 | %{_mandir}/man1/xamlg.1.gz |
---|
218 | %{_mandir}/man1/sockpol.1.gz |
---|
219 | |
---|
220 | %files plugin |
---|
221 | %defattr(-, root, root) |
---|
222 | %dir %{_libdir}/moonlight/plugin |
---|
223 | %{_libdir}/moonlight/plugin/Microsoft.VisualBasic.dll |
---|
224 | %{_libdir}/moonlight/plugin/System.Core.dll* |
---|
225 | %{_libdir}/moonlight/plugin/System.Net.dll* |
---|
226 | %{_libdir}/moonlight/plugin/System.Runtime.Serialization.dll* |
---|
227 | %{_libdir}/moonlight/plugin/System.ServiceModel.Web.dll* |
---|
228 | %{_libdir}/moonlight/plugin/System.ServiceModel.dll* |
---|
229 | %{_libdir}/moonlight/plugin/System.Windows.Browser.dll* |
---|
230 | %{_libdir}/moonlight/plugin/System.Windows.dll* |
---|
231 | %{_libdir}/moonlight/plugin/System.Xml.dll* |
---|
232 | %{_libdir}/moonlight/plugin/System.dll* |
---|
233 | %{_libdir}/moonlight/plugin/libmoonloader.so |
---|
234 | %{_libdir}/moonlight/plugin/libmoonplugin-curlbridge.so |
---|
235 | %{_libdir}/moonlight/plugin/libmoonplugin-ff3bridge.so |
---|
236 | %{_libdir}/moonlight/plugin/libmoonplugin.so |
---|
237 | %{_libdir}/moonlight/plugin/mscorlib.dll* |
---|
238 | %{_libdir}/mozilla/plugins/libmoonloader.so |
---|
239 | |
---|
240 | %files web-devel |
---|
241 | %defattr(-, root, root) |
---|
242 | %{_bindir}/smcs |
---|
243 | %dir %{moonlight_dir}/2.0-redist |
---|
244 | %{moonlight_dir}/2.0-redist/System.Windows.Controls.Data.dll* |
---|
245 | %{moonlight_dir}/2.0-redist/System.Windows.Controls.dll* |
---|
246 | %{moonlight_dir}/2.0-redist/System.Xml.Linq.dll* |
---|
247 | %dir %{moonlight_dir}/2.0 |
---|
248 | %{moonlight_dir}/2.0/Microsoft.VisualBasic.dll* |
---|
249 | %{moonlight_dir}/2.0/Mono.CompilerServices.SymbolWriter.dll* |
---|
250 | %{moonlight_dir}/2.0/System.Core.dll* |
---|
251 | %{moonlight_dir}/2.0/System.Net.dll* |
---|
252 | %{moonlight_dir}/2.0/System.Runtime.Serialization.dll* |
---|
253 | %{moonlight_dir}/2.0/System.ServiceModel.Web.dll* |
---|
254 | %{moonlight_dir}/2.0/System.ServiceModel.dll* |
---|
255 | %{moonlight_dir}/2.0/System.Windows.Browser.dll* |
---|
256 | %{moonlight_dir}/2.0/System.Windows.dll* |
---|
257 | %{moonlight_dir}/2.0/System.Xml.dll* |
---|
258 | %{moonlight_dir}/2.0/System.dll* |
---|
259 | %{moonlight_dir}/2.0/mscorlib.dll* |
---|
260 | %{moonlight_dir}/2.0/respack.exe* |
---|
261 | %{moonlight_dir}/2.0/smcs |
---|
262 | %{moonlight_dir}/2.0/smcs.exe* |
---|
263 | %{moonlight_dir}/2.0/buildversion |
---|
264 | %{pkgconfigdir}/moonlight-web-2.0.pc |
---|
265 | |
---|
266 | %files desktop |
---|
267 | %defattr(-, root, root) |
---|
268 | %{mono_dir}/gac/Moon.Windows.Desktop |
---|
269 | %{mono_dir}/gac/Moonlight.Gtk |
---|
270 | %{mono_dir}/gac/System.Windows |
---|
271 | %{mono_dir}/gac/System.Windows.Browser |
---|
272 | %{mono_dir}/gac/System.Windows.Controls |
---|
273 | %{mono_dir}/gac/System.Windows.Controls.Data |
---|
274 | |
---|
275 | %files desktop-devel |
---|
276 | %defattr(-, root, root) |
---|
277 | %dir %{mono_dir}/moonlight |
---|
278 | %{mono_dir}/moonlight/Moon.Windows.Desktop.dll* |
---|
279 | %{mono_dir}/moonlight/System.Windows.Browser.dll* |
---|
280 | %{mono_dir}/moonlight/System.Windows.Controls.Data.dll* |
---|
281 | %{mono_dir}/moonlight/System.Windows.Controls.dll* |
---|
282 | %{mono_dir}/moonlight/System.Windows.dll* |
---|
283 | %{pkgconfigdir}/moonlight-desktop-2.0.pc |
---|
284 | # It may make sense in the future to have a moonlight-gtk package |
---|
285 | %{mono_dir}/moonlight/Moonlight.Gtk.dll* |
---|
286 | %{monodoc_dir}/sources/moonlight-gtk.source |
---|
287 | %{monodoc_dir}/sources/moonlight-gtk.tree |
---|
288 | %{monodoc_dir}/sources/moonlight-gtk.zip |
---|
289 | %{pkgconfigdir}/moonlight-gtk-2.0.pc |
---|
290 | |
---|
291 | |
---|
292 | %changelog |
---|
293 | * Tue Oct 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.3-1 |
---|
294 | - updated moonlightautoconf to 2.3 |
---|
295 | - updated mono to 2.6.1 |
---|
296 | - updated mono-basic to 2.6 |
---|
297 | - added BR: bison |
---|
298 | |
---|
299 | * Wed Sep 08 2010 Shu KONNO <owa@bg.wakwak.com> 2.0-3 |
---|
300 | - export PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH, MONO_GAC_PREFIX |
---|
301 | |
---|
302 | * Sat Sep 4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-2 |
---|
303 | - fixed Group |
---|
304 | - added BR: wnck-sharp |
---|
305 | |
---|
306 | * Thu Dec 31 2009 Shu KONNO <owa@bg.wakwak.com> 2.0-1 |
---|
307 | - updated moonlight to 2.0 |
---|
308 | |
---|
309 | * Thu Jul 09 2009 Shu KONNO <owa@bg.wakwak.com> 1.0.1-1 |
---|
310 | - updated moon to 1.0.1 |
---|
311 | - dropt missing-files.patch (included in source) |
---|
312 | - built with latest rpm to update mono-dependencies |
---|
313 | |
---|
314 | * Sun Apr 19 2009 Shu KONNO <owa@bg.wakwak.com> 0.8.1-2 |
---|
315 | - changed plugin Group to Applications/Internet |
---|
316 | - changed other sub packages Group to Development/Libraries |
---|
317 | - added %%pkgconfigdir macro |
---|
318 | |
---|
319 | * Sat Sep 27 2008 Shu KONNO <owa@bg.wakwak.com> 0.8.1-1 |
---|
320 | - new upstream release |
---|
321 | - added missing-files.patch from suse |
---|
322 | - added --with-managed=desktop |
---|
323 | |
---|
324 | * Wed Sep 17 2008 Shu KONNO <owa@bg.wakwak.com> 0.8-1 |
---|
325 | - initial build for VineSeed |
---|
326 | - moonlight 0.8 |
---|
327 | - vine versioning policy |
---|
328 | - spec in utf-8 |
---|
329 | |
---|