moonlight-vl.spec 8.5 KB

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