Summary(hu.UTF-8): Egy Tetris-klón
Summary(pl.UTF-8): Gra typu tetris
Name: bastet
-Version: 0.43
-Release: 12
+Version: 0.43.2
+Release: 6
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
+Patch1: format-security.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)
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
+%patch1 -p1
%build
-NCURSES_LIBS=$(ncurses5-config --libs)
+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
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
-%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/bastet