Hello community, here is the log from the commit of package kbreakout for openSUSE:Factory checked in at 2015-10-03 20:18:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kbreakout (Old) and /work/SRC/openSUSE:Factory/.kbreakout.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kbreakout" Changes: -------- --- /work/SRC/openSUSE:Factory/kbreakout/kbreakout.changes 2015-07-14 17:32:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.kbreakout.new/kbreakout.changes 2015-10-03 20:18:58.000000000 +0200 @@ -1,0 +2,23 @@ +Sun Sep 13 19:01:15 UTC 2015 - tittiatc...@gmail.com + +- Update to KDE Applications 15.08.1 + * KDE Applications 15.08.1 + * https://www.kde.org/announcements/announce-applications-15.08.1.php + + +------------------------------------------------------------------- +Wed Aug 19 19:42:49 UTC 2015 - cgiboude...@gmx.com + +- Update to KDE Applications 15.08.0 + * KDE Applications 15.08.0 + * https://www.kde.org/announcements/announce-applications-15.08.0.php + +------------------------------------------------------------------- +Fri Aug 7 06:47:58 UTC 2015 - tittiatc...@gmail.com + +- Update to KDE Applications 15.07.90 + * KDE Applications 15.08.0 RC1 + * https://www.kde.org/announcements/announce-applications-15.07.90.php + + +------------------------------------------------------------------- Old: ---- kbreakout-15.04.3.tar.xz New: ---- kbreakout-15.08.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kbreakout.spec ++++++ --- /var/tmp/diff_new_pack.pKwF30/_old 2015-10-03 20:18:59.000000000 +0200 +++ /var/tmp/diff_new_pack.pKwF30/_new 2015-10-03 20:18:59.000000000 +0200 @@ -45,7 +45,7 @@ License: GPL-2.0+ Group: Amusements/Games/Action/Breakout Url: http://www.kde.org -Version: 15.04.3 +Version: 15.08.1 Release: 0 Source0: kbreakout-%{version}.tar.xz Obsoletes: %{name}5 < %{version} ++++++ kbreakout-15.04.3.tar.xz -> kbreakout-15.08.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/CMakeLists.txt new/kbreakout-15.08.1/CMakeLists.txt --- old/kbreakout-15.04.3/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) set (QT_MIN_VERSION "5.3.0") -find_package(ECM 1.3.0 REQUIRED CONFIG) +find_package(ECM 1.7.0 REQUIRED CONFIG) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg) @@ -30,6 +30,7 @@ include(KDEInstallDirs) include(KDECompilerSettings) include(KDECMakeSettings) +include(ECMAddAppIcon) add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII") @@ -39,5 +40,5 @@ add_subdirectory( themes ) add_subdirectory( levelsets ) add_subdirectory(doc) -install( PROGRAMS org.kde.kbreakout.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( PROGRAMS org.kde.kbreakout.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/doc/CMakeLists.txt new/kbreakout-15.08.1/doc/CMakeLists.txt --- old/kbreakout-15.04.3/doc/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/doc/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -1,4 +1,4 @@ ########### install files ############### # # -kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kbreakout) +kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kbreakout) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/levelsets/CMakeLists.txt new/kbreakout-15.08.1/levelsets/CMakeLists.txt --- old/kbreakout-15.04.3/levelsets/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/levelsets/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -1 +1 @@ -install( FILES default.levelset DESTINATION ${DATA_INSTALL_DIR}/kbreakout/levelsets ) \ No newline at end of file +install( FILES default.levelset DESTINATION ${KDE_INSTALL_DATADIR}/kbreakout/levelsets ) \ No newline at end of file Files old/kbreakout-15.04.3/pics/128-apps-kbreakout.png and new/kbreakout-15.08.1/pics/128-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/16-apps-kbreakout.png and new/kbreakout-15.08.1/pics/16-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/22-apps-kbreakout.png and new/kbreakout-15.08.1/pics/22-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/32-apps-kbreakout.png and new/kbreakout-15.08.1/pics/32-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/48-apps-kbreakout.png and new/kbreakout-15.08.1/pics/48-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/64-apps-kbreakout.png and new/kbreakout-15.08.1/pics/64-apps-kbreakout.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/pics/CMakeLists.txt new/kbreakout-15.08.1/pics/CMakeLists.txt --- old/kbreakout-15.04.3/pics/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/pics/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -1 +1 @@ -ecm_install_icons( ICONS hi128-apps-kbreakout.png hi16-apps-kbreakout.png hi22-apps-kbreakout.png hi32-apps-kbreakout.png hi48-apps-kbreakout.png hi64-apps-kbreakout.png DESTINATION ${ICON_INSTALL_DIR} ) +ecm_install_icons( ICONS 128-apps-kbreakout.png 16-apps-kbreakout.png 22-apps-kbreakout.png 32-apps-kbreakout.png 48-apps-kbreakout.png 64-apps-kbreakout.png DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) Files old/kbreakout-15.04.3/pics/hi128-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi128-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/hi16-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi16-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/hi22-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi22-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/hi32-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi32-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/hi48-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi48-apps-kbreakout.png differ Files old/kbreakout-15.04.3/pics/hi64-apps-kbreakout.png and new/kbreakout-15.08.1/pics/hi64-apps-kbreakout.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/CMakeLists.txt new/kbreakout-15.08.1/src/CMakeLists.txt --- old/kbreakout-15.04.3/src/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -13,12 +13,13 @@ kconfig_add_kcfg_files(kbreakout_SRCS settings.kcfgc ) -#kde4_add_app_icon(kbreakout_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../pics/hi*-apps-kbreakout.png") +file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../pics/*-apps-kbreakout.png") +ecm_add_app_icon(kbreakout_SRCS ICONS ${ICONS_SRCS}) add_executable(kbreakout ${kbreakout_SRCS}) target_link_libraries(kbreakout KF5KDEGames KF5KDEGamesPrivate Qt5::Xml KF5::DBusAddons KF5::XmlGui) -install(TARGETS kbreakout ${INSTALL_TARGETS_DEFAULT_ARGS} ) -install(FILES kbreakoutui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kbreakout) -install(DIRECTORY qml DESTINATION ${DATA_INSTALL_DIR}/kbreakout) +install(TARGETS kbreakout ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) +install(FILES kbreakoutui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kbreakout) +install(DIRECTORY qml DESTINATION ${KDE_INSTALL_DATADIR}/kbreakout) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/canvaswidget.cpp new/kbreakout-15.08.1/src/canvaswidget.cpp --- old/kbreakout-15.04.3/src/canvaswidget.cpp 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/canvaswidget.cpp 2015-07-03 23:09:57.000000000 +0200 @@ -97,6 +97,16 @@ QMetaObject::invokeMethod(rootObject(), "fire"); } +void CanvasWidget::cheatSkipLevel() +{ + QMetaObject::invokeMethod(rootObject(), "cheatSkipLevel"); +} + +void CanvasWidget::cheatAddLife() +{ + QMetaObject::invokeMethod(rootObject(), "cheatAddLife"); +} + void CanvasWidget::setGamePaused(bool paused) { QMetaObject::invokeMethod(rootObject(), "setGamePaused", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/canvaswidget.h new/kbreakout-15.08.1/src/canvaswidget.h --- old/kbreakout-15.04.3/src/canvaswidget.h 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/canvaswidget.h 2015-07-03 23:09:57.000000000 +0200 @@ -39,6 +39,8 @@ public slots: void fire(); + void cheatSkipLevel(); + void cheatAddLife(); void setGamePaused(bool paused); void updateFireShortcut(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/mainwindow.cpp new/kbreakout-15.08.1/src/mainwindow.cpp --- old/kbreakout-15.04.3/src/mainwindow.cpp 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/mainwindow.cpp 2015-07-03 23:09:57.000000000 +0200 @@ -57,6 +57,8 @@ { gameEngine = new GameEngine(this); + m_cheatsEnabled = !qgetenv("KDE_DEBUG").isEmpty(); + connect(canvasWidget, &CanvasWidget::focusLost, this, &MainWindow::pauseGame); connect(canvasWidget, &CanvasWidget::levelComplete, gameEngine, &GameEngine::loadNextLevel); @@ -121,6 +123,22 @@ connect(fireAction, &QAction::changed, canvasWidget, &CanvasWidget::updateFireShortcut); actionCollection()->addAction(QLatin1String("fire"), fireAction); + if (m_cheatsEnabled) { + QAction *cheatSkipLevelAction = new QAction(this); + cheatSkipLevelAction->setText(i18n("Skip level")); + actionCollection()->setDefaultShortcut(cheatSkipLevelAction, Qt::Key_S); + cheatSkipLevelAction->setIcon(QIcon::fromTheme(QLatin1String("kbreakout"))); + connect(cheatSkipLevelAction, &QAction::triggered, this, &MainWindow::cheatSkipLevel); + actionCollection()->addAction(QLatin1String("cheatSkipLevel"), cheatSkipLevelAction); + + QAction *cheatAddLifeAction = new QAction(this); + cheatAddLifeAction->setText(i18n("Add life")); + actionCollection()->setDefaultShortcut(cheatAddLifeAction, Qt::Key_L); + cheatAddLifeAction->setIcon(QIcon::fromTheme(QLatin1String("kbreakout"))); + connect(cheatAddLifeAction, &QAction::triggered, this, &MainWindow::cheatAddLife); + actionCollection()->addAction(QLatin1String("cheatAddLife"), cheatAddLifeAction); + } + pauseAction = KStandardGameAction::pause(this, SLOT(setGamePaused(bool)), actionCollection()); // set custom keys @@ -229,6 +247,24 @@ } } +void MainWindow::cheatSkipLevel() +{ + if (pauseAction->isChecked()) { + pauseAction->activate(QAction::Trigger); + } else { + canvasWidget->cheatSkipLevel(); + } +} + +void MainWindow::cheatAddLife() +{ + if (pauseAction->isChecked()) { + pauseAction->activate(QAction::Trigger); + } else { + canvasWidget->cheatAddLife(); + } +} + void MainWindow::viewFullScreen(bool fullScreen) { KToggleFullScreenAction::setFullScreen(this, fullScreen); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/mainwindow.h new/kbreakout-15.08.1/src/mainwindow.h --- old/kbreakout-15.04.3/src/mainwindow.h 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/mainwindow.h 2015-07-03 23:09:57.000000000 +0200 @@ -38,6 +38,8 @@ void showHighscores(); void startNewGame(); void fire(); + void cheatSkipLevel(); + void cheatAddLife(); // calls the action void pauseGame(); // called by the action @@ -46,6 +48,8 @@ void handleMousePressed(); private: + bool m_cheatsEnabled; + void setupActions(); KToggleAction *pauseAction; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/qml/logic.js new/kbreakout-15.08.1/src/qml/logic.js --- old/kbreakout-15.04.3/src/qml/logic.js 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/qml/logic.js 2015-07-03 23:09:57.000000000 +0200 @@ -326,6 +326,12 @@ randomCounter = 0; } +function addLife() { + if (lives < Globals.MAXIMUM_LIVES) { + lives++; + } +} + function setGamePaused(paused) { if (gameOver || gameWon || canvas.paused==paused) return; canvas.paused = paused; @@ -794,9 +800,7 @@ score += 1000 - Globals.GIFT_SCORE; } else if (type == "GiftAddLife") { - if (lives < Globals.MAXIMUM_LIVES) { - lives++; - } + addLife(); } else if (type == "GiftLoseLife") { handleDeath(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/src/qml/main.qml new/kbreakout-15.08.1/src/qml/main.qml --- old/kbreakout-15.04.3/src/qml/main.qml 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/src/qml/main.qml 2015-07-03 23:09:57.000000000 +0200 @@ -230,6 +230,14 @@ Logic.fireBall(); } + function cheatAddLife() { + Logic.addLife(); + } + + function cheatSkipLevel() { + Logic.loadNextLevel(); + } + Timer { id: burnBricksTimer property variant target diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/themes/CMakeLists.txt new/kbreakout-15.08.1/themes/CMakeLists.txt --- old/kbreakout-15.04.3/themes/CMakeLists.txt 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/themes/CMakeLists.txt 2015-07-03 23:09:57.000000000 +0200 @@ -1 +1 @@ -install( FILES default.desktop egyptian_breakout_preview.png egyptianbreakout.svgz alienbreakout.svgz alienbreakout.desktop alien_preview.png web20.svgz web20.desktop web20_preview.png crystal.desktop crystal.svgz crystal_preview.png simple.svgz simple.desktop simple_preview.png IceWorld.svgz IceWorld.desktop IceWorld_preview.png DESTINATION ${DATA_INSTALL_DIR}/kbreakout/themes ) +install( FILES default.desktop egyptian_breakout_preview.png egyptianbreakout.svgz alienbreakout.svgz alienbreakout.desktop alien_preview.png web20.svgz web20.desktop web20_preview.png crystal.desktop crystal.svgz crystal_preview.png simple.svgz simple.desktop simple_preview.png IceWorld.svgz IceWorld.desktop IceWorld_preview.png DESTINATION ${KDE_INSTALL_DATADIR}/kbreakout/themes ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kbreakout-15.04.3/themes/alienbreakout.desktop new/kbreakout-15.08.1/themes/alienbreakout.desktop --- old/kbreakout-15.04.3/themes/alienbreakout.desktop 2015-06-01 13:56:39.000000000 +0200 +++ new/kbreakout-15.08.1/themes/alienbreakout.desktop 2015-07-03 23:09:57.000000000 +0200 @@ -1,5 +1,6 @@ [KGameTheme] Name=Alien Breakout +Name[ast]=Breakout d'alien Name[bs]=Probijanje aliena Name[ca]=Breakout alien Name[ca@valencia]=Breakout alien @@ -41,6 +42,7 @@ Name[zh_CN]=异形打砖块 Name[zh_TW]=異形式打磚塊 Description=Breakout before the aliens do. +Description[ast]=Escapa enantes que los aliens lo faigan Description[bs]=Bježi prije aliena. Description[ca]=El Breakout abans que el fessin en aliens. Description[ca@valencia]=El Breakout abans que el fessin en aliens.