gnome-mplayer-vl.spec 13 KB

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