gnome-mplayer-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. #TODO: Nautilus extention
  2. %define with_nautilus 0
  3. %define with_my_japo 0
  4. #% define svnrevision 2124
  5. #% define betaversion b2
  6. %define GNOME_MPLAYER_BIN %{_libexecdir}/%{name}
  7. Name: gnome-mplayer
  8. Version: 1.0.4
  9. Release: 4%{?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:xz}%{!?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.4b1.svn2124-ja.po
  21. %endif
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  23. BuildRequires: alsa-lib-devel
  24. BuildRequires: pulseaudio-libs-devel
  25. BuildRequires: dbus-glib-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: GConf2-devel
  28. BuildRequires: gettext
  29. BuildRequires: glib2-devel
  30. BuildRequires: gtk2-devel
  31. #BuildRequires: libcurl-devel
  32. BuildRequires: curl-devel
  33. BuildRequires: libgpod-devel
  34. %if %{?_dist_release} != "vl5"
  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. %endif
  94. %build
  95. %configure \
  96. --disable-static \
  97. %if !%{with_nautilus}
  98. --disable-nautilus \
  99. %endif
  100. --disable-schemas-compile \
  101. \
  102. --with-dbus \
  103. --with-alsa \
  104. --with-pulseaudio \
  105. --with-libnotify \
  106. --with-libgpod \
  107. %if %{?_dist_release} != "vl5"
  108. --with-libmusicbrainz3 \
  109. %endif
  110. ;
  111. %__make %{?_smp_mflags}
  112. %install
  113. %__rm -rf $RPM_BUILD_ROOT
  114. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  115. %__make install DESTDIR=$RPM_BUILD_ROOT
  116. desktop-file-install --vendor=vine \
  117. --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  118. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  119. ## wrapper
  120. %__mkdir_p $RPM_BUILD_ROOT%{_libexecdir}
  121. %__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{GNOME_MPLAYER_BIN}
  122. %__sed s,@@GNOME_MPLAYER_BIN@@,%{GNOME_MPLAYER_BIN}, %{SOURCE50} > $RPM_BUILD_ROOT%{_bindir}/%{name}
  123. %__chmod 0755 $RPM_BUILD_ROOT%{_bindir}/%{name}
  124. %find_lang %{name}
  125. # remove intrusive docs
  126. %__rm -rf $RPM_BUILD_ROOT%{_docdir}/gnome-mplayer
  127. # remove unpackaged files
  128. find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
  129. # %pre
  130. # if [ "$1" -gt 1 ]; then
  131. # export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  132. # gconftool-2 --makefile-uninstall-rule \
  133. # %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas >/dev/null || :
  134. # # If the schema file has ever been renamed::
  135. # #gconftool-2 --makefile-uninstall-rule \
  136. # # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || :
  137. # fi
  138. %post
  139. touch --no-create %{_datadir}/icons/hicolor
  140. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  141. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  142. fi
  143. update-desktop-database &> /dev/null || :
  144. # export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  145. # gconftool-2 --makefile-install-rule \
  146. # %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
  147. %posttrans
  148. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  149. # update-desktop-database %{_datadir}/applications/
  150. # %preun
  151. # if [ "$1" -eq 0 ]; then
  152. # export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  153. # gconftool-2 --makefile-uninstall-rule \
  154. # %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || :
  155. # fi
  156. %postun
  157. if [ $1 -eq 0 ]; then
  158. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  159. update-desktop-database %{_datadir}/applications/
  160. fi
  161. touch --no-create %{_datadir}/icons/hicolor
  162. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  163. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
  164. fi
  165. update-desktop-database &> /dev/null || :
  166. %clean
  167. %__rm -rf $RPM_BUILD_ROOT
  168. %files -f %{name}.lang
  169. %defattr(-,root,root,-)
  170. %{_bindir}/gnome-mplayer
  171. %{GNOME_MPLAYER_BIN}
  172. %{_datadir}/applications/*-gnome-mplayer.desktop
  173. %{_datadir}/gnome-control-center/default-apps/gnome-mplayer.xml
  174. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README DOCS/* DOCS/tech/*
  175. # %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas
  176. %{_datadir}/glib-2.0/schemas/apps.gecko-mediaplayer.preferences.gschema.xml
  177. %{_datadir}/glib-2.0/schemas/apps.gnome-mplayer.preferences.enums.xml
  178. %{_datadir}/glib-2.0/schemas/apps.gnome-mplayer.preferences.gschema.xml
  179. %{_datadir}/icons/hicolor/*/apps/gnome-mplayer.*
  180. %{_mandir}/man1/gnome-mplayer.1.gz
  181. %if %{with_nautilus}
  182. %files nautilus
  183. %{_libdir}/nautilus/extensions-2.0/*.so.*
  184. %{_libdir}/nautilus/extensions-2.0/*.so
  185. %endif
  186. %changelog
  187. * Sun Sep 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-4
  188. - rebuilt with libnotify-0.7.4
  189. * Mon Jul 04 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-3
  190. - new upstream release
  191. * Fri Jun 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2.b2
  192. - source 1.0.4b2
  193. * Sun Jun 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1.b1.svn2124
  194. - source snapshot 1.0.4b1 r2124
  195. * Fri Apr 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-3
  196. - new upstream release
  197. * Tue Apr 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2.beta.svn1992
  198. - source snapshot 1.0.3beta r1992
  199. * Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1.beta.svn1989
  200. - source snapshot 1.0.3beta r1989
  201. - added --disable-schemas-compile in configure options
  202. - use GSettings (%%posttrans, %%postun)
  203. - updated Japanese translation (gnome-mplayer-1.0.3beta.svn1989-ja.po)
  204. * Tue Mar 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-2
  205. - new upstream release
  206. * Wed Mar 02 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1.b1.svn1912
  207. - source snapshot 1.0.1b1 r1912
  208. * Thu Feb 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1.b1.svn1892
  209. - source snapshot 1.0.1b1 r1892
  210. - added BuildRequires: pulseaudio-libs-devel
  211. * Sat Nov 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.0-1
  212. - new upstream release
  213. - added BuildRequires:
  214. - libmusicbrainz3-devel (only vl6)
  215. - gnome-power-manager
  216. - added Requires: gnome-power-manager
  217. * Tue Oct 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-2.rc3
  218. - source 0.9.99.rc3
  219. * Fri Aug 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.99-1.rc1
  220. - source 0.9.99.rc1
  221. - applied gnome-mplayer-0.9.99.rc1-ja.po
  222. - entry ja in gnome-mplayer.desktop
  223. * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-5.svn1729
  224. - source snapshot r1729
  225. * Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-4.svn1685
  226. - fixed gnome-mplayer.sh.in
  227. * Sat Apr 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-3.svn1685
  228. - source snapshot r1685
  229. - added gnome-mplayer.sh.in
  230. - this script is a wrapper to check MPlayer binary existance
  231. * Tue Mar 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-2.svn1673
  232. - source snapshot r1673
  233. - Rework vdpau codec selection and deinterlace (r1673)
  234. * Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9.2-1
  235. - new upstream release
  236. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-4
  237. - new upstream release
  238. - added gnome-mplayer-snapshot.sh
  239. * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-2.svn1619
  240. - source snapshot r1619
  241. - added gnome-mplayer-0.9.9.svn1619-ja.po
  242. * Mon Dec 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1599
  243. - source snapshot r1599
  244. - added BuildRequires: libXScrnSaver-devel
  245. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.9-1.svn1583
  246. - source snapshot r1583
  247. - dropped gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  248. * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-4
  249. - applied gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch
  250. - fix hidden cursor over menus (r1576)
  251. * Sat Sep 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-3
  252. - new upstream release
  253. * Tue Sep 15 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-2.svn1540
  254. - source snapshot r1540
  255. * Mon Sep 14 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.8-1.svn1538
  256. - source snapshot r1538
  257. - updated the latest up-to-date ja.po
  258. * Sat Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-3
  259. - new upstream release
  260. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-2.svn1493
  261. - source snapshot r1493
  262. * Fri Aug 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1.svn1486
  263. - source snapshot r1486
  264. - updated the latest up-to-date ja.po
  265. - added gtk-update-icon-cache actions in %%post, %%postun
  266. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-2
  267. - rebuild with libgpod-0.7.2
  268. - gconf uninstall rule in %%preun, not %%postun
  269. * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.6-1
  270. - new upstream release
  271. * Thu May 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-4.svn1298
  272. - source snapshot r1298
  273. - updated the latest up-to-date ja.po
  274. * Sat Apr 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-3.svn1236
  275. - dropped Requires: self-build-mplayer
  276. * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-2.svn1236
  277. - source snapshot r1236
  278. - updated the latest up-to-date ja.po
  279. * Sun Mar 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.5-1
  280. - new upstream release
  281. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-4.r1184
  282. - dropped a Nautilus plugin once
  283. * Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-3.r1184
  284. - source snapshot r1184
  285. - dropped gnome-mplayer-0.9.4-ja.patch
  286. - committed Japanese translation
  287. - applied gnome-mplayer-0.9.4.r1184-ja.po
  288. - update the latest up-to-date ja.po
  289. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-2
  290. - added Summary(ja), %%description -l ja
  291. - updated gnome-mplayer-0.9.4-ja.patch
  292. * Fri Feb 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.4-1
  293. - new upstream release
  294. - updated gnome-mplayer-0.9.4-ja.patch
  295. - updated gnome-mplayer-0.9.4-ja.po
  296. - updated the URL tag
  297. * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.3-1
  298. - initial build
  299. - added ja.po
  300. * Thu Jan 8 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-2
  301. - Added patch fixing rpmfusion bug #238 from SVN
  302. - Made the dependencies between packages stricter (%%{version} → %%{version}-%%{release})
  303. * Sat Jan 3 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.3-1
  304. - Updated to 0.9.3
  305. * Mon Nov 24 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-2
  306. - Refactored the spec to allow building both minimal and full-featured versions
  307. - s/gnome-mplayer-core-functionality/gnome-mplayer-binary
  308. * Sat Nov 22 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.2-1
  309. - Updated to 0.9.2
  310. - Added libcurl-devel, libgpod-devel and libmusicbrainz3-devel to BuildRequires
  311. - Provide gnome-mplayer-core-functionality
  312. * Sun Nov 2 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-1
  313. - Updated to 0.9.1
  314. * Fri Oct 31 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.0-1
  315. - Updated to 0.9.0
  316. - Added libnotify-devel to BuildRequires
  317. - Added gvfs-fuse to Requires
  318. * Mon Sep 29 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.0-1.1
  319. - Updated to 0.8.0
  320. * Sat Sep 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-2.1
  321. - Added alsa-lib-devel to BuildRequires (livna bug #2084)
  322. * Sun Aug 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.0-1.1
  323. - Updated to 0.7.0
  324. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.3-2
  325. - rebuild for buildsys cflags issue
  326. * Sun Jul 6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
  327. - Updated to 0.6.3
  328. * Tue Jun 10 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-2
  329. - Added mencoder to Requires (bug #1991)
  330. * Wed May 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.2-1
  331. - Updated to 0.6.2
  332. * Thu Apr 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.1-1
  333. - Updated to 0.6.1
  334. - Updated URL and Source0
  335. * Wed Feb 13 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.0-1
  336. - Initial rpmfusion release