gecko-mediaplayer-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. %define with_my_japo 0
  2. #% define svnrevision 355
  3. #% define rcversion 3
  4. Name: gecko-mediaplayer
  5. Version: 1.0.0
  6. Release: 1%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}%{?_dist_release}
  7. Summary: Gnome MPlayer browser plugin
  8. Summary(ja): Gnome MPlayer の Web ブラウザ用プラグイン
  9. Group: Applications/Multimedia
  10. License: GPLv2+
  11. URL: http://kdekorte.googlepages.com/gecko-mediaplayer
  12. Source0: http://gecko-mediaplayer.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
  13. Source10: gecko-mediaplayer-snapshot.sh
  14. ## vine
  15. %if %{with_my_japo}
  16. Patch100: gecko-mediaplayer-0.9.4-ja.patch
  17. Source100: gecko-mediaplayer-0.9.4-ja.po
  18. %endif
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  20. BuildRequires: dbus-glib-devel
  21. BuildRequires: GConf2-devel
  22. BuildRequires: gettext
  23. BuildRequires: libX11-devel
  24. #BuildRequires: gecko-devel
  25. BuildRequires: xulrunner-devel >= 1.9.1
  26. Requires: firefox >= 3.5
  27. #Requires: %{_libdir}/mozilla/plugins
  28. Requires: gnome-mplayer >= %{version}
  29. Requires(pre): GConf2
  30. Requires(post): GConf2
  31. Requires(preun): GConf2
  32. Obsoletes: mplayerplug-in < 3.50
  33. %description
  34. Gecko Media Player is a browser plugin that uses GNOME MPlayer to play media in
  35. a browser. It should work with all browsers on Unix-ish systems(Linux, BSD,
  36. Solaris) and use the NS4 API (Mozilla, Firefox, Opera, etc.).
  37. %description -l ja
  38. Gecko Media Player は Web ブラウザ上でメディアを再生するために
  39. GNOME MPlayer を使う Web ブラウザ用プラグインです.
  40. Unix-ish なシステム(Linux, BSD, Solaris)上のすべてのブラウザで
  41. 動作するはずで,NS4 API(Mozilla, Firefox, Opera など)を使います.
  42. %prep
  43. %setup -q %{?rcversion:-n %{name}-%{version}.rc%{rcversion}}
  44. %if %{with_my_japo}
  45. ## vine
  46. %patch100 -p1 -b .ja
  47. %__install -m644 %{SOURCE100} po/ja.po
  48. autoreconf -f
  49. %endif
  50. %build
  51. %configure
  52. %__make %{?_smp_mflags}
  53. %install
  54. %__rm -rf $RPM_BUILD_ROOT
  55. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. %__make install DESTDIR=$RPM_BUILD_ROOT
  57. %find_lang %{name}
  58. #remove intrusive docs
  59. %__rm -rf $RPM_BUILD_ROOT%{_docdir}/gecko-mediaplayer
  60. %pre
  61. if [ "$1" -gt 1 ]; then
  62. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  63. gconftool-2 --makefile-uninstall-rule \
  64. %{_sysconfdir}/gconf/schemas/gecko-mediaplayer.schemas >/dev/null || :
  65. # If the schema file has ever been renamed::
  66. #gconftool-2 --makefile-uninstall-rule \
  67. # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
  68. fi
  69. %post
  70. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  71. gconftool-2 --makefile-install-rule \
  72. %{_sysconfdir}/gconf/schemas/gecko-mediaplayer.schemas > /dev/null || :
  73. %preun
  74. if [ "$1" -eq 0 ]; then
  75. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  76. gconftool-2 --makefile-uninstall-rule \
  77. %{_sysconfdir}/gconf/schemas/gecko-mediaplayer.schemas > /dev/null || :
  78. fi
  79. %clean
  80. %__rm -rf $RPM_BUILD_ROOT
  81. %files -f %{name}.lang
  82. %defattr(-,root,root,-)
  83. %doc COPYING ChangeLog
  84. %{_sysconfdir}/gconf/schemas/gecko-mediaplayer.schemas
  85. %{_libdir}/mozilla/plugins/gecko-mediaplayer-dvx.so
  86. %{_libdir}/mozilla/plugins/gecko-mediaplayer-qt.so
  87. %{_libdir}/mozilla/plugins/gecko-mediaplayer-rm.so
  88. %{_libdir}/mozilla/plugins/gecko-mediaplayer-wmp.so
  89. %{_libdir}/mozilla/plugins/gecko-mediaplayer.so
  90. %changelog
  91. * Sat Nov 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.0-1
  92. - new upstream release
  93. * Tue Oct 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-2.rc3
  94. - source 0.9.99.rc3
  95. * Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
  96. - source 0.9.99.rc1
  97. * Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
  98. - new upstream release
  99. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2
  100. - new upstream release
  101. * Thu Jan 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn347
  102. - source snapshot r355
  103. * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3.svn347
  104. - source snapshot r347
  105. - fixed compile with libxul-1.9.2 or higher (r347, r338)
  106. - fixed crash on Apple site (r345)
  107. - added video/xmng, video/x-ms-asx minetypes (r344, r335)
  108. - added gecko-mediaplayer-snapshot.sh
  109. * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2
  110. - dropped BuildRequires: xulrunner-devel-unstable
  111. * Sun Sep 20 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1
  112. - new upstream release
  113. * Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1
  114. - new upstream release
  115. * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-2
  116. - added Requires: firefox >= 3.0
  117. - require %%{_libdir}/mozilla/plugins
  118. - dropped Requires: %%{_libdir}/mozilla/plugins
  119. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
  120. - new upstream release
  121. * Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
  122. - new upstream release
  123. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
  124. - initial build
  125. - added ja.po
  126. * Wed Feb 4 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.4-1
  127. - Updated to 0.9.4, no more xpt files
  128. - Dropped the upsteamed patch
  129. - Updated the URL
  130. * Thu Jan 8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
  131. - Added patch fixing rpmfusion bug #290 from SVN
  132. * Sat Jan 3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
  133. - Updated to 0.9.3
  134. * Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
  135. - s/gnome-mplayer-core-functionality/gnome-mplayer-binary
  136. * Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
  137. - Updated to 0.9.2
  138. - Require gnome-mplayer-core-functionality instead of gnome-mplayer
  139. * Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
  140. - Updated to 0.9.0
  141. * Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
  142. - Updated to 0.8.0
  143. * Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
  144. - Updated to 0.7.0
  145. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-3
  146. - rebuild for buildsys cflags issue
  147. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
  148. - rebuild for buildsys cflags issue
  149. * Sun Jul 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
  150. - Updated to 0.6.3
  151. * Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
  152. - Updated to 0.6.2
  153. * Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
  154. - Updated to 0.6.1
  155. - Updated URL and Source0
  156. - Dropped upstreamed patch
  157. - Dropped the rpmfusion-specific readme
  158. * Fri Mar 7 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-3
  159. - Added patch fixing unnecessary libxul-embedding.pc from SVN
  160. * Fri Feb 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-2
  161. - Switched to gecko-devel virtual provides
  162. - Made the mplayerplug-in obsoletion versioned
  163. - Ditto gnome-mplayer requirement
  164. * Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
  165. - Initial rpmfusion release