gnome-mplayer-vl.spec 12 KB

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