diff --git a/cpp14.patch b/cpp14.patch new file mode 100644 index 0000000..bc4aecc --- /dev/null +++ b/cpp14.patch @@ -0,0 +1,25 @@ +Index: kshisen-16.08.2/src/board.cpp +=================================================================== +--- kshisen-16.08.2.orig/src/board.cpp ++++ kshisen-16.08.2/src/board.cpp +@@ -1401,9 +1401,9 @@ void Board::madeMove(TilePos const & til + { + std::unique_ptr move; + if (slide.empty()) { +- move = std::make_unique(tilePos1, tilePos2, field(tilePos1), field(tilePos2)); ++ move = std::unique_ptr(new Move(tilePos1, tilePos2, field(tilePos1), field(tilePos2))); + } else { +- move = std::make_unique(tilePos1, tilePos2, field(tilePos1), field(tilePos2), slide); ++ move = std::unique_ptr(new Move(tilePos1, tilePos2, field(tilePos1), field(tilePos2), slide)); + } + m_undo.push_back(std::move(move)); + if (!m_redo.empty()) { +@@ -1743,7 +1743,7 @@ bool Board::hint_I(PossibleMoves & possi + + int Board::tilesLeft() const + { +- return std::count_if(m_field.begin(), m_field.end(), [](auto field) { return field != EMPTY; }); ++ return std::count_if(m_field.begin(), m_field.end(), [](int field) { return field != EMPTY; }); + } + + int Board::currentTime() const diff --git a/kshisen-16.08.1.tar.xz b/kshisen-16.08.1.tar.xz deleted file mode 100644 index d59766d..0000000 --- a/kshisen-16.08.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:904a61ce5c312d1f79a7d95d869e0e99e0be8fca134d3e1c5b3d1744985f63c8 -size 343536 diff --git a/kshisen-16.08.2.tar.xz b/kshisen-16.08.2.tar.xz new file mode 100644 index 0000000..07df6e1 --- /dev/null +++ b/kshisen-16.08.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:979d3609b16d99c440555d3c51116e4c366661226e0e305ef3fe8a9775750598 +size 343580 diff --git a/kshisen.changes b/kshisen.changes index 51c520e..9864d5a 100644 --- a/kshisen.changes +++ b/kshisen.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Oct 14 15:47:28 UTC 2016 - fabian@ritter-vogt.de + +- Add cpp14.patch to use only c++ features supported by GCC 4.8 + +------------------------------------------------------------------- +Tue Oct 11 21:02:07 UTC 2016 - lbeltrame@kde.org + +- KDE Applications 16.08.2 +https://www.kde.org/announcements/announce-applications-16.08.2.php + ------------------------------------------------------------------- Fri Sep 9 08:33:21 UTC 2016 - tittiatcoke@gmail.com diff --git a/kshisen.spec b/kshisen.spec index 4b92e78..faa3af6 100644 --- a/kshisen.spec +++ b/kshisen.spec @@ -34,9 +34,11 @@ Summary: Shisen-Sho Mahjongg-like game License: GPL-2.0+ Group: Amusements/Games/Board/Other Url: http://www.kde.org -Version: 16.08.1 +Version: 16.08.2 Release: 0 Source0: kshisen-%{version}.tar.xz +# PATCH-FIX-OPENSUSE cpp14.patch fabian@ritter-vogt.de Use only c++11 features +Patch1: cpp14.patch Obsoletes: %{name}5 < %{version} Provides: %{name}5 = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -50,6 +52,7 @@ two tiles with of the same type until no tile is left. %prep %setup -q -n kshisen-%{version} +%patch1 -p1 %build %cmake_kf5 -d build