]> git.pld-linux.org Git - packages/bastet.git/commitdiff
- updated to 0.43.2 auto/th/bastet-0.43.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 Jul 2020 19:37:08 +0000 (21:37 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 Jul 2020 19:37:08 +0000 (21:37 +0200)
- added boost patch (fix build with recent boost)

bastet-boost.patch [new file with mode: 0644]
bastet.spec

diff --git a/bastet-boost.patch b/bastet-boost.patch
new file mode 100644 (file)
index 0000000..1b1d8ca
--- /dev/null
@@ -0,0 +1,20 @@
+--- bastet-0.43.2/BastetBlockChooser.hpp.orig  2015-08-30 09:04:24.000000000 +0200
++++ bastet-0.43.2/BastetBlockChooser.hpp       2020-07-29 21:32:35.650073713 +0200
+@@ -23,7 +23,7 @@
+ #include "Well.hpp"
+-#include <boost/tr1/tr1/unordered_set>
++#include <boost/unordered_set.hpp>
+ #include <set>
+ #include <boost/functional/hash.hpp>
+@@ -75,7 +75,7 @@
+   public:
+     Searcher(BlockType b, const Well *well, Vertex v, WellVisitor *visitor);
+   private:
+-    std::tr1::unordered_set<Vertex> _visited;
++    boost::unordered_set<Vertex> _visited;
+     //std::set<Vertex> _visited; ^^ the above is more efficient, we need to do many inserts
+     BlockType _block;
+     const Well *_well;
index e6395910e99de061b71c5b8bd182dda6670f3e5b..c4a59bee42d13368606ced635306eaf629233a41 100644 (file)
@@ -2,15 +2,17 @@ Summary:      Tetris game
 Summary(hu.UTF-8):     Egy Tetris-klón
 Summary(pl.UTF-8):     Gra typu tetris
 Name:          bastet
-Version:       0.43
-Release:       22
+Version:       0.43.2
+Release:       1
 License:       GPL v3+
 Group:         X11/Applications/Games
-Source0:       http://fph.altervista.org/prog/files/%{name}-%{version}.tgz
-# Source0-md5: b47090daa7b6d89b98b5b477cf155733
+#Source0Download: https://github.com/fph/bastet/releases
+Source0:       https://github.com/fph/bastet/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: aee009b77b8cf9516d686bd24673800e
+Patch0:                %{name}-boost.patch
 URL:           http://fph.altervista.org/prog/bastet.html
 BuildRequires: boost-devel
-BuildRequires: ncurses-devel
+BuildRequires: ncurses-devel >= 6
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,26 +28,27 @@ Bastet a "bastard tetris" rövidítése, és egy egyszerű ncurses-alapú
 Tetris(R)-klón Linux-ra. A hagyományos Tetris(R)-szel ellentétben a
 Bastet a következő elemet nem véletlenszerűen választja, hanem egy
 speciális algoritmust használ, amellyel a lehető legrosszabb elemet
-választja ki. Gondolhatod, hogy a Bastet-tel való játék nagyon mennyire
-frusztráló lehet!
+választja ki. Gondolhatod, hogy a Bastet-tel való játék nagyon
+mennyire frusztráló lehet!
 
 %description -l pl.UTF-8
-Bastet oznacza "bastard tetris". Jest to prosty klon gry tetris z tekstowym
-interfejsem użytkownika opartym o bibliotekę ncurses. W odróżnieniu od innych
-implementacji gry tetris Bastet używa wyrafinowanego algorytmu, który dobiera
-zawsze najgorszy klocek do aktualnej sytuacji. Można się zatem domyślić, że
-granie w Bastet jest bardzo frustrującym przeżyciem.
+Bastet oznacza "bastard tetris". Jest to prosty klon gry tetris z
+tekstowym interfejsem użytkownika opartym o bibliotekę ncurses. W
+odróżnieniu od innych implementacji gry tetris Bastet używa
+wyrafinowanego algorytmu, który dobiera zawsze najgorszy klocek do
+aktualnej sytuacji. Można się zatem domyślić, że granie w Bastet jest
+bardzo frustrującym przeżyciem.
 
 %prep
 %setup -q
-%{__sed} -i 's@curses.h@ncurses/curses.h@' *.?pp
+%patch0 -p1
 
 %build
 NCURSES_LIBS=$(ncurses6-config --libs)
 %{__make} \
        CXX="%{__cxx}" \
        CXXFLAGS="%{rpmcxxflags}" \
-       LDFLAGS="%{rpmldflags} $NCURSES_LIBS"
+       LDFLAGS="%{rpmldflags} $NCURSES_LIBS -lboost_program_options"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -59,4 +62,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README
-%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/bastet
This page took 0.137333 seconds and 4 git commands to generate.