[packages/brutalchess] Rel 3
arekm
arekm at pld-linux.org
Wed May 20 18:18:34 CEST 2026
commit eb57c881cdebd3852d01535c1dabd089e5ede4ff
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 18:18:18 2026 +0200
Rel 3
brutalchess-includes.patch | 30 ++++++++++++++++++++++++++++++
brutalchess.spec | 8 +++++---
2 files changed, 35 insertions(+), 3 deletions(-)
---
diff --git a/brutalchess.spec b/brutalchess.spec
index d003d85..138af39 100644
--- a/brutalchess.spec
+++ b/brutalchess.spec
@@ -6,7 +6,7 @@ Summary: 3D chess game for X-Window
Summary(pl.UTF-8): Trójwymiarowe szachy dla X-Window
Name: brutalchess
Version: 0.5.2
-Release: 2
+Release: 3
License: GPL v2+
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/brutalchess/%{name}-%{_alpha}-%{version}-src.tar.gz
@@ -14,6 +14,7 @@ Source0: http://dl.sourceforge.net/brutalchess/%{name}-%{_alpha}-%{version}-src.
Source1: %{name}.desktop
Source2: %{name}.xpm
Patch0: %{name}-GLvoid.patch
+Patch1: %{name}-includes.patch
URL: http://sourceforge.net/projects/brutalchess/
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
@@ -36,6 +37,7 @@ i kilka różnych poziomów sztucznej inteligencji.
%prep
%setup -q
%patch -P0 -p0
+%patch -P1 -p0
%{__sed} -i 's at ../art@%{_datadir}/brutalchess/art@' src/{basicset.cpp,gamecore.cpp,granitetheme.cpp}
%{__sed} -i 's at ../fonts@%{_datadir}/brutalchess/fonts@' src/gamecore.cpp
%{__sed} -i 's at ../models@%{_datadir}/brutalchess/models@' src/{basicset.cpp,gamecore.cpp}
@@ -72,8 +74,8 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/md3view
-%attr(755,root,root) %{_libdir}/objview
+%attr(755,root,root) %{_libexecdir}/md3view
+%attr(755,root,root) %{_libexecdir}/objview
%{_datadir}/%{name}
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.xpm
diff --git a/brutalchess-includes.patch b/brutalchess-includes.patch
new file mode 100644
index 0000000..dbf2a19
--- /dev/null
+++ b/brutalchess-includes.patch
@@ -0,0 +1,30 @@
+--- src/xboardplayer.cpp.orig
++++ src/xboardplayer.cpp
+@@ -14,6 +14,7 @@
+ #include <cassert>
+ #include <sstream>
+ #include <string>
++#include <unistd.h>
+
+ using namespace std;
+
+--- src/faileplayer.cpp.orig
++++ src/faileplayer.cpp
+@@ -14,6 +14,7 @@
+ #include <cassert>
+ #include <sstream>
+ #include <string>
++#include <unistd.h>
+
+ using namespace std;
+
+--- src/brutalplayer.cpp.orig
++++ src/brutalplayer.cpp
+@@ -12,6 +12,7 @@
+
+ #include <vector>
+ #include <time.h>
++#include <climits>
+
+ using namespace std;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/brutalchess.git/commitdiff/eb57c881cdebd3852d01535c1dabd089e5ede4ff
More information about the pld-cvs-commit
mailing list