gecko-mediaplayer-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %define with_my_japo 0
  2. #% define svnrevision 355
  3. %define rcversion 1
  4. Name: gecko-mediaplayer
  5. Version: 0.9.99
  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. * Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
  92. - source 0.9.99.rc1
  93. * Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
  94. - new upstream release
  95. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2
  96. - new upstream release
  97. * Thu Jan 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn347
  98. - source snapshot r355
  99. * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3.svn347
  100. - source snapshot r347
  101. - fixed compile with libxul-1.9.2 or higher (r347, r338)
  102. - fixed crash on Apple site (r345)
  103. - added video/xmng, video/x-ms-asx minetypes (r344, r335)
  104. - added gecko-mediaplayer-snapshot.sh
  105. * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2
  106. - dropped BuildRequires: xulrunner-devel-unstable
  107. * Sun Sep 20 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1
  108. - new upstream release
  109. * Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1
  110. - new upstream release
  111. * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-2
  112. - added Requires: firefox >= 3.0
  113. - require %%{_libdir}/mozilla/plugins
  114. - dropped Requires: %%{_libdir}/mozilla/plugins
  115. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
  116. - new upstream release
  117. * Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
  118. - new upstream release
  119. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
  120. - initial build
  121. - added ja.po
  122. * Wed Feb 4 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.4-1
  123. - Updated to 0.9.4, no more xpt files
  124. - Dropped the upsteamed patch
  125. - Updated the URL
  126. * Thu Jan 8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
  127. - Added patch fixing rpmfusion bug #290 from SVN
  128. * Sat Jan 3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
  129. - Updated to 0.9.3
  130. * Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
  131. - s/gnome-mplayer-core-functionality/gnome-mplayer-binary
  132. * Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
  133. - Updated to 0.9.2
  134. - Require gnome-mplayer-core-functionality instead of gnome-mplayer
  135. * Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
  136. - Updated to 0.9.0
  137. * Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
  138. - Updated to 0.8.0
  139. * Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
  140. - Updated to 0.7.0
  141. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-3
  142. - rebuild for buildsys cflags issue
  143. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
  144. - rebuild for buildsys cflags issue
  145. * Sun Jul 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
  146. - Updated to 0.6.3
  147. * Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
  148. - Updated to 0.6.2
  149. * Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
  150. - Updated to 0.6.1
  151. - Updated URL and Source0
  152. - Dropped upstreamed patch
  153. - Dropped the rpmfusion-specific readme
  154. * Fri Mar 7 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-3
  155. - Added patch fixing unnecessary libxul-embedding.pc from SVN
  156. * Fri Feb 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-2
  157. - Switched to gecko-devel virtual provides
  158. - Made the mplayerplug-in obsoletion versioned
  159. - Ditto gnome-mplayer requirement
  160. * Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
  161. - Initial rpmfusion release