%define name totem %define version 0.10.0 %define release 3mdk Summary: Video player based on xine for GNOME2 Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 Source1: %name-16.png Source2: %name-32.png License: GPL Group: Video BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} URL: http://www.hadess.net/totem.php3 BuildRequires: libxine0-devel BuildRequires: libgnomeui2-devel BuildRequires: libglade2.0-devel BuildRequires: libgnome-vfs2-devel Requires: xine-plugins %description Totem is simple movie player for the Gnome desktop based on xine. It features a simple playlist, a full-screen mode, seek and volume controls, as well as a pretty complete keyboard navigation. %prep %setup -q %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %find_lang %name #menu install -d -m 755 $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF ?package(%{name}): \ command="%{_bindir}/%{name}"\ needs="X11"\ section="Multimedia/Video"\ icon="%name.png"\ mimetypes="video/mpeg,video/msvideo,video/quicktime,video/x-avi,video/x-ms-asf,video/x-ms-wmv,video/x-msvideo,application/x-ogg,audio/x-mp3,audio/x-mpeg,video/x-fli,audio/x-wav"\ accept_url="true"\ multiple_files="true"\ title="Totem"\ longtitle="Video player based on Xine" EOF #icons mkdir -p %buildroot{%_liconsdir,%_miconsdir,%_iconsdir} ln -s %_datadir/pixmaps/media-player-48.png %buildroot/%_liconsdir/%name.png install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/%name.png install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_miconsdir}/%name.png %clean rm -rf $RPM_BUILD_ROOT %post %{update_menus} %postun %{clean_menus} %files -f %name.lang %defattr(-,root,root) %doc README ChangeLog AUTHORS TODO %config(noreplace) %_sysconfdir/gconf/schemas/totem.schemas %_bindir/%name %_datadir/pixmaps/media-player-48.png %_datadir/application-registry/totem.applications %_datadir/mime-info/totem.keys %_datadir/totem/* %_datadir/applications/totem.desktop %_menudir/%name %{_iconsdir}/%name.png %{_miconsdir}/%name.png %{_liconsdir}/%name.png %changelog * Mon Sep 23 2002 Götz Waschk <waschk@linux-mandrake.com> 0.10.0-3mdk - fix menu * Fri Sep 13 2002 Götz Waschk <waschk@linux-mandrake.com> 0.10.0-2mdk - requires xine-plugins (of course) * Thu Sep 12 2002 Götz Waschk <waschk@linux-mandrake.com> 0.10.0-1mdk - initial Mandrake package