gnome-mplayer-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. #TODO: Nautilus extention
  2. %define with_nautilus 0
  3. %define with_my_japo 1
  4. #% define svnrevision 1729
  5. %define rcversion 1
  6. %define GNOME_MPLAYER_BIN %{_libexecdir}/%{name}
  7. Name: gnome-mplayer
  8. Version: 0.9.99
  9. Release: 1%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}%{?_dist_release}
  10. Summary: An MPlayer GUI, a full-featured binary
  11. Summary(ja): 高機能な MPlayer のグラフィカルユーザーインターフェース
  12. Group: Applications/Multimedia
  13. License: GPLv2+
  14. URL: http://kdekorte.googlepages.com/gnomemplayer
  15. Source0: http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}%{?rcversion:.rc%rcversion}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
  16. Source10: gnome-mplayer-snapshot.sh
  17. Source50: gnome-mplayer.sh.in
  18. ## vine
  19. %if %{with_my_japo}
  20. Source100: gnome-mplayer-0.9.99.rc1-ja.po
  21. Source101: gnome-mplayer-0.9.99.rc1.desktop
  22. %endif
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  24. BuildRequires: alsa-lib-devel
  25. BuildRequires: dbus-glib-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: GConf2-devel
  28. BuildRequires: gettext
  29. BuildRequires: gtk2-devel
  30. #BuildRequires: libcurl-devel
  31. BuildRequires: curl-devel
  32. BuildRequires: libgpod-devel
  33. #BuildRequires: libmusicbrainz3-devel
  34. BuildRequires: libmusicbrainz-devel
  35. BuildRequires: libnotify-devel
  36. BuildRequires: libXScrnSaver-devel
  37. Requires: gvfs-fuse
  38. #Requires: mencoder
  39. #Requires: self-build-mplayer
  40. Requires(pre): GConf2
  41. Requires(post): GConf2
  42. Requires(preun): GConf2
  43. Distribution: Vine
  44. Vendor: Project Vine
  45. Packager: munepi
  46. %description
  47. GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
  48. player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
  49. a rich API that is exposed via DBus. Using DBus you can control a single or
  50. multiple instances of GNOME MPlayer from a single command.
  51. %description -l ja
  52. GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
  53. インターフェースです。とても引き締まったていて,
  54. MPlayer への簡単でかつ明確なインターフェースを提供します.
  55. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
  56. DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
  57. GNOME MPlayer のインスタンスを制御できます.
  58. gnome-mplayer を使うためには,mplayer が必要です.
  59. %if %{with_nautilus}
  60. %package nautilus
  61. Summary: A Nautilus extention of %{name}
  62. Summary(ja): %{name} の Nautilus 拡張
  63. Group: Applications/Multimedia
  64. Requires: %{name} = %{version}-%{release}
  65. Requires: nautilus-extensions
  66. %description nautilus
  67. GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight
  68. player and provide a simple and clean interface to MPlayer. GNOME MPlayer has
  69. a rich API that is exposed via DBus. Using DBus you can control a single or
  70. multiple instances of GNOME MPlayer from a single command.
  71. This package provides a nautilus extension, which shows properties of audio and
  72. video files in the properties dialogue.
  73. %description nautilus -l ja
  74. GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー
  75. インターフェースです。とても引き締まったていて,
  76. MPlayer への簡単でかつ明確なインターフェースを提供します.
  77. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。
  78. DBus を使って,あなたは1つのコマンドから単一のあるいは複数の
  79. GNOME MPlayer のインスタンスを制御できます.
  80. このパッケージはプロパティダイアログ内でオーディオやビデオファイルの
  81. プロパティを示すに Nautilus 拡張を提供します.
  82. %endif
  83. %prep
  84. %setup -q %{?rcversion:-n %{name}-%{version}.rc%{rcversion}}
  85. %if %{with_my_japo}
  86. ## vine
  87. %__install -m644 %{SOURCE100} po/ja.po
  88. %__install -m644 %{SOURCE101} gnome-mplayer.desktop
  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. * Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
  159. - source 0.9.99.rc1
  160. - applied gnome-mplayer-0.9.99.rc1-ja.po
  161. - entry ja in gnome-mplayer.desktop
  162. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-5.svn1729
  163. - source snapshot r1729
  164. * Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-4.svn1685
  165. - fixed gnome-mplayer.sh.in
  166. * Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-3.svn1685
  167. - source snapshot r1685
  168. - added gnome-mplayer.sh.in
  169. - this script is a wrapper to check MPlayer binary existance
  170. * Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-2.svn1673
  171. - source snapshot r1673
  172. - Rework vdpau codec selection and deinterlace (r1673)
  173. * Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
  174. - new upstream release
  175. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-4
  176. - new upstream release
  177. - added gnome-mplayer-snapshot.sh
  178. * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2.svn1619
  179. - source snapshot r1619
  180. - added gnome-mplayer-0.9.9.svn1619-ja.po
  181. * Mon Dec 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1599
  182. - source snapshot r1599
  183. - added BuildRequires: libXScrnSaver-devel
  184. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1583
  185. - source snapshot r1583
  186. - dropped gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  187. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-4
  188. - applied gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  189. - fix hidden cursor over menus (r1576)
  190. * Sat Sep 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3
  191. - new upstream release
  192. * Tue Sep 15 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2.svn1540
  193. - source snapshot r1540
  194. * Mon Sep 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1.svn1538
  195. - source snapshot r1538
  196. - updated the latest up-to-date ja.po
  197. * Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-3
  198. - new upstream release
  199. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-2.svn1493
  200. - source snapshot r1493
  201. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1.svn1486
  202. - source snapshot r1486
  203. - updated the latest up-to-date ja.po
  204. - added gtk-update-icon-cache actions in %%post, %%postun
  205. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-2
  206. - rebuild with libgpod-0.7.2
  207. - gconf uninstall rule in %%preun, not %%postun
  208. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
  209. - new upstream release
  210. * Thu May 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-4.svn1298
  211. - source snapshot r1298
  212. - updated the latest up-to-date ja.po
  213. * Sat Apr 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-3.svn1236
  214. - dropped Requires: self-build-mplayer
  215. * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-2.svn1236
  216. - source snapshot r1236
  217. - updated the latest up-to-date ja.po
  218. * Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
  219. - new upstream release
  220. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-4.r1184
  221. - dropped a Nautilus plugin once
  222. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-3.r1184
  223. - source snapshot r1184
  224. - dropped gnome-mplayer-0.9.4-ja.patch
  225. - committed Japanese translation
  226. - applied gnome-mplayer-0.9.4.r1184-ja.po
  227. - update the latest up-to-date ja.po
  228. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-2
  229. - added Summary(ja), %%description -l ja
  230. - updated gnome-mplayer-0.9.4-ja.patch
  231. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
  232. - new upstream release
  233. - updated gnome-mplayer-0.9.4-ja.patch
  234. - updated gnome-mplayer-0.9.4-ja.po
  235. - updated the URL tag
  236. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.3-1
  237. - initial build
  238. - added ja.po
  239. * Thu Jan 8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
  240. - Added patch fixing rpmfusion bug #238 from SVN
  241. - Made the dependencies between packages stricter (%%{version} → %%{version}-%%{release})
  242. * Sat Jan 3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
  243. - Updated to 0.9.3
  244. * Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
  245. - Refactored the spec to allow building both minimal and full-featured versions
  246. - s/gnome-mplayer-core-functionality/gnome-mplayer-binary
  247. * Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
  248. - Updated to 0.9.2
  249. - Added libcurl-devel, libgpod-devel and libmusicbrainz3-devel to BuildRequires
  250. - Provide gnome-mplayer-core-functionality
  251. * Sun Nov 2 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-1
  252. - Updated to 0.9.1
  253. * Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
  254. - Updated to 0.9.0
  255. - Added libnotify-devel to BuildRequires
  256. - Added gvfs-fuse to Requires
  257. * Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
  258. - Updated to 0.8.0
  259. * Sat Sep 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-2.1
  260. - Added alsa-lib-devel to BuildRequires (livna bug #2084)
  261. * Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
  262. - Updated to 0.7.0
  263. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
  264. - rebuild for buildsys cflags issue
  265. * Sun Jul 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
  266. - Updated to 0.6.3
  267. * Tue Jun 10 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-2
  268. - Added mencoder to Requires (bug #1991)
  269. * Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
  270. - Updated to 0.6.2
  271. * Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
  272. - Updated to 0.6.1
  273. - Updated URL and Source0
  274. * Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
  275. - Initial rpmfusion release