%define debug_package %{nil} %define oname elisa %define rel 1 %define svn 0 %define pre 0 %if %svn %define release %mkrel 0.%svn.%rel %define distname %name-%svn.tar.lzma %define dirname %oname %else %if %pre %define release %mkrel 0.%pre.%rel %define distname %name-%version.%pre.tar.gz %define dirname %oname-%version.%pre %else %define release %mkrel %rel %define distname %name-%version.tar.gz %define dirname %oname-%version %endif %endif # It's the same for releases, but different for pre-releases: please # don't remove, even if it seems superfluous - AdamW 2008/03 %define fversion %{version} Summary: Media center written in Python Name: moovida Version: 1.0.9 Release: %{release} # For bzr: # bzr branch lp:~elisa-developers/elisa/relook Source0: http://www.moovida.com/media/public/%{distname} # Disable automatic updates - AdamW 2009/02 Patch0: moovida-1.0.1-disable_plugin_updates.patch License: GPLv3 and MIT Group: Graphical desktop/Other URL: http://www.moovida.com/ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: python BuildRequires: python-setuptools BuildRequires: python-devel BuildRequires: python-twisted BuildRequires: imagemagick BuildRequires: desktop-file-utils BuildRequires: gstreamer0.10-python Requires: moovida-plugins-good = %{version} Requires: moovida-plugins-bad = %{version} Requires: moovida-core = %{version} Suggests: moovida-plugins-ugly = %{version} Suggests: gstreamer0.10-libvisual Provides: elisa = %{version}-%{release} Obsoletes: elisa < %{version}-%{release} %description Moovida is a project to create an open source cross platform media center solution. Moovida runs on top of the GStreamer multimedia framework and takes full advantage of harware acceleration provided by modern graphic cards by using OpenGL APIs. In addition to personal video recorder functionality (PVR) and Music Jukebox support, Moovida will also interoperate with devices following the DLNA standard like Intel's ViiV systems. Moovida was formerly know as Elisa. %package core Summary: Media center written in Python: core files Group: Development/Python Requires: pigment-python Requires: python-imaging Requires: python-twisted Requires: python-twisted-web2 Requires: gnome-python-extras Requires: gstreamer0.10-python Requires: gstreamer0.10-plugins-base Requires: python-sqlite2 Requires: pyxdg Requires: python-pkg-resources Suggests: gstreamer0.10-plugins-good Suggests: gstreamer0.10-plugins-bad Suggests: python-gpod Suggests: python-dbus # To fix upgrade: thanks fcrozat (#44627) - AdamW 2008/10 Conflicts: elisa-plugins-good <= 0.3.5 Provides: elisa-core = %{version}-%{release} Obsoletes: elisa-core < %{version}-%{release} %description core Moovida is a project to create an open source cross platform media center solution. Moovida runs on top of the GStreamer multimedia framework and takes full advantage of harware acceleration provided by modern graphic cards by using OpenGL APIs. In addition to personal video recorder functionality (PVR) and Music Jukebox support, Moovida will also interoperate with devices following the DLNA standard like Intel's ViiV systems. This package contains the core Python files for Moovida. It is split from the binaries for packaging reasons. Moovida was formerly known as Elisa. %prep %setup -q -n %{dirname} %patch0 -p1 -b .update_disable %build %install rm -rf %{buildroot} python setup.py install --root=%{buildroot} --single-version-externally-managed --compile --optimize=2 pushd %{buildroot}%{_bindir} ln -s %{oname} %{name} popd # Install some stuff manually because the build process can't. install -D -m644 data/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png # Generate and install 32x32 and 16x16 icons. mkdir -p %{buildroot}%{_iconsdir}/hicolor/{32x32,16x16}/apps convert -scale 32 data/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png convert -scale 16 data/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png # Menu file rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop rm -f %{buildroot}%{_datadir}/applications/%{name}-mobile.desktop cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF [Desktop Entry] Name=Moovida Media Center Comment=Play movies and songs on TV with remote Exec=%{oname} %U StartupWMClass=%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=GNOME;GTK;AudioVideo;Audio;Video;Player;X-MandrivaLinux-CrossDesktop; X-Osso-Service=com.fluendo.elisa EOF #don't want these rm -rf %{buildroot}%{py_puresitedir}/mswin32 rm -f %{buildroot}%{_datadir}/pixmaps/%{name}.png rm -f %{buildroot}%{_datadir}/icons/%{name}.png rm -rf %{buildroot}%{_datadir}/mobile-basic-flash # as there's three plugins packages that aren't interdependent, best # let the core package own the plugins dir - AdamW 2008/02 mkdir -p %{buildroot}%{py_puresitedir}/%{name}/plugins %if %mdkversion < 200900 %post %{update_menus} %{update_icon_cache hicolor} %endif %if %mdkversion < 200900 %postun %{clean_menus} %{clean_icon_cache hicolor} %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS FAQ FIRST_RUN NEWS RELEASE TRANSLATORS %{_bindir}/%{oname} %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_iconsdir}/hicolor/*/apps/* %{_mandir}/man1/%{name}.1* %{_datadir}/dbus-1/services/*.service %files core %defattr(-,root,root) %{py_puresitedir}/%{name} %{py_puresitedir}/%{oname} %{py_puresitedir}/%{oname}-%{fversion}-py%{pyver}-nspkg.pth %{py_puresitedir}/%{oname}-%{fversion}-py%{pyver}.egg-info %changelog * Sun Dec 27 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0.9-1mdv2010.1 + Revision: 482865 - update to new version 1.0.9 * Sat Nov 07 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0.8-1mdv2010.1 + Revision: 462141 - update to new version 1.0.8 * Tue Sep 15 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0.7-1mdv2010.0 + Revision: 443245 - update to new version 1.0.7 * Mon Aug 17 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0.6-1mdv2010.0 + Revision: 417427 - update to new version 1.0.6 * Sun Jul 19 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0.5-1mdv2010.0 + Revision: 397217 - update to new version 1.0.5 * Tue Jun 30 2009 Funda Wang <fwang@mandriva.org> 1.0.2-2mdv2010.0 + Revision: 390784 - fix binary name * Wed Jun 10 2009 Adam Williamson <awilliamson@mandriva.org> 1.0.2-1mdv2010.0 + Revision: 384615 - new release 1.0.2 * Fri May 29 2009 Adam Williamson <awilliamson@mandriva.org> 1.0.1-2mdv2010.0 + Revision: 381117 - try and tighten up the 'disable updates' patch * Fri May 29 2009 Adam Williamson <awilliamson@mandriva.org> 1.0.1-1mdv2010.0 + Revision: 380741 - import moovida