summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/other/mplayerthumbs
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
committerTim Williams <tmw@autotrain.org>2011-10-17 18:47:27 +0100
commit76ef832ce5348d12a871223d4c034c7daeaddb82 (patch)
tree7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/other/mplayerthumbs
parentec2515f058c60d2478a549f58376db628ba556b9 (diff)
downloadtde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz
tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/other/mplayerthumbs')
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/kde3-mplayerthumbs.spec79
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/make_preview_horizontal.patch57
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/mplayerthumbs-0.5b-gcc-4.3.patch12
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/sprocket1-large.pngbin0 -> 687 bytes
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/sprocket1-medium.pngbin0 -> 384 bytes
-rw-r--r--mandriva/2010.2/other/mplayerthumbs/sprocket1-small.pngbin0 -> 246 bytes
6 files changed, 148 insertions, 0 deletions
diff --git a/mandriva/2010.2/other/mplayerthumbs/kde3-mplayerthumbs.spec b/mandriva/2010.2/other/mplayerthumbs/kde3-mplayerthumbs.spec
new file mode 100644
index 000000000..decea4b6f
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/kde3-mplayerthumbs.spec
@@ -0,0 +1,79 @@
+%define oname mplayerthumbs
+
+
+Name: kde3-%{oname}
+Version: 0.5b
+Release: %mkrel 3
+Summary: Thumbnail Generator for Video Files in KDE3 Konqueror, using MPlayer
+Source0: http://xoomer.alice.it/rockman81/mplayerthumbs-%{version}.tar.bz2
+Source1: sprocket1-large.png
+Source2: sprocket1-medium.png
+Source3: sprocket1-small.png
+Patch0: mplayerthumbs-0.5b-gcc-4.3.patch
+Patch1: make_preview_horizontal.patch
+URL: http://kde-apps.org/content/show.php?content=41180
+Group: Graphical desktop/KDE3
+License: GPL
+BuildRoot: %{_tmppath}/%{oname}-buildroot
+Requires: mplayer
+BuildRequires: kde3-macros
+BuildRequires: kdelibs3-devel
+BuildRequires: libstdc++-devel
+
+
+%description
+%{oname} is a thumbnail generator for video files on KDE3 Konqueror.
+Unlike the original konqueror plugin, it does not depend neither on xine nor
+arts, instead it uses only mplayer.
+You can take advantage of this on x86_64 systems, where you can use a 32bit
+mplayer to load win32codecs. To configure the location of your mplayer binary
+launch mplayerthumbsconfig.
+Also it's faster than the xine plugin, since it can seek and play only a
+limited number of frames.
+It catches a random frame from 15% to 70%, checking also how contrasted is the
+image, and dropping bad frames.
+
+
+%prep
+%setup -q -n %{oname}-%{version}
+%patch0 -p0
+%patch1 -p1
+rm -rf src/sprocket*
+cp -R %{SOURCE1} src
+cp -R %{SOURCE2} src
+cp -R %{SOURCE3} src
+
+%build
+
+%configure_kde3
+
+%make
+
+%install
+%makeinstall_std
+%find_lang videopreview && %__mv videopreview.lang %{oname}.lang
+
+%clean
+%__rm -rf %{buildroot}
+
+%files -f %{oname}.lang
+%defattr(-,root,root)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%_kde3_bindir/mplayerthumbsconfig
+%_kde3_libdir/kde3/videopreview.so
+%_kde3_libdir/kde3/videopreview.la
+%_kde3_appsdir/videothumbnail
+%_kde3_datadir/config.kcfg/mplayerthumbs.kcfg
+%_kde3_datadir/services/videopreview.desktop
+%_kde3_docdir/*
+
+%changelog
+* Fri Jul 22 2011 Tim Williams <tim@my-place.org.uk> 0.5b-2mvt2010.2
+- Build for Trinity
+
+* Fri Jul 23 2010 Tim Williams <tim@my-place.org.uk> 0.5b-2mvt2010.1
+- Build for MDV 2010.1
+
+* Thu Dec 24 2009 Atilla ÖNTAŞ <atilla_ontas@mandriva.org> 0.5b-1mvt2010.0
+ - Built for 2010.0
+
diff --git a/mandriva/2010.2/other/mplayerthumbs/make_preview_horizontal.patch b/mandriva/2010.2/other/mplayerthumbs/make_preview_horizontal.patch
new file mode 100644
index 000000000..e2e732e5d
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/make_preview_horizontal.patch
@@ -0,0 +1,57 @@
+diff -Naur mplayerthumbs-0.5b/src/Makefile.am mplayerthumbs-0.5b-yeni/src/Makefile.am
+--- mplayerthumbs-0.5b/src/Makefile.am 2006-06-29 11:48:04.000000000 +0300
++++ mplayerthumbs-0.5b-yeni/src/Makefile.am 2010-01-02 03:15:07.000000000 +0200
+@@ -16,7 +16,7 @@
+ protocol_DATA = videopreview.desktop
+ videopreview_la_LIBADD = $(LIB_KDECORE)
+
+-videothumbnail_DATA = sprocket-small.png sprocket-medium.png sprocket-large.png
++videothumbnail_DATA = sprocket1-small.png sprocket1-medium.png sprocket1-large.png
+ videothumbnaildir = $(kde_datadir)/videothumbnail
+ kde_kcfg_DATA = mplayerthumbs.kcfg
+
+diff -Naur mplayerthumbs-0.5b/src/Makefile.in mplayerthumbs-0.5b-yeni/src/Makefile.in
+--- mplayerthumbs-0.5b/src/Makefile.in 2006-07-10 18:24:13.000000000 +0300
++++ mplayerthumbs-0.5b-yeni/src/Makefile.in 2010-01-02 03:16:02.000000000 +0200
+@@ -364,7 +364,7 @@
+ protocoldir = $(kde_servicesdir)
+ protocol_DATA = videopreview.desktop
+ videopreview_la_LIBADD = $(LIB_KDECORE)
+-videothumbnail_DATA = sprocket-small.png sprocket-medium.png sprocket-large.png
++videothumbnail_DATA = sprocket1-small.png sprocket1-medium.png sprocket1-large.png
+ videothumbnaildir = $(kde_datadir)/videothumbnail
+ kde_kcfg_DATA = mplayerthumbs.kcfg
+ #>- all: all-recursive
+@@ -858,7 +858,7 @@
+ -rm -f videopreview.moc
+
+ #>+ 2
+-KDE_DIST=videopreview.desktop Makefile.in sprocket-medium.png sprocket-small.png videopreview.h mplayerthumbs.kcfgc sprocket-large.png mplayerthumbs.kcfg videopreview.lsm Makefile.am
++KDE_DIST=videopreview.desktop Makefile.in sprocket1-medium.png sprocket1-small.png videopreview.h mplayerthumbs.kcfgc sprocket1-large.png mplayerthumbs.kcfg videopreview.lsm Makefile.am
+
+ #>+ 4
+ clean-kcfg:
+diff -Naur mplayerthumbs-0.5b/src/videopreview.cpp mplayerthumbs-0.5b-yeni/src/videopreview.cpp
+--- mplayerthumbs-0.5b/src/videopreview.cpp 2006-07-10 18:17:11.000000000 +0300
++++ mplayerthumbs-0.5b-yeni/src/videopreview.cpp 2010-01-02 03:14:03.000000000 +0200
+@@ -160,14 +161,15 @@
+ QPixmap sprocket;
+
+ if (pix.height() < 60)
+- sprocket = QPixmap(locate( "data", "videothumbnail/sprocket-small.png" ));
++ sprocket = QPixmap(locate( "data", "videothumbnail/sprocket1-small.png" ));
+ else if (pix.height() < 90)
+- sprocket = QPixmap(locate( "data", "videothumbnail/sprocket-medium.png" ));
++ sprocket = QPixmap(locate( "data", "videothumbnail/sprocket1-medium.png" ));
+ else
+- sprocket = QPixmap(locate( "data", "videothumbnail/sprocket-large.png" ));
++ sprocket = QPixmap(locate( "data", "videothumbnail/sprocket1-large.png" ));
+
+- for (int y = 0; y < pix.height() + sprocket.height(); y += sprocket.height()) {
+- painter.drawPixmap( 0, y, sprocket );
++ for (int x = 0; x < pix.width() + sprocket.width(); x += sprocket.width()) {
++ painter.drawPixmap( x, 0, sprocket );
++ painter.drawPixmap( x, (pix.height() - sprocket.height()), sprocket );
+ }
+
+ // End of xine-artsplugin code
diff --git a/mandriva/2010.2/other/mplayerthumbs/mplayerthumbs-0.5b-gcc-4.3.patch b/mandriva/2010.2/other/mplayerthumbs/mplayerthumbs-0.5b-gcc-4.3.patch
new file mode 100644
index 000000000..48417974d
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/mplayerthumbs-0.5b-gcc-4.3.patch
@@ -0,0 +1,12 @@
+*** src/videopreview.cpp.orig 2006-07-10 17:17:11.000000000 +0200
+--- src/videopreview.cpp 2008-06-11 02:45:40.379823160 +0200
+***************
+*** 20,25 ****
+--- 20,26 ----
+
+ #include "videopreview.h"
+
++ #include <stdlib.h>
+ #include <qfile.h>
+ #include <qpixmap.h>
+ #include <qimage.h>
diff --git a/mandriva/2010.2/other/mplayerthumbs/sprocket1-large.png b/mandriva/2010.2/other/mplayerthumbs/sprocket1-large.png
new file mode 100644
index 000000000..9dca0bd24
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/sprocket1-large.png
Binary files differ
diff --git a/mandriva/2010.2/other/mplayerthumbs/sprocket1-medium.png b/mandriva/2010.2/other/mplayerthumbs/sprocket1-medium.png
new file mode 100644
index 000000000..c57a28ca2
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/sprocket1-medium.png
Binary files differ
diff --git a/mandriva/2010.2/other/mplayerthumbs/sprocket1-small.png b/mandriva/2010.2/other/mplayerthumbs/sprocket1-small.png
new file mode 100644
index 000000000..489086501
--- /dev/null
+++ b/mandriva/2010.2/other/mplayerthumbs/sprocket1-small.png
Binary files differ