Commit 3833f18a authored by Frank Scholz's avatar Frank Scholz
Browse files

a working Maemo version

parent 003b261d
[Desktop Entry]
Version=0.0.1
Encoding=UTF-8
Name=Coherence MediaRenderer
Exec=/usr/bin/mediarenderer
Icon=mediarenderer_icon_26x26
Type=Application
StartupWMClass=MediaRenderer
X-Osso-Service=com.coherence.mediarenderer
X-Osso-Type=application/x-executable
[D-BUS Service]
Name=com.coherence.mediarenderer
Exec=/usr/bin/mediarenderer
mediarenderer (0.0.1-1) experimental; urgency=low
* Initial release
-- Frank Scholz <coherence@beebits.net> Sun, 1 Jul 2007 14:34:15 +0200
Source: mediarenderer
Section: user/multimedia
Priority: optional
Maintainer: Frank Scholz <coherence@beebits.net>
Uploaders: Frank Scholz <coherence@beebits.net>
Build-Depends: debhelper (>= 4.2.32),
cdbs (>= 0.4.28),
python-central (>= 0.5.6),
python-setuptools
Standards-Version: 3.7.2
XS-Python-Version: >= 2.4
Package: python-mediarenderer
Architecture: all
Depends: python (>= 2.4) | python2.5,
python-setuptools,
python-coherence,
python2.5-osso,
python-pygame | python2.5-pygame
XB-Python-Version: ${python:Versions}
Description: a MediaRenderer based on Coherence UPnP/DLNA framework
XB-Maemo-Icon-26:
iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgI
fAhkiAAAAAlwSFlzAAAAvwAAAL8BYqQFcwAAABl0RVh0U29mdHdhcmUAd3d3
Lmlua3NjYXBlLm9yZ5vuPBoAAAKwSURBVEiJvZJdSFRhEIafs7uWIf6QFKFh
RdixhOgHibSWsLIWNNwKQgiySIM0S1Dzou4KuokyKSgDJRSJEjWNIwlChpHi
RVjRHlEyS8kiWRVUXM9+Xfiz6/65K+Z7N/POnOfMfCMJIVgJ6QrvboleEVCz
7khPY570TjVJp1WTtOp/gaQgc4c4fD2FrBdW4r8wDFQDFbIiOpcVxHGL2GSs
ZIf5FuZaMLbOe5+BCqBSVsTQsoAkncaB4lRC1n/D2ArmWpAcNzINNM1CG2RF
TC0FpAMQdj1qfREArUZ4ehGmHK9lAFKBl8CgapJKVZO0Z0kTzQUJOZlExn4A
YONPyCqD8BGvvZ+YmbLKn9UuAIVGW0gsOIkk2QGIsEL2E4ga9PmNaUCZhTZ6
W63OORgbiGOgwzwfWyOg5Cp83e4TZADSgBpgQDVJJapJ2u1zIoDVYX8w3khB
v2rC8Td2OFUDSW0+ga7qwrHa324ggK3HHhFreuDWmdwCaQ0LLtIfTQPlOk9O
X8sFJq0b3PItyVB+HmxBAYEswG2PIM0WTPfrfI9dXTuh9AqMhfoFUYBEWRHf
PYIABjtPMPoj3qPXHwP38uGX+9DOKgXSZEWMgcvVLZCQsNQVe7WH18L9a9C9
zc3SgFxZEXmyIrS5pHcQMNybwFDXUa/+ZDA8vgTt++ZTo0CqrIiHrrU+QQDq
q0LsmvfX1/RQnQF16YxoepJkRTR5qvN43q6KS7/D5kMVi5UBPAcyFVlMuhqL
TgTQ++YytvFwf0rPAM0mVVqzJJBtPIyeptzFyrqBm8BZRRYTrqbBHxBAf1sG
MQerCFnX55z+y8y6nimyaPfV79dEAEIzoNYXodcQYaO8BcxAlCKLnMUg4Ocx
OGt/ZEP2+8qCskB6lgQCPgJ7hSLbA2nye3VO2gWcC7TpHyzT8EfQoVYpAAAA
AElFTkSuQmCC
This package was Debian-ized by Frank Scholz <coherence@beebits.net> on
Sun, 1 Jul 2007 14:33:51 +0200.
It was downloaded from:
<https://coherence.beebits.net/download/>
Upstream Author:
Frank Scholz <coherence at beebits net>
Copyright:
Copyright 2007, Frank Scholz <coherence@beebits.net>
License:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
The Debian packaging is (C) 2007, Frank Scholz <coherence@beebits.net> and is licensed
under the same license as the upstream source.
python-mediarenderer_0.0.1-1_all.deb python optional
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003 Colin Walters <walters@debian.org>
# Description: configure, compile, binary, and clean Python libraries and programs
# This class works for Python packages which use the Python
# "distutils". Note that optionally it can also use the
# dh_python program which does some nice stuff. See
# the manual page for that program for more information.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.
ifndef _cdbs_bootstrap
_cdbs_scripts_path ?= /scratchbox/devkits/debian/libexec
_cdbs_rules_path ?= /scratchbox/devkits/debian/share/cdbs/1/rules
_cdbs_class_path ?= /scratchbox/devkits/debian/share/cdbs/1/class
endif
ifndef _cdbs_class_python_distutils
_cdbs_class_python_distutils := 1
include $(_cdbs_class_path)/langcore.mk$(_cdbs_makefile_suffix)
DEB_PYTHON_COMPILE_VERSION = 2.5
DEB_PYTHON_VERSIONS = 2.1 2.2 2.3 2.4
DEB_PYTHON_SETUP_CMD = setup.py
DEB_PYTHON_CLEAN_ARGS = -a
DEB_PYTHON_BUILD_ARGS = --build-base="$(DEB_BUILDDIR)/build"
DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0
# make: *** No rule to make target `voodoo'. Stop.
DEB_PYTHON_REAL_LIB_PACKAGES := $(strip $(filter $(patsubst %,python%%,$(DEB_PYTHON_VERSIONS)),$(DEB_ALL_PACKAGES)))
# If no versioned python library packages found, grab all simpler ones
ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
DEB_PYTHON_SIMPLE_PACKAGES := $(strip $(filter python-%,$(DEB_ALL_PACKAGES)))
endif
cdbs_python_ver = $(filter-out -%,$(subst -, -,$(patsubst install/python%,%,$@)))
common-build-arch common-build-indep:: common-build-impl
common-build-impl::
cd $(DEB_SRCDIR) && python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
clean::
# Ignore errors from this rule. In a tarball build, the file
# may not exist.
-/usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) clean $(DEB_PYTHON_CLEAN_ARGS)
# See if this package doesn't appear to need to be compiled by multiple
# Python versions.
ifeq (,$(DEB_PYTHON_REAL_LIB_PACKAGES))
common-install-arch common-install-indep:: common-install-impl
common-install-impl::
cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
cd $(DEB_SRCDIR) && install -D data/mediarenderer_icon_26x26.png $(DEB_DESTDIR)usr/share/pixmaps/mediarenderer_icon_26x26.png
cd $(DEB_SRCDIR) && install -D data/mediarenderer.desktop $(DEB_DESTDIR)usr/share/applications/hildon/mediarenderer.desktop
cd $(DEB_SRCDIR) && install -D data/mediarenderer.service $(DEB_DESTDIR)usr/share/dbus-1/services/mediarenderer.service
else
$(patsubst %,install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)) :: install/% :
cd $(DEB_SRCDIR) && /usr/bin/python$(cdbs_python_ver) $(DEB_PYTHON_SETUP_CMD) install --root=debian/$(cdbs_curpkg) $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
cd $(DEB_SRCDIR) && install -D data/mediarenderer_icon_26x26.png $(DEB_DESTDIR)usr/share/pixmaps/mediarenderer_icon_26x26.png
cd $(DEB_SRCDIR) && install -D data/mediarenderer.desktop $(DEB_DESTDIR)usr/share/applications/hildon/mediarenderer.desktop
cd $(DEB_SRCDIR) && install -D data/mediarenderer.service $(DEB_DESTDIR)usr/share/dbus-1/services/mediarenderer.service
endif
$(patsubst %,install/%,$(DEB_PYTHON_SIMPLE_PACKAGES)) :: install/% :
cd $(DEB_SRCDIR) && /usr/bin/python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) install --root="debian/$(cdbs_curpkg)" $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_$(cdbs_curpkg)
cd $(DEB_SRCDIR) && install -D data/mediarenderer_icon_26x26.png $(DEB_DESTDIR)usr/share/pixmaps/mediarenderer_icon_26x26.png
cd $(DEB_SRCDIR) && install -D data/mediarenderer.desktop $(DEB_DESTDIR)usr/share/applications/hildon/mediarenderer.desktop
cd $(DEB_SRCDIR) && install -D data/mediarenderer.service $(DEB_DESTDIR)usr/share/dbus-1/services/mediarenderer.service
# This class can optionally utilize debhelper's "dh_python" command. Just
# be sure you include debhelper.mk before including this file.
ifdef _cdbs_rules_debhelper
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
dh_python -p$(cdbs_curpkg)
endif
endif
#!/usr/bin/make -f
DEB_PYTHON_SYSTEM := pycentral
include /usr/share/cdbs/1/rules/debhelper.mk
include debian/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/utils.mk
# No idea whether this is useful
#DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# Copyright 2007, Frank Scholz <coherence@beebits.net>
import os, platform
import random
......@@ -146,7 +152,7 @@ class MediaRenderer(object):
new_width = int(float(size[0]) * relation)
transform =(new_width,new_height)
if transform is not None:
self.current_image = pygame.transform.scale(flickr_image, transform)
self.current_image = pygame.transform.scale(self.current_image, transform)
self.displaying = self.current_image.get_rect(center=((self.screen.get_width()/2)-1,(self.screen.get_height()/2)-1))
self.screen.blit(self.current_image,self.displaying)
pygame.display.flip()
......@@ -228,6 +234,7 @@ class MediaRenderer(object):
if (event.type == KEYDOWN and event.key == K_F6):
"""switch between fullscreen and app mode """
self.toggle_fullscreen()
if((event.type == KEYDOWN and event.key == K_ESCAPE) or
event.type == QUIT):
......@@ -237,6 +244,9 @@ def main():
if platform.uname()[1].startswith('Nokia'):
fullscreen = FULLSCREEN
import osso
osso_c = osso.Context("com.coherence.mediarenderer", "0.0.1", False)
else:
fullscreen = 1
MediaRenderer(fullscreen=fullscreen)
......
from setuptools import setup, find_packages
__version__ = '0.0.1'
setup(
name="MediaRenderer",
version=__version__,
description="""a MediaRenderer based on the Coherence UPnP/DLNA framework""",
long_description="""
""",
author="Frank Scholz",
author_email='coherence@beebits.net',
license = "MIT",
packages = find_packages(),
scripts = ['mediarenderer'],
url = "http://coherence.beebits.net",
download_url = 'https://coherence.beebits.net/download/MediaRenderer-%s.tar.gz' % __version__,
keywords=['UPnP', 'DLNA', 'multimedia', 'gstreamer'],
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Environment :: Maemo',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
]
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment