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