gnome-mplayer-vl.spec 16 KB

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