From 4d94540ff2ef0c499bae32b9498ae1767bc26c44207ab2f44f76ee83fdafca79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= <matthias@mailaender.name>
Date: Tue, 2 Oct 2012 22:56:21 +0000
Subject: [PATCH] Accepting request 136622 from
 home:Mailaender:branches:multimedia:apps

update to 1.9
fix build for openSUSE >= 12.2

OBS-URL: https://build.opensuse.org/request/show/136622
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/minitube?expand=0&rev=8
---
 _service                                  |  7 -------
 _service:download_url:minitube-1.8.tar.gz |  3 ---
 minitube-1.9.tar.gz                       |  3 +++
 minitube.changes                          | 18 ++++++++++++++++++
 minitube.spec                             | 19 +++++++++++++++++--
 qtlocalpeer.patch                         | 10 ++++++++++
 6 files changed, 48 insertions(+), 12 deletions(-)
 delete mode 100644 _service
 delete mode 100644 _service:download_url:minitube-1.8.tar.gz
 create mode 100644 minitube-1.9.tar.gz
 create mode 100644 qtlocalpeer.patch

diff --git a/_service b/_service
deleted file mode 100644
index a7969e3..0000000
--- a/_service
+++ /dev/null
@@ -1,7 +0,0 @@
-<services>
-  <service name="download_url">
-    
-    
-    
-  <param name="host">flavio.tordini.org</param><param name="protocol">http</param><param name="path">/files/minitube/minitube-1.8.tar.gz</param></service>
-</services>
\ No newline at end of file
diff --git a/_service:download_url:minitube-1.8.tar.gz b/_service:download_url:minitube-1.8.tar.gz
deleted file mode 100644
index e353320..0000000
--- a/_service:download_url:minitube-1.8.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:afcbe98c48866f629e0564c1b55c29b76a6d1a97c50e73e094d52d77bf4fcdb2
-size 592111
diff --git a/minitube-1.9.tar.gz b/minitube-1.9.tar.gz
new file mode 100644
index 0000000..708c034
--- /dev/null
+++ b/minitube-1.9.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8b9437b107b0d8aecbc8af4624be1263115d4679cc86ae3cf5c2ceb36ac91675
+size 608884
diff --git a/minitube.changes b/minitube.changes
index ed520d1..933a7b1 100644
--- a/minitube.changes
+++ b/minitube.changes
@@ -1,3 +1,21 @@
+-------------------------------------------------------------------
+Tue Oct  2 15:51:34 UTC 2012 - mailaender@opensuse.org
+
+- updated to 1.9.0
+  * Adapted to YouTube changes
+  * New search filter UI. Filter results by publication date, video duration and video quality.
+  * Sort by rating
+  * Search spell suggestions: “Did you mean…”
+  * New downloads are now added at the top of the list
+  * Video definition indicator while downloading videos
+  * Simple integration with Buffer app
+  * Better fullscreen experience on the Mac: sidebar shows when the mouse hits the left side, mouse and playlist autohide
+  * Compatible with OS X Mountain Lion Gatekeeper
+  * Partial Retina Display support. Still using 1x bitmaps because of Qt not being ready
+  * OS X Mountain Lion notifications when a download finishes
+  * Fixed flickering in fullscreen controls on Linux, also playlist and toolbar now autohide
+  * New and updated translations. Thanks to all the translators involved! 
+  
 -------------------------------------------------------------------
 Thu Aug 23 11:29:05 UTC 2012 - mailaender@opensuse.org
 
diff --git a/minitube.spec b/minitube.spec
index 1e5ba4e..5a0162f 100644
--- a/minitube.spec
+++ b/minitube.spec
@@ -1,15 +1,29 @@
 #
+# spec file for package minitube
+#
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 Name:           minitube
-Version:        1.8
+Version:        1.9
 Release:        1
-License:        GPLv3+
+License:        GPL-3.0+
 Summary:        Native Youtube Client
 Url:            http://flavio.tordini.org/minitube
 Group:          Productivity/Multimedia/Video/Players
 Source:         http://flavio.tordini.org/files/minitube/%{name}-%{version}.tar.gz
+Patch0:         qtlocalpeer.patch
 BuildRequires:  libqt4-devel >= 4.5.0
 BuildRequires:  phonon-devel
 BuildRequires:  update-desktop-files
@@ -31,6 +45,7 @@ Author:
 
 %prep
 %setup -q -n minitube
+%patch0
 
 %build
 qmake PREFIX=%{_prefix}
diff --git a/qtlocalpeer.patch b/qtlocalpeer.patch
new file mode 100644
index 0000000..6d15838
--- /dev/null
+++ b/qtlocalpeer.patch
@@ -0,0 +1,10 @@
+--- src/qtsingleapplication/qtlocalpeer.cpp.orig	2012-09-27 12:17:03.000000000 +0200
++++ src/qtsingleapplication/qtlocalpeer.cpp	2012-10-02 18:05:01.722583491 +0200
+@@ -46,6 +46,7 @@
+ 
+ 
+ #include "qtlocalpeer.h"
++#include "unistd.h"
+ #include <QtCore/QCoreApplication>
+ #include <QtCore/QTime>
+ #include <QDebug>