gnome-mplayer-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. #TODO: Nautilus extention
  2. %define with_nautilus 0
  3. %define with_my_japo 0
  4. %define svnrevision 1673
  5. Name: gnome-mplayer
  6. Version: 0.9.9.2
  7. Release: 2%{?svnrevision:.svn%svnrevision}%{?_dist_release}
  8. Summary: An MPlayer GUI, a full-featured binary
  9. Summary(ja): 高機能な MPlayer のグラフィカルユーザーインターフェース
  10. Group: Applications/Multimedia
  11. License: GPLv2+
  12. URL: http://kdekorte.googlepages.com/gnomemplayer
  13. Source0: http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
  14. Source10: gnome-mplayer-snapshot.sh
  15. ## vine
  16. %if %{with_my_japo}
  17. #Patch100: gnome-mplayer-0.9.4-ja.patch
  18. Source100: gnome-mplayer-0.9.9.svn1629-ja.po
  19. %endif
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. BuildRequires: alsa-lib-devel
  22. BuildRequires: dbus-glib-devel
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: GConf2-devel
  25. BuildRequires: gettext
  26. BuildRequires: gtk2-devel
  27. #BuildRequires: libcurl-devel
  28. BuildRequires: curl-devel
  29. BuildRequires: libgpod-devel
  30. #BuildRequires: libmusicbrainz3-devel
  31. BuildRequires: libmusicbrainz-devel
  32. BuildRequires: libnotify-devel
  33. BuildRequires: libXScrnSaver-devel
  34. Requires: gvfs-fuse
  35. #Requires: mencoder
  36. #Requires: self-build-mplayer
  37. Requires(pre): GConf2
  38. Requires(post): GConf2
  39. Requires(preun): GConf2
  40. Distribution: Vine
  41. Vendor: Project Vine
  42. Packager: munepi
  43. %description
  44. GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
  45. player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
  46. a rich API that is exposed via DBus. Using DBus you can control a single or
  47. multiple instances of GNOME MPlayer from a single command.
  48. %description -l ja
  49. GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
  50. インターフェースです。とても引き締まったていて,
  51. MPlayer への簡単でかつ明確なインターフェースを提供します.
  52. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
  53. DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
  54. GNOME MPlayer のインスタンスを制御できます.
  55. gnome-mplayer を使うためには,mplayer が必要です.
  56. %if %{with_nautilus}
  57. %package nautilus
  58. Summary: A Nautilus extention of %{name}
  59. Summary(ja): %{name} の Nautilus 拡張
  60. Group: Applications/Multimedia
  61. Requires: %{name} = %{version}-%{release}
  62. Requires: nautilus-extensions
  63. %description nautilus
  64. GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
  65. player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
  66. a rich API that is exposed via DBus. Using DBus you can control a single or
  67. multiple instances of GNOME MPlayer from a single command.
  68. This package provides a nautilus extension, which shows properties of audio and
  69. video files in the properties dialogue.
  70. %description nautilus -l ja
  71. GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
  72. インターフェースです。とても引き締まったていて,
  73. MPlayer への簡単でかつ明確なインターフェースを提供します.
  74. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
  75. DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
  76. GNOME MPlayer のインスタンスを制御できます.
  77. このパッケージはプロパティダイアログ内でオーディオやビデオファイルの
  78. プロパティを示すに Nautilus 拡張を提供します.
  79. %endif
  80. %prep
  81. %setup -q
  82. %if %{with_my_japo}
  83. ## vine
  84. #% patch100 -p1 -b .ja
  85. %__install -m644 %{SOURCE100} po/ja.po
  86. #autoreconf -f
  87. %endif
  88. %build
  89. %configure --disable-static
  90. %__make %{?_smp_mflags}
  91. %install
  92. %__rm -rf $RPM_BUILD_ROOT
  93. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  94. %__make install DESTDIR=$RPM_BUILD_ROOT
  95. desktop-file-install --vendor=vine \
  96. --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  97. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  98. %find_lang %{name}
  99. # remove intrusive docs
  100. %__rm -rf $RPM_BUILD_ROOT%{_docdir}/gnome-mplayer
  101. # remove unpackaged files
  102. find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
  103. %pre
  104. if [ "$1" -gt 1 ]; then
  105. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  106. gconftool-2 --makefile-uninstall-rule \
  107. %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas >/dev/null || :
  108. # If the schema file has ever been renamed::
  109. #gconftool-2 --makefile-uninstall-rule \
  110. # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
  111. fi
  112. %post
  113. touch --no-create %{_datadir}/icons/hicolor
  114. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  115. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  116. fi
  117. update-desktop-database &> /dev/null || :
  118. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  119. gconftool-2 --makefile-install-rule \
  120. %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
  121. %preun
  122. if [ "$1" -eq 0 ]; then
  123. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  124. gconftool-2 --makefile-uninstall-rule \
  125. %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
  126. fi
  127. %postun
  128. touch --no-create %{_datadir}/icons/hicolor
  129. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  130. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  131. fi
  132. update-desktop-database &> /dev/null || :
  133. %clean
  134. %__rm -rf $RPM_BUILD_ROOT
  135. %files -f %{name}.lang
  136. %defattr(-,root,root,-)
  137. %{_bindir}/gnome-mplayer
  138. %{_datadir}/applications/*-gnome-mplayer.desktop
  139. %{_datadir}/gnome-control-center/default-apps/gnome-mplayer.xml
  140. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README DOCS/* DOCS/tech/*
  141. %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas
  142. %{_datadir}/icons/hicolor/*/apps/gnome-mplayer.*
  143. %{_mandir}/man1/gnome-mplayer.1.gz
  144. %if %{with_nautilus}
  145. %files nautilus
  146. %{_libdir}/nautilus/extensions-2.0/*.so.*
  147. %{_libdir}/nautilus/extensions-2.0/*.so
  148. %endif
  149. %changelog
  150. * Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-2.svn1673
  151. - source snapshot r1673
  152. - Rework vdpau codec selection and deinterlace (r1673)
  153. * Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
  154. - new upstream release
  155. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-4
  156. - new upstream release
  157. - added gnome-mplayer-snapshot.sh
  158. * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2.svn1619
  159. - source snapshot r1619
  160. - added gnome-mplayer-0.9.9.svn1619-ja.po
  161. * Mon Dec 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1599
  162. - source snapshot r1599
  163. - added BuildRequires: libXScrnSaver-devel
  164. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1583
  165. - source snapshot r1583
  166. - dropped gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  167. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-4
  168. - applied gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  169. - fix hidden cursor over menus (r1576)
  170. * Sat Sep 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3
  171. - new upstream release
  172. * Tue Sep 15 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2.svn1540
  173. - source snapshot r1540
  174. * Mon Sep 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1.svn1538
  175. - source snapshot r1538
  176. - updated the latest up-to-date ja.po
  177. * Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-3
  178. - new upstream release
  179. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-2.svn1493
  180. - source snapshot r1493
  181. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1.svn1486
  182. - source snapshot r1486
  183. - updated the latest up-to-date ja.po
  184. - added gtk-update-icon-cache actions in %%post, %%postun
  185. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-2
  186. - rebuild with libgpod-0.7.2
  187. - gconf uninstall rule in %%preun, not %%postun
  188. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
  189. - new upstream release
  190. * Thu May 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-4.svn1298
  191. - source snapshot r1298
  192. - updated the latest up-to-date ja.po
  193. * Sat Apr 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-3.svn1236
  194. - dropped Requires: self-build-mplayer
  195. * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-2.svn1236
  196. - source snapshot r1236
  197. - updated the latest up-to-date ja.po
  198. * Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
  199. - new upstream release
  200. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-4.r1184
  201. - dropped a Nautilus plugin once
  202. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-3.r1184
  203. - source snapshot r1184
  204. - dropped gnome-mplayer-0.9.4-ja.patch
  205. - committed Japanese translation
  206. - applied gnome-mplayer-0.9.4.r1184-ja.po
  207. - update the latest up-to-date ja.po
  208. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-2
  209. - added Summary(ja), %%description -l ja
  210. - updated gnome-mplayer-0.9.4-ja.patch
  211. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
  212. - new upstream release
  213. - updated gnome-mplayer-0.9.4-ja.patch
  214. - updated gnome-mplayer-0.9.4-ja.po
  215. - updated the URL tag
  216. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.3-1
  217. - initial build
  218. - added ja.po
  219. * Thu Jan 8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
  220. - Added patch fixing rpmfusion bug #238 from SVN
  221. - Made the dependencies between packages stricter (%%{version} → %%{version}-%%{release})
  222. * Sat Jan 3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
  223. - Updated to 0.9.3
  224. * Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
  225. - Refactored the spec to allow building both minimal and full-featured versions
  226. - s/gnome-mplayer-core-functionality/gnome-mplayer-binary
  227. * Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
  228. - Updated to 0.9.2
  229. - Added libcurl-devel, libgpod-devel and libmusicbrainz3-devel to BuildRequires
  230. - Provide gnome-mplayer-core-functionality
  231. * Sun Nov 2 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-1
  232. - Updated to 0.9.1
  233. * Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
  234. - Updated to 0.9.0
  235. - Added libnotify-devel to BuildRequires
  236. - Added gvfs-fuse to Requires
  237. * Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
  238. - Updated to 0.8.0
  239. * Sat Sep 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-2.1
  240. - Added alsa-lib-devel to BuildRequires (livna bug #2084)
  241. * Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
  242. - Updated to 0.7.0
  243. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
  244. - rebuild for buildsys cflags issue
  245. * Sun Jul 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
  246. - Updated to 0.6.3
  247. * Tue Jun 10 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-2
  248. - Added mencoder to Requires (bug #1991)
  249. * Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
  250. - Updated to 0.6.2
  251. * Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
  252. - Updated to 0.6.1
  253. - Updated URL and Source0
  254. * Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
  255. - Initial rpmfusion release