moonlight-vl.spec 8.2 KB

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