#TODO: Nautilus extention %define with_nautilus 0 %define with_my_japo 0 #% define svnrevision 1912 #% define betaversion b1 %define GNOME_MPLAYER_BIN %{_libexecdir}/%{name} Name: gnome-mplayer Version: 1.0.2 Release: 1%{?betaversion:.%betaversion}%{?svnrevision:.svn%svnrevision}%{?_dist_release} Summary: An MPlayer GUI, a full-featured binary Summary(ja): 高機能な MPlayer のグラフィカルユーザーインターフェース Group: Applications/Multimedia License: GPLv2+ URL: http://kdekorte.googlepages.com/gnomemplayer Source0: http://gnome-mplayer.googlecode.com/files/%{name}-%{version}%{?betaversion:%betaversion}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz} Source10: gnome-mplayer-snapshot.sh Source50: gnome-mplayer.sh.in ## vine %if %{with_my_japo} Source100: gnome-mplayer-1.0.1b1.svn1892-ja.po #Source101: gnome-mplayer-0.9.99.rc1.desktop %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: alsa-lib-devel BuildRequires: pulseaudio-libs-devel BuildRequires: dbus-glib-devel BuildRequires: desktop-file-utils BuildRequires: GConf2-devel BuildRequires: gettext BuildRequires: gtk2-devel #BuildRequires: libcurl-devel BuildRequires: curl-devel BuildRequires: libgpod-devel %if %{?_dist_release} == "vl6" BuildRequires: libmusicbrainz3-devel %endif #BuildRequires: libmusicbrainz-devel BuildRequires: libnotify-devel BuildRequires: libXScrnSaver-devel BuildRequires: gnome-power-manager Requires: gvfs-fuse Requires: gnome-power-manager #Requires: mencoder #Requires: self-build-mplayer Requires(pre): GConf2 Requires(post): GConf2 Requires(preun): GConf2 Distribution: Vine Vendor: Project Vine Packager: munepi %description GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight player and provide a simple and clean interface to MPlayer. GNOME MPlayer has a rich API that is exposed via DBus. Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command. %description -l ja GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー インターフェースです。とても引き締まったていて, MPlayer への簡単でかつ明確なインターフェースを提供します. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。 DBus を使って,あなたは1つのコマンドから単一のあるいは複数の GNOME MPlayer のインスタンスを制御できます. gnome-mplayer を使うためには,mplayer が必要です. %if %{with_nautilus} %package nautilus Summary: A Nautilus extention of %{name} Summary(ja): %{name} の Nautilus 拡張 Group: Applications/Multimedia Requires: %{name} = %{version}-%{release} Requires: nautilus-extensions %description nautilus GNOME MPlayer is a simple GUI for MPlayer. It is intended to be a nice tight player and provide a simple and clean interface to MPlayer. GNOME MPlayer has a rich API that is exposed via DBus. Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command. This package provides a nautilus extension, which shows properties of audio and video files in the properties dialogue. %description nautilus -l ja GNOME MPlayer は MPlayer のための簡単なグラフィカルユーザー インターフェースです。とても引き締まったていて, MPlayer への簡単でかつ明確なインターフェースを提供します. GNOME MPlayer は DBus 経由で公開されている豊富な API を持っています。 DBus を使って,あなたは1つのコマンドから単一のあるいは複数の GNOME MPlayer のインスタンスを制御できます. このパッケージはプロパティダイアログ内でオーディオやビデオファイルの プロパティを示すに Nautilus 拡張を提供します. %endif %prep %setup -q %{?betaversion:-n %{name}-%{version}%betaversion} %if %{with_my_japo} ## vine %__install -m644 %{SOURCE100} po/ja.po #%__install -m644 %{SOURCE101} gnome-mplayer.desktop %endif %build %configure \ --disable-static \ %if !%{with_nautilus} --disable-nautilus \ %endif ; %__make %{?_smp_mflags} %install %__rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %__make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --vendor=vine \ --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop ## wrapper %__mkdir_p $RPM_BUILD_ROOT%{_libexecdir} %__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{GNOME_MPLAYER_BIN} %__sed s,@@GNOME_MPLAYER_BIN@@,%{GNOME_MPLAYER_BIN}, %{SOURCE50} > $RPM_BUILD_ROOT%{_bindir}/%{name} %__chmod 0755 $RPM_BUILD_ROOT%{_bindir}/%{name} %find_lang %{name} # remove intrusive docs %__rm -rf $RPM_BUILD_ROOT%{_docdir}/gnome-mplayer # remove unpackaged files find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \; %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas >/dev/null || : # If the schema file has ever been renamed:: #gconftool-2 --makefile-uninstall-rule \ # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || : fi %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor fi update-desktop-database &> /dev/null || : export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || : %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas > /dev/null || : fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor fi update-desktop-database &> /dev/null || : %clean %__rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %{_bindir}/gnome-mplayer %{GNOME_MPLAYER_BIN} %{_datadir}/applications/*-gnome-mplayer.desktop %{_datadir}/gnome-control-center/default-apps/gnome-mplayer.xml %doc AUTHORS COPYING ChangeLog INSTALL NEWS README DOCS/* DOCS/tech/* %{_sysconfdir}/gconf/schemas/gnome-mplayer.schemas %{_datadir}/icons/hicolor/*/apps/gnome-mplayer.* %{_mandir}/man1/gnome-mplayer.1.gz %if %{with_nautilus} %files nautilus %{_libdir}/nautilus/extensions-2.0/*.so.* %{_libdir}/nautilus/extensions-2.0/*.so %endif %changelog * Tue Mar 08 2011 Munehiro Yamamoto 1.0.1-2 - new upstream release * Wed Mar 02 2011 Munehiro Yamamoto 1.0.1-1.b1.svn1912 - source snapshot 1.0.1b1 r1912 * Thu Feb 24 2011 Munehiro Yamamoto 1.0.1-1.b1.svn1892 - source snapshot 1.0.1b1 r1892 - added BuildRequires: pulseaudio-libs-devel * Sat Nov 06 2010 Munehiro Yamamoto 1.0.0-1 - new upstream release - added BuildRequires: - libmusicbrainz3-devel (only vl6) - gnome-power-manager - added Requires: gnome-power-manager * Tue Oct 12 2010 Munehiro Yamamoto 0.9.99-2.rc3 - source 0.9.99.rc3 * Fri Aug 20 2010 Munehiro Yamamoto 0.9.99-1.rc1 - source 0.9.99.rc1 - applied gnome-mplayer-0.9.99.rc1-ja.po - entry ja in gnome-mplayer.desktop * Mon Jun 28 2010 Munehiro Yamamoto 0.9.9.2-5.svn1729 - source snapshot r1729 * Sat Apr 17 2010 Munehiro Yamamoto 0.9.9.2-4.svn1685 - fixed gnome-mplayer.sh.in * Sat Apr 17 2010 Munehiro Yamamoto 0.9.9.2-3.svn1685 - source snapshot r1685 - added gnome-mplayer.sh.in - this script is a wrapper to check MPlayer binary existance * Tue Mar 16 2010 Munehiro Yamamoto 0.9.9.2-2.svn1673 - source snapshot r1673 - Rework vdpau codec selection and deinterlace (r1673) * Thu Mar 04 2010 Munehiro Yamamoto 0.9.9.2-1 - new upstream release * Sat Feb 06 2010 Munehiro Yamamoto 0.9.9-4 - new upstream release - added gnome-mplayer-snapshot.sh * Sat Jan 16 2010 Munehiro Yamamoto 0.9.9-2.svn1619 - source snapshot r1619 - added gnome-mplayer-0.9.9.svn1619-ja.po * Mon Dec 14 2009 Munehiro Yamamoto 0.9.9-1.svn1599 - source snapshot r1599 - added BuildRequires: libXScrnSaver-devel * Sun Nov 01 2009 Munehiro Yamamoto 0.9.9-1.svn1583 - source snapshot r1583 - dropped gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch * Sun Nov 01 2009 Munehiro Yamamoto 0.9.8-4 - applied gnome-mplayer-0.9.8-fix-hidden-cursor-over-menus.patch - fix hidden cursor over menus (r1576) * Sat Sep 19 2009 Munehiro Yamamoto 0.9.8-3 - new upstream release * Tue Sep 15 2009 Munehiro Yamamoto 0.9.8-2.svn1540 - source snapshot r1540 * Mon Sep 14 2009 Munehiro Yamamoto 0.9.8-1.svn1538 - source snapshot r1538 - updated the latest up-to-date ja.po * Sat Aug 22 2009 Munehiro Yamamoto 0.9.7-3 - new upstream release * Fri Aug 07 2009 Munehiro Yamamoto 0.9.7-2.svn1493 - source snapshot r1493 * Fri Aug 07 2009 Munehiro Yamamoto 0.9.7-1.svn1486 - source snapshot r1486 - updated the latest up-to-date ja.po - added gtk-update-icon-cache actions in %%post, %%postun * Wed Jun 10 2009 Daisuke SUZUKI 0.9.6-2 - rebuild with libgpod-0.7.2 - gconf uninstall rule in %%preun, not %%postun * Sat Jun 06 2009 Munehiro Yamamoto 0.9.6-1 - new upstream release * Thu May 27 2009 Munehiro Yamamoto 0.9.5-4.svn1298 - source snapshot r1298 - updated the latest up-to-date ja.po * Sat Apr 25 2009 Munehiro Yamamoto 0.9.5-3.svn1236 - dropped Requires: self-build-mplayer * Sat Mar 28 2009 Munehiro Yamamoto 0.9.5-2.svn1236 - source snapshot r1236 - updated the latest up-to-date ja.po * Sun Mar 15 2009 Munehiro Yamamoto 0.9.5-1 - new upstream release * Fri Mar 06 2009 Munehiro Yamamoto 0.9.4-4.r1184 - dropped a Nautilus plugin once * Fri Mar 06 2009 Munehiro Yamamoto 0.9.4-3.r1184 - source snapshot r1184 - dropped gnome-mplayer-0.9.4-ja.patch - committed Japanese translation - applied gnome-mplayer-0.9.4.r1184-ja.po - update the latest up-to-date ja.po * Fri Feb 06 2009 Munehiro Yamamoto 0.9.4-2 - added Summary(ja), %%description -l ja - updated gnome-mplayer-0.9.4-ja.patch * Fri Feb 06 2009 Munehiro Yamamoto 0.9.4-1 - new upstream release - updated gnome-mplayer-0.9.4-ja.patch - updated gnome-mplayer-0.9.4-ja.po - updated the URL tag * Sun Feb 01 2009 Munehiro Yamamoto 0.9.3-1 - initial build - added ja.po * Thu Jan 8 2009 Julian Sikorski - 0.9.3-2 - Added patch fixing rpmfusion bug #238 from SVN - Made the dependencies between packages stricter (%%{version} → %%{version}-%%{release}) * Sat Jan 3 2009 Julian Sikorski - 0.9.3-1 - Updated to 0.9.3 * Mon Nov 24 2008 Julian Sikorski - 0.9.2-2 - Refactored the spec to allow building both minimal and full-featured versions - s/gnome-mplayer-core-functionality/gnome-mplayer-binary * Sat Nov 22 2008 Julian Sikorski - 0.9.2-1 - Updated to 0.9.2 - Added libcurl-devel, libgpod-devel and libmusicbrainz3-devel to BuildRequires - Provide gnome-mplayer-core-functionality * Sun Nov 2 2008 Julian Sikorski - 0.9.1-1 - Updated to 0.9.1 * Fri Oct 31 2008 Julian Sikorski - 0.9.0-1 - Updated to 0.9.0 - Added libnotify-devel to BuildRequires - Added gvfs-fuse to Requires * Mon Sep 29 2008 Julian Sikorski - 0.8.0-1.1 - Updated to 0.8.0 * Sat Sep 6 2008 Julian Sikorski - 0.7.0-2.1 - Added alsa-lib-devel to BuildRequires (livna bug #2084) * Sun Aug 17 2008 Julian Sikorski - 0.7.0-1.1 - Updated to 0.7.0 * Wed Jul 30 2008 Thorsten Leemhuis - 0.6.3-1 - Updated to 0.6.3 * Tue Jun 10 2008 Julian Sikorski - 0.6.2-2 - Added mencoder to Requires (bug #1991) * Wed May 28 2008 Julian Sikorski - 0.6.2-1 - Updated to 0.6.2 * Thu Apr 17 2008 Julian Sikorski - 0.6.1-1 - Updated to 0.6.1 - Updated URL and Source0 * Wed Feb 13 2008 Julian Sikorski - 0.6.0-1 - Initial rpmfusion release