SPECS: wrogue.spec - up to 0.8.0b - zip package (BR: unzip) - rm wrogue-mak...

lisu lisu at pld-linux.org
Wed Feb 11 14:25:20 CET 2009


Author: lisu                         Date: Wed Feb 11 13:25:20 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.8.0b
- zip package (BR: unzip)
- rm wrogue-makefile.patch - usless
- don't append wrong prefixes to paths

---- Files affected:
SPECS:
   wrogue.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/wrogue.spec
diff -u SPECS/wrogue.spec:1.7 SPECS/wrogue.spec:1.8
--- SPECS/wrogue.spec:1.7	Fri Jan 18 01:54:21 2008
+++ SPECS/wrogue.spec	Wed Feb 11 14:25:15 2009
@@ -2,18 +2,18 @@
 Summary:	A gothic fantasy roguelike game
 Summary(pl.UTF-8):	Gotycka gra fantasy typu rogue
 Name:		wrogue
-Version:	0.8.0
+Version:	0.8.0b
 Release:	1
 License:	GPL v3+
 Group:		Applications/Games
-Source0:	http://dl.sourceforge.net/todoom/%{name}-%{version}.tar.bz2
-# Source0-md5:	c03ac3b590ec668a84965007d08126a9
+Source0:	http://dl.sourceforge.net/todoom/%{name}-%{version}.zip
+# Source0-md5:	977ccda1ac18ca3ee545fab95db56b2e
 Source1:	%{name}.desktop
 Source2:	%{name}.xpm
-Patch0:		%{name}-makefile.patch
 URL:		http://todoom.sourceforge.net/
 BuildRequires:	SDL-devel >= 1.2.9
 BuildRequires:	sed >= 4.0
+BuildRequires:	unzip
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,14 +26,16 @@
 
 %prep
 %setup -q
-%patch0 -p1
-%{__sed} -i 's at ./data@%{_datadir}/%{name}/data@' src/platform/unix/platform_unix.c
+%{__sed} -i 's at data/@%{_datadir}/%{name}/data/@' `grep -r -l 'data/' .`
+
+# prevent from adding useless paths' prefixes
+%{__sed} -ie '561d' src/lib/appdir.c
 
 %build
 cd src/
-%{__make} -f unix.mak \
+%{__make} -f linux.mak \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -I. -I./lib `sdl-config --cflags`" \
+	CFLAGS="%{rpmcflags} -I./include -I./lib `sdl-config --cflags`" \
 	LDFLAGS="%{rpmldflags} `sdl-config --libs`"
 
 %install
@@ -50,7 +52,7 @@
 
 %files
 %defattr(644,root,root,755)
-%doc changes.txt scenario_guide.txt
+%doc changes.txt
 %attr(755,root,root) %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_desktopdir}/%{name}.desktop
@@ -62,6 +64,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2009/02/11 13:25:15  lisu
+- up to 0.8.0b
+- zip package (BR: unzip)
+- rm wrogue-makefile.patch - usless
+- don't append wrong prefixes to paths
+
 Revision 1.7  2008/01/18 00:54:21  lisu
 - up to 0.8.0
 - change build workaround
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/wrogue.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list