[sumwars] use pthreads lib
Tom Callaway
spot at fedoraproject.org
Thu Nov 15 19:44:26 UTC 2012
commit a139196c643459f0dfee74ac605917539bd143a0
Author: Tom Callaway <spot at fedoraproject.org>
Date: Thu Nov 15 14:45:48 2012 -0500
use pthreads lib
sumwars-0.5.6-pthreads.patch | 19 +++++++++++++++++++
sumwars.spec | 3 +++
2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/sumwars-0.5.6-pthreads.patch b/sumwars-0.5.6-pthreads.patch
new file mode 100644
index 0000000..d4e227c
--- /dev/null
+++ b/sumwars-0.5.6-pthreads.patch
@@ -0,0 +1,19 @@
+diff -up sumwars-0.5.6/CMakeLists.txt.pthreads sumwars-0.5.6/CMakeLists.txt
+--- sumwars-0.5.6/CMakeLists.txt.pthreads 2012-03-04 13:37:31.000000000 -0500
++++ sumwars-0.5.6/CMakeLists.txt 2012-11-13 17:13:25.500762510 -0500
+@@ -164,6 +164,7 @@ FIND_PACKAGE(ALUT REQUIRED)
+ FIND_PACKAGE(Ogg REQUIRED)
+ FIND_PACKAGE(Vorbis REQUIRED)
+ FIND_PACKAGE(PhysFS REQUIRED)
++FIND_PACKAGE(Pthreads REQUIRED)
+ IF(SUMWARS_BUILD_TOOLS)
+ FIND_PACKAGE(POCO REQUIRED)
+ ENDIF()
+@@ -417,6 +418,7 @@ SET(LINK_LIBS
+ ${OGG_LIBRARY}
+ ${VORBIS_LIBRARIES}
+ ${PHYSFS_LIBRARY}
++ ${PTHREADS_LIBRARY}
+ )
+ IF(SUMWARS_NO_TINYXML)
+ SET(LINK_LIBS ${LINK_LIBS} ${TINYXML_LIBRARIES})
diff --git a/sumwars.spec b/sumwars.spec
index b916a7b..d8cfcc3 100644
--- a/sumwars.spec
+++ b/sumwars.spec
@@ -10,6 +10,7 @@ License: GPLv3+
URL: http://sumwars.org
Source0: http://sourceforge.net/projects/sumwars/files/%{version}/%{name}-%{version}-src.tar.bz2
Source1: sumwars.desktop
+Patch0: sumwars-0.5.6-pthreads.patch
BuildRequires: gettext, cmake, ogre-devel, cegui-devel, ois-devel, lua-devel,
BuildRequires: libXrandr-devel, desktop-file-utils
@@ -38,6 +39,7 @@ This package contains the data files for Summoning Wars.
%prep
%setup -q
+%patch0 -p1 -b .pthreads
# http://sumwars.org/mantis/view.php?id=63
for file in AUTHORS; do
@@ -121,6 +123,7 @@ fi
%changelog
* Thu Nov 15 2012 Tom Callaway <spot at fedoraproject.org> - 0.5.6-8
- rebuild for new cegui
+- apply patch to use -lpthread
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list