commit chessx for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package chessx for openSUSE:Factory checked in at 2021-02-26 21:59:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/chessx (Old) and /work/SRC/openSUSE:Factory/.chessx.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "chessx" Fri Feb 26 21:59:46 2021 rev:11 rq:875224 version:1.5.6 Changes: -------- --- /work/SRC/openSUSE:Factory/chessx/chessx.changes 2021-01-07 21:22:00.241155823 +0100 +++ /work/SRC/openSUSE:Factory/.chessx.new.2378/chessx.changes 2021-02-26 21:59:47.575838815 +0100 @@ -1,0 +2,37 @@ +Tue Feb 23 07:42:44 UTC 2021 - Luigi Baldoni <aloisio@gmx.com> + +- Update to version 1.5.6 + New features: + * Implement read support for Scid binary database (*.si4) + * Spray fields in pen mode by pressing alt+Left Mouse + * Add option to hide special annotations in view + * Show variation arrows + * Engine draws an arrow for its best move + * Support online chess.com / lichess data access + * Scroll through game with ChartWidget + * Display eval annotations in the chart (%eval) + * Open file from scratchpad / Drag file names to scratchpad + * Visualization training + * Indicate Draw percentage in OpeningTree + Bug fixes: + * Opening tree - switching between Database and Filter did not + trigger tree update + * Display of symbolic pieces in OpeningTreeWidget and + variation list + * Hotkeys are not serialized properly + * Duplicate hotkeys for menus with same name + * Do not ask to save clipboard + * Dark theme handling + Changed: + * Raise scratchpad when New or Open is invoked + * Resize text fonts with Ctrl+ Ctrl- or Ctrl+Alt+Wheel + * Increase max size for writable databases + * Disable Raise of game list after filtering +- Switch to github tarball (which is complete of dependencies) +- Switch to cmake build +- Drop chessx-translations.patch (no longer necessary) +- Reworked chessx-install.patch and chessx-use_system_quazip.patch + for cmake +- Switch to _service to remedy to incomplete upstream tarball + +------------------------------------------------------------------- Old: ---- chessx-1.5.4.tgz chessx-translations.patch New: ---- _service chessx-1.5.6.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chessx.spec ++++++ --- /var/tmp/diff_new_pack.jLb3vo/_old 2021-02-26 21:59:48.335839483 +0100 +++ /var/tmp/diff_new_pack.jLb3vo/_new 2021-02-26 21:59:48.339839486 +0100 @@ -1,7 +1,7 @@ # # spec file for package chessx # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,30 +17,33 @@ Name: chessx -Version: 1.5.4 +Version: 1.5.6 Release: 0 Summary: Chess database License: GPL-2.0-only Group: Amusements/Games/Board/Chess URL: http://chessx.sourceforge.net -Source0: https://sourceforge.net/projects/chessx/files/chessx/%{version}/chessx-%{version}.tgz -# PATCH-FIX-UPSTREAM chessx-translations.patch aloisio@gmx.com -- remove unused translations -Patch0: chessx-translations.patch +# was https://sourceforge.net/projects/chessx/files/chessx/%%{version}/chessx-%%{version}.tar.gz +# using _service until https://sourceforge.net/p/chessx/bugs/287/ is fixed +Source0: %{name}-%{version}.tar.xz # PATCH-FEATURE-UPSTREAM chessx-install.patch aloisio@gmx.com -- make install work on linux Patch1: chessx-install.patch # PATCH-FEATURE-OPENSUSE chessx-use_system_quazip.patch Patch2: chessx-use_system_quazip.patch +BuildRequires: cmake BuildRequires: fdupes -BuildRequires: libqt5-linguist BuildRequires: pkgconfig -BuildRequires: pkgconfig(Qt5Concurrent) -BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5Multimedia) -BuildRequires: pkgconfig(Qt5PrintSupport) -BuildRequires: pkgconfig(Qt5Svg) -BuildRequires: pkgconfig(Qt5TextToSpeech) -BuildRequires: pkgconfig(Qt5Widgets) -BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: cmake(Qt5Concurrent) +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5LinguistTools) +BuildRequires: cmake(Qt5Multimedia) +BuildRequires: cmake(Qt5OpenGL) +BuildRequires: cmake(Qt5PrintSupport) +BuildRequires: cmake(Qt5Svg) +BuildRequires: cmake(Qt5TextToSpeech) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5Xml) %if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150200 BuildRequires: pkgconfig(quazip1-qt5) %else @@ -63,20 +66,14 @@ * Observe and play games on FICS %prep -%autosetup -N -%patch0 -p1 -%patch1 -p1 -%if (0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200) -%patch2 -p1 -%endif -chmod -x data/images/circle_*.svg +%autosetup -p1 %build -%qmake5 -%make_build +%cmake +%cmake_build %install -%qmake5_install +%cmake_install find %{buildroot} -size 0 -delete %fdupes %{buildroot} ++++++ _service ++++++ <services> <service mode="disabled" name="tar_scm"> <param name="url">https://github.com/Isarhamster/chessx.git</param> <param name="scm">git</param> <param name="exclude">.git</param> <param name="exclude">dep/scid/code/azure-pipelines.yml</param> <param name="exclude">dep/scid/code/bitmaps2</param> <param name="exclude">dep/scid/code/bitmaps</param> <param name="exclude">dep/scid/code/books</param> <param name="exclude">dep/scid/code/ChangeLog</param> <param name="exclude">dep/scid/code/.clang-format</param> <param name="exclude">dep/scid/code/CMakeLists.txt</param> <param name="exclude">dep/scid/code/configure</param> <param name="exclude">dep/scid/code/COPYING</param> <param name="exclude">dep/scid/code/Doxyfile</param> <param name="exclude">dep/scid/code/engines</param> <param name="exclude">dep/scid/code/.gitignore</param> <param name="exclude">dep/scid/code/gtest</param> <param name="exclude">dep/scid/code/help</param> <param name="exclude">dep/scid/code/html</param> <param name="exclude">dep/scid/code/img</param> <param name="exclude">dep/scid/code/InnoSetup.iss</param> <param name="exclude">dep/scid/code/Makefile.conf</param> <param name="exclude">dep/scid/code/Makefile.vc</param> <param name="exclude">dep/scid/code/README.md</param> <param name="exclude">dep/scid/code/resources</param> <param name="exclude">dep/scid/code/scid.eco</param> <param name="exclude">dep/scid/code/scid_es.eco</param> <param name="exclude">dep/scid/code/scid_fr.eco</param> <param name="exclude">dep/scid/code/scripts</param> <param name="exclude">dep/scid/code/sounds</param> <param name="exclude">dep/scid/code/src/codec_memory.h</param> <param name="exclude">dep/scid/code/src/codec_pgn.h</param> <param name="exclude">dep/scid/code/src/codec_proxy.h</param> <param name="exclude">dep/scid/code/src/crosstab.cpp</param> <param name="exclude">dep/scid/code/src/crosstab.h</param> <param name="exclude">dep/scid/code/src/dbasepool.cpp</param> <param name="exclude">dep/scid/code/src/dbasepool.h</param> <param name="exclude">dep/scid/code/src/egtb/probe.txt</param> <param name="exclude">dep/scid/code/src/egtb/tbdecode.c</param> <param name="exclude">dep/scid/code/src/egtb/tbindex.cpp</param> <param name="exclude">dep/scid/code/src/egtb/URL</param> <param name="exclude">dep/scid/code/src/engine.cpp</param> <param name="exclude">dep/scid/code/src/engine.h</param> <param name="exclude">dep/scid/code/src/filter.cpp</param> <param name="exclude">dep/scid/code/src/mtbdata.h</param> <param name="exclude">dep/scid/code/src/mtbgen</param> <param name="exclude">dep/scid/code/src/optable.cpp</param> <param name="exclude">dep/scid/code/src/optable.h</param> <param name="exclude">dep/scid/code/src/pbook.cpp</param> <param name="exclude">dep/scid/code/src/pbook.h</param> <param name="exclude">dep/scid/code/src/pgn_lexer.h</param> <param name="exclude">dep/scid/code/src/pgnparse.h</param> <param name="exclude">dep/scid/code/src/polyglot</param> <param name="exclude">dep/scid/code/src/probe.cpp</param> <param name="exclude">dep/scid/code/src/probe.h</param> <param name="exclude">dep/scid/code/src/recog.cpp</param> <param name="exclude">dep/scid/code/src/recog.h</param> <param name="exclude">dep/scid/code/src/sc_base.cpp</param> <param name="exclude">dep/scid/code/src/sc_filter.cpp</param> <param name="exclude">dep/scid/code/src/scidbase.cpp</param> <param name="exclude">dep/scid/code/src/scidbase.h</param> <param name="exclude">dep/scid/code/src/sc_info.cpp</param> <param name="exclude">dep/scid/code/src/searchindex.cpp</param> <param name="exclude">dep/scid/code/src/searchpos.h</param> <param name="exclude">dep/scid/code/src/searchtournaments.h</param> <param name="exclude">dep/scid/code/src/spellchk.cpp</param> <param name="exclude">dep/scid/code/src/spellchk.h</param> <param name="exclude">dep/scid/code/src/timer.h</param> <param name="exclude">dep/scid/code/src/tkscid.cpp</param> <param name="exclude">dep/scid/code/src/tkscid.h</param> <param name="exclude">dep/scid/code/src/ui.h</param> <param name="exclude">dep/scid/code/src/ui_tcltk.h</param> <param name="exclude">dep/scid/code/tcl</param> <param name="exclude">dep/scid/code/TODO</param> <param name="exclude">dep/scid/code/.travis.yml</param> <param name="exclude">*.bat</param> <param name="exclude">*.iss</param> <param name="exclude">data/engines*</param> <param name="exclude">data/timeseal</param> <param name="exclude">dep/scid/code/shell_scid</param> <param name="exclude">dep/scid/code/src/egtb</param> <param name="exclude">dep/scid/code/src/polyglot.h</param> <param name="exclude">mac_osx</param> <param name="exclude">Packages</param> <param name="exclude">src/chessx.rc</param> <param name="exclude">src/resource.h</param> <param name="exclude">tests/benchmark</param> <param name="exclude">tools</param> <param name="exclude">unix/make_tarball</param> <param name="exclude">unix/tar_exclude.txt</param> <param name="revision">v1.5.6-lw</param> <param name="versionrewrite-pattern">v(.*)lw</param> <param name="versionformat">@PARENT_TAG@</param> </service> <service mode="disabled" name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service mode="disabled" name="set_version" /> </services> ++++++ chessx-install.patch ++++++ --- /var/tmp/diff_new_pack.jLb3vo/_old 2021-02-26 21:59:48.379839521 +0100 +++ /var/tmp/diff_new_pack.jLb3vo/_new 2021-02-26 21:59:48.379839521 +0100 @@ -1,27 +1,27 @@ -Index: chessx-1.5.4/chessx.pro +Index: chessx-1.5.6-lw/CMakeLists.txt =================================================================== ---- chessx-1.5.4.orig/chessx.pro -+++ chessx-1.5.4/chessx.pro -@@ -546,6 +546,22 @@ macx { - data/timeseal/mac/timeseal - } +--- chessx-1.5.6-lw.orig/CMakeLists.txt ++++ chessx-1.5.6-lw/CMakeLists.txt +@@ -12,6 +12,11 @@ option(ENABLE_SOUNDS "Enable sounds (req + option(ENABLE_TTS "Enable text-to-speech (requires Qt5::TextToSpeech)" ON) + option(ENABLE_SCID_SUPPORT "Enable support for Scid database format (*.si4)" ON) -+unix:!macx { -+ isEmpty(PREFIX) { -+ PREFIX = /usr -+ } -+ target.path = $$PREFIX/bin -+ desktop.path = $$PREFIX/share/applications -+ desktop.files = unix/chessx.desktop -+ icon.path = $$PREFIX/share/pixmaps -+ icon.files = data/images/chessx.png -+ data.path = $$PREFIX/share/chessx -+ data.files = data -+ lang.path = $$PREFIX/share/chessx/data/lang -+ lang.files = i18n/*.qm -+ INSTALLS += target desktop icon data lang -+} ++if(UNIX AND NOT APPLE) ++ set(LINUX TRUE) ++ include(GNUInstallDirs) ++endif() + - win32 { - OTHER_FILES += \ - src/chessx.rc \ + add_subdirectory(dep) + + # common definitions to use with Qt +@@ -149,3 +154,10 @@ if (ENABLE_TESTING) + add_subdirectory(tests/unittests) + endif() + ++if(LINUX) ++ install(TARGETS chessx DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}) ++ install(FILES unix/chessx.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications) ++ install(FILES data/images/chessx.png DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/pixmaps) ++ install(DIRECTORY data DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/chessx) ++ install(FILES ${TRANSLATIONS_BIN_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/chessx/data/lang) ++endif() ++++++ chessx-use_system_quazip.patch ++++++ --- /var/tmp/diff_new_pack.jLb3vo/_old 2021-02-26 21:59:48.391839532 +0100 +++ /var/tmp/diff_new_pack.jLb3vo/_new 2021-02-26 21:59:48.391839532 +0100 @@ -1,109 +1,91 @@ -Index: chessx-1.5.4/chessx.pro +Index: chessx-1.5.6-lw/CMakeLists.txt =================================================================== ---- chessx-1.5.4.orig/chessx.pro -+++ chessx-1.5.4/chessx.pro -@@ -39,7 +39,6 @@ static { # Everything below takes effect - message("Static build.") - } - --DEFINES += QUAZIP_STATIC - DEFINES += QT_NO_CAST_TO_ASCII - DEFINES *= QT_USE_QSTRINGBUILDER - -@@ -156,22 +155,6 @@ HEADERS += src/database/board.h \ - src/gui/engineoptionlist.h \ - src/gui/helpbrowser.h \ - src/database/downloadmanager.h \ -- src/quazip/zip.h \ -- src/quazip/unzip.h \ -- src/quazip/quazipnewinfo.h \ -- src/quazip/quazipfileinfo.h \ -- src/quazip/quazipfile.h \ -- src/quazip/quazipdir.h \ -- src/quazip/quazip.h \ -- src/quazip/quazip_global.h \ -- src/quazip/quaziodevice.h \ -- src/quazip/quagzipfile.h \ -- src/quazip/quacrc32.h \ -- src/quazip/quachecksum32.h \ -- src/quazip/quaadler32.h \ -- src/quazip/JlCompress.h \ -- src/quazip/ioapi.h \ -- src/quazip/crypt.h \ - src/gui/toolmainwindow.h \ - src/gui/playerlistwidget.h \ - src/gui/qled.h \ -@@ -321,16 +304,6 @@ SOURCES += src/database/board.cpp \ - src/gui/engineoptionlist.cpp \ - src/gui/helpbrowser.cpp \ - src/database/downloadmanager.cpp \ -- src/quazip/quazipnewinfo.cpp \ -- src/quazip/quazipfile.cpp \ -- src/quazip/quazipdir.cpp \ -- src/quazip/quazip.cpp \ -- src/quazip/quaziodevice.cpp \ -- src/quazip/quagzipfile.cpp \ -- src/quazip/quacrc32.cpp \ -- src/quazip/quaadler32.cpp \ -- src/quazip/qioapi.cpp \ -- src/quazip/JlCompress.cpp \ - src/gui/toolmainwindow.cpp \ - src/gui/playerlistwidget.cpp \ - src/gui/qled.cpp \ -@@ -401,8 +374,6 @@ SOURCES += src/database/board.cpp \ - src/gui/historylabel.cpp \ - src/database/streamdatabase.cpp \ - src/database/refcount.cpp \ -- src/quazip/unzip.cpp \ -- src/quazip/zip.cpp \ - src/database/arenabook.cpp \ - src/gui/gamelistsortmodel.cpp \ - src/gui/listwidgetex.cpp -@@ -412,8 +383,25 @@ INCLUDEPATH += src/database - INCLUDEPATH += src/guess - INCLUDEPATH += src/gui - INCLUDEPATH += src/dialogs --INCLUDEPATH += src/quazip --INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib +--- chessx-1.5.6-lw.orig/CMakeLists.txt ++++ chessx-1.5.6-lw/CMakeLists.txt +@@ -15,6 +15,7 @@ option(ENABLE_SCID_SUPPORT "Enable suppo + if(UNIX AND NOT APPLE) + set(LINUX TRUE) + include(GNUInstallDirs) ++ include(FindPkgConfig) + endif() + + add_subdirectory(dep) +@@ -45,6 +46,13 @@ find_package(Qt5 REQUIRED + Test + ) + ++if(LINUX) ++ pkg_search_module(QUAZIP quazip1-qt5 quazip) ++ if(QUAZIP_FOUND) ++ pkg_check_modules(ZLIB REQUIRED zlib) ++ endif() ++endif() ++ + # TODO: enable warnings + # CONFIG += warn_on + +@@ -110,13 +118,19 @@ add_executable(chessx WIN32 + + target_link_libraries(chessx PRIVATE + qt_config +- quazip + bitboard + board + eco + gui + ) + ++if(NOT QUAZIP_FOUND) ++ target_link_libraries(chessx PRIVATE quazip) ++else() ++ target_link_libraries(chessx PRIVATE ${QUAZIP_LIBRARIES}) ++endif() + -+CONFIG += link_pkgconfig -+packagesExist(quazip1-qt5) { -+ HAVE_QUAZIP = yes -+ PKGCONFIG += quazip1-qt5 -+ message("Using quazip1-qt5") -+} -+packagesExist(quazip) { -+ !defined(HAVE_QUAZIP, var) { -+ HAVE_QUAZIP = yes -+ PKGCONFIG += quazip -+ DEFINES += USE_QUAZIP5 -+ message("Using quazip") -+ } -+} + -+!defined(HAVE_QUAZIP, var) { -+ error("Need at least one of quazip1-qt5 or quazip") -+} - - win32 { - # DEFINES += ZLIB_WINAPI -Index: chessx-1.5.4/src/gui/mainwindow.cpp + if (CMAKE_HOST_APPLE) + # Make macOS bundle instead of bare executable + set_target_properties(chessx PROPERTIES +Index: chessx-1.5.6-lw/src/CMakeLists.txt =================================================================== ---- chessx-1.5.4.orig/src/gui/mainwindow.cpp -+++ chessx-1.5.4/src/gui/mainwindow.cpp -@@ -43,8 +43,13 @@ - #include "output.h" - #include "pgndatabase.h" - #include "playerlistwidget.h" --#include "quazip.h" --#include "quazipfile.h" -+#ifndef USE_QUAZIP5 -+#include <quazip/quazip.h> -+#include <quazip/quazipfile.h> -+#else -+#include <quazip5/quazip.h> -+#include <quazip5/quazipfile.h> -+#endif - #include "savedialog.h" - #include "settings.h" - #include "style.h" +--- chessx-1.5.6-lw.orig/src/CMakeLists.txt ++++ chessx-1.5.6-lw/src/CMakeLists.txt +@@ -1,4 +1,6 @@ +-add_subdirectory(quazip) ++if(NOT QUAZIP_FOUND) ++ add_subdirectory(quazip) ++endif() + + add_library(bitboard STATIC + database/bitboard.cpp +@@ -433,11 +435,17 @@ target_include_directories(gui + gui + ) + ++if(QUAZIP_FOUND) ++ target_include_directories(gui ++ PUBLIC ++ ${QUAZIP_INCLUDE_DIRS} ++ ) ++endif() ++ + target_link_libraries(gui + PRIVATE + qt_config + eco +- quazip + Qt5::PrintSupport + Qt5::Svg + PUBLIC +@@ -446,6 +454,12 @@ target_link_libraries(gui + Qt5::Xml + ) + ++if(NOT QUAZIP_FOUND) ++ target_link_libraries(gui PRIVATE quazip) ++else() ++ target_link_libraries(gui PRIVATE ${QUAZIP_LIBRARIES} ${ZLIB_LIBRARIES}) ++endif() ++ + if (ENABLE_SOUNDS) + target_compile_definitions(gui + PRIVATE
participants (1)
-
Source-Sync