Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
38dac6d6ce dist-git conversion 2010-07-29 15:17:27 +00:00
Bill Nottingham
e91e826bd9 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:16:38 +00:00
d587ef8da1 add playnext patch (fixes #539608) 2009-11-21 15:02:14 +00:00
Christoph Wickert
2c30a6e84a initial build of whaawmp for this branch 2009-10-13 16:48:17 +00:00
586f7c9bc9 Initialize branch F-11 for whaawmp 2009-10-13 16:29:42 +00:00
6 changed files with 120 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
whaawmp-0.2.12.1.tar.bz2

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: whaawmp
# $Id$
NAME := whaawmp
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
259b61cfa87bbba54dcd9579a815a421 whaawmp-0.2.12.1.tar.bz2

17
whaawmp-playnext.patch Normal file
View file

@ -0,0 +1,17 @@
--- src/gui/main.py 2009-07-15 08:21:08.000000000 +0200
+++ src/gui/main.py2 2009-11-21 14:40:20.736483935 +0100
@@ -370,9 +370,11 @@
def playNext(self, widget=None, stop=True):
## Plays the next file in the queue (if it exists).
if (self.wTree.get_object("mnuiRandom").get_active()):
- # If random is set, pick a random item from the queue.
- # -1 because randint includes boundaries.
- filename = queue.getTrackRemove(randint(0, queue.length()-1))
+ # If queue is empty randint(0,-1) will crash
+ if queue:
+ # If random is set, pick a random item from the queue.
+ # -1 because randint includes boundaries.
+ filename = queue.getTrackRemove(randint(0, queue.length()-1))
else:
# Otherwise just get the next item.
filename = queue.getNextTrackRemove()

101
whaawmp.spec Normal file
View file

@ -0,0 +1,101 @@
# Review: https://bugzilla.redhat.com/show_bug.cgi?id=513420
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: whaawmp
Version: 0.2.12.1
Release: 3%{?dist}
Summary: Lightweight Media Player
Group: Applications/Multimedia
License: GPLv3+
URL: http://home.gna.org/whaawmp/
Source0: http://download.gna.org/whaawmp/%{version}/whaawmp-%{version}.tar.bz2
# fedora bug #539608
Patch0: %{name}-playnext.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: desktop-file-utils
BuildRequires: gettext intltool
Requires: python >= 2.5, pygtk2-libglade >= 2.10, pyxdg
Requires: dbus-python
Requires: gstreamer-python >= 0.10, gstreamer-plugins-good >= 0.10
%description
Whaaw! Media Player is a lightweight media player that supports fullscreen
mode, seeking, changing video colour settings and more. It will play any audio
or video files that GStreamer can play. It is intended to be a basic media
player without any GNOME dependencies.
%prep
%setup -q
%patch0
# remove shebangs
for Files in src/thumbnailer.py src/whaawmp.py; do
%{__sed} -i.orig -e 1d ${Files}
touch -r ${Files}.orig ${Files}
%{__rm} ${Files}.orig
done
# fix desktop file
sed -i 's!audio/x-wav;audio/x-wav;!audio/x-wav;!' %{name}.desktop
sed -i 's!False!false!' %{name}.desktop
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
desktop-file-install \
--delete-original \
--remove-key=Encoding \
--remove-category=Application \
--add-category=GTK \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING README TODO
%{_bindir}/%{name}
%{_bindir}/whaaw-thumbnailer
%{python_sitelib}/%{name}*.egg-info
%{python_sitelib}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
# We need to own this dir although it's already owned by Thunar
%dir %{_datadir}/thumbnailers/
%{_datadir}/thumbnailers/whaaw-thumbnailer.desktop
%changelog
* Sat Nov 21 2009 Thomas Spura <tomspur@fedoraproject.org> - 0.2.12.1-3
- add playnext patch (fixes #539608)
* Sun Sep 06 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.12.1-2
- Rework summary and description
* Thu Jul 16 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.12.1-1
- Update to 0.2.12.1
* Sat Dec 20 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.10.1-1
- Update to 0.2.10.1
* Sun Jun 22 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.10-1
- Initial Fedora Package