gnome-mplayer-vl.spec 13 KB

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