packages: spring/spring.spec - up to 0.82.0 - more unified cmake build sect...

lisu lisu at pld-linux.org
Thu Jul 29 11:06:55 CEST 2010


Author: lisu                         Date: Thu Jul 29 09:06:55 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.82.0
- more unified cmake build section
- add -sdl.patch
- new binaries packaged

---- Files affected:
packages/spring:
   spring.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: packages/spring/spring.spec
diff -u packages/spring/spring.spec:1.17 packages/spring/spring.spec:1.18
--- packages/spring/spring.spec:1.17	Thu May 13 00:10:15 2010
+++ packages/spring/spring.spec	Thu Jul 29 11:06:50 2010
@@ -5,12 +5,13 @@
 Summary:	Powerful RTS engine
 Summary(pl.UTF-8):	Potężny silnik RTS
 Name:		spring
-Version:	0.81.2.1
+Version:	0.82.0
 Release:	1
 License:	GPL v2+
 Group:		X11/Applications/Games/Strategy
-Source0:	http://downloads.sourceforge.net/springrts/spring-0.80.5/%{name}_%{version}_src.tar.gz
-# Source0-md5:	da6732a3c9930872955004a67573ca67
+Source0:	http://downloads.sourceforge.net/springrts/%{name}_%{version}_src.tar.gz
+# Source0-md5:	893a937bfc839a63183b1a142e03fa0b
+Patch0:		%{name}-sdl.patch
 URL:		http://spring.clan-sy.com/
 BuildRequires:	DevIL-devel >= 1.7.2-4
 BuildRequires:	OpenAL-devel
@@ -72,18 +73,22 @@
 
 %prep
 %setup -q -n %{name}_%{version}
+%patch0 -p1
 
 %build
-%cmake \
+install -d build
+cd build
+%cmake .. \
+	-DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
 	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-	-DLIBDIR=%{_lib} \
-	.
+	-DLIBDIR=%{_lib}
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -93,8 +98,10 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/%{name}
 %attr(755,root,root) %{_bindir}/%{name}-dedicated
+%attr(755,root,root) %{_bindir}/spring-headless
+%attr(755,root,root) %{_bindir}/spring-multithreaded
 %attr(755,root,root) %{_libdir}/libspringserver.so
-%attr(755,root,root) %{_libdir}/libunitsync.so
+#%%attr(755,root,root) %{_libdir}/libunitsync.so
 %{_datadir}/games/%{name}
 %{_datadir}/mime/packages/%{name}.xml
 %{_mandir}/man6/spring*.6*
@@ -108,6 +115,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2010/07/29 09:06:50  lisu
+- up to 0.82.0
+- more unified cmake build section
+- add -sdl.patch
+- new binaries packaged
+
 Revision 1.17  2010/05/12 22:10:15  sparky
 - BR: asciidoc, docbook-dtd45-xml, libxslt-progs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/spring/spring.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list