diff --git a/tupitube.changes b/tupitube.changes index b2ac6c9..05f2313 100644 --- a/tupitube.changes +++ b/tupitube.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 26 12:25:31 UTC 2022 - Luigi Baldoni + +- Future proof tupitube.quazip5.patch and fix Factory build + ------------------------------------------------------------------- Mon Dec 6 10:05:57 UTC 2021 - Hans-Peter Jansen diff --git a/tupitube.quazip5.patch b/tupitube.quazip5.patch index 4380a66..82a8b1f 100644 --- a/tupitube.quazip5.patch +++ b/tupitube.quazip5.patch @@ -1,21 +1,23 @@ -diff -Nur tupitube.desk/configure.tests/quazip/main.cpp new/configure.tests/quazip/main.cpp ---- tupitube.desk/configure.tests/quazip/main.cpp 2020-08-15 03:55:13.000000000 +0200 -+++ new/configure.tests/quazip/main.cpp 2020-11-08 08:21:32.051836695 +0100 +Index: tupitube.desk/configure.tests/quazip/main.cpp +=================================================================== +--- tupitube.desk.orig/configure.tests/quazip/main.cpp ++++ tupitube.desk/configure.tests/quazip/main.cpp @@ -33,8 +33,8 @@ * along with this program. If not, see . * ***************************************************************************/ -#include "quazip/quazip.h" -#include "quazip/quazipfile.h" -+#include "QuaZip-Qt5-1.2/quazip/quazip.h" -+#include "QuaZip-Qt5-1.2/quazip/quazipfile.h" ++#include ++#include #include int main() -diff -Nur tupitube.desk/qonf/test.rb new/qonf/test.rb ---- tupitube.desk/qonf/test.rb 2020-08-15 03:55:13.000000000 +0200 -+++ new/qonf/test.rb 2020-11-08 08:21:42.415752963 +0100 -@@ -103,7 +103,7 @@ +Index: tupitube.desk/qonf/test.rb +=================================================================== +--- tupitube.desk.orig/qonf/test.rb ++++ tupitube.desk/qonf/test.rb +@@ -103,7 +103,7 @@ class Test qmakeLine = "'LIBS += #{extraLib}'" qmakeLine += " 'INCLUDEPATH += #{extraInclude}'" else @@ -24,7 +26,7 @@ diff -Nur tupitube.desk/qonf/test.rb new/qonf/test.rb qmakeLine = "'LIBS += #{extraLib}'" end else -@@ -165,10 +165,10 @@ +@@ -165,10 +165,10 @@ class Test if conf.hasArgument?("with-quazip") config.addLib("-lquazip") else @@ -37,9 +39,10 @@ diff -Nur tupitube.desk/qonf/test.rb new/qonf/test.rb parser.defines.each { |define| config.addDefine(define) -diff -Nur tupitube.desk/src/libtupi/tuppackagehandler.cpp new/src/libtupi/tuppackagehandler.cpp ---- tupitube.desk/src/libtupi/tuppackagehandler.cpp 2020-08-15 03:55:40.000000000 +0200 -+++ new/src/libtupi/tuppackagehandler.cpp 2020-11-08 08:21:32.051836695 +0100 +Index: tupitube.desk/src/libtupi/tuppackagehandler.cpp +=================================================================== +--- tupitube.desk.orig/src/libtupi/tuppackagehandler.cpp ++++ tupitube.desk/src/libtupi/tuppackagehandler.cpp @@ -34,9 +34,9 @@ ***************************************************************************/ @@ -47,9 +50,9 @@ diff -Nur tupitube.desk/src/libtupi/tuppackagehandler.cpp new/src/libtupi/tuppac -#include "quazip/quazip.h" -#include "quazip/quazipfile.h" -#include "quazip/JlCompress.h" -+#include "QuaZip-Qt5-1.2/quazip/quazip.h" -+#include "QuaZip-Qt5-1.2/quazip/quazipfile.h" -+#include "QuaZip-Qt5-1.2/quazip/JlCompress.h" ++#include ++#include ++#include TupPackageHandler::TupPackageHandler() { diff --git a/tupitube.spec b/tupitube.spec index 9afbf26..35655a8 100644 --- a/tupitube.spec +++ b/tupitube.spec @@ -1,7 +1,7 @@ # # spec file for package tupitube # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2016 Packman Team # # All modifications and additions to the file contributed by third parties @@ -102,8 +102,12 @@ dos2unix src/shell/html/css/tupitube.css # Add path to ffmpeg ffmpeg_include=$(pkg-config --cflags-only-I libavutil) + +# Add Quazip path +quazip_include=$(pkg-config --cflags-only-I quazip1-qt5) + find . -type f -name \*.pro | while read f; do -echo "QMAKE_CXXFLAGS += %{optflags} ${ffmpeg_include}" >> "$f" +echo "QMAKE_CXXFLAGS += %{optflags} ${ffmpeg_include} ${quazip_include}" >> "$f" done # Remove shebang