SPECS (DEVEL): tome.spec - 3.0.0alpha17 - BR: lua51-devel (used to...

lisu lisu at pld-linux.org
Fri Oct 26 17:24:39 CEST 2007


Author: lisu                         Date: Fri Oct 26 15:24:39 2007 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- 3.0.0alpha17
- BR: lua51-devel (used to find paths)
- comment -paths.patch (need to be fixed)
- nfy

---- Files affected:
SPECS:
   tome.spec (1.27 -> 1.27.2.1) 

---- Diffs:

================================================================
Index: SPECS/tome.spec
diff -u SPECS/tome.spec:1.27 SPECS/tome.spec:1.27.2.1
--- SPECS/tome.spec:1.27	Mon Feb 12 23:09:18 2007
+++ SPECS/tome.spec	Fri Oct 26 17:24:34 2007
@@ -1,22 +1,26 @@
 # $Revision$, $Date$
 # TODO:
-#	- disable IRC support?
+#	- move tome.cfg to proper /etc directory
+#	- fix putting scores into /var/games/tome
 #
 %define		file_version	%(echo %{version} | tr -d .)
+%define		_alpha		alpha17
 Summary:	Troubles of Middle Earth - a roguelike game
 Summary(pl.UTF-8):	Gra roguelike "Troubles of Middle Earth"
 Name:		tome
-Version:	2.3.4
-Release:	1
+Version:	3.0.0
+Release:	0.%{_alpha}.1
 License:	distributable
 Group:		Applications/Games
-Source0:	http://t-o-m-e.net/dl/src/%{name}-%{file_version}-src.tar.bz2
-# Source0-md5:	a97dc78e8964987adc6c0a796b560a14
+Source0:	http://t-o-m-e.net/dl/src/%{name}-%{file_version}%{_alpha}-src.tar.bz2
+# Source0-md5:	9e33b9c4fe4c79319e9523b06ddbbd15
 Source1:	%{name}.png
 Source2:	%{name}.desktop
 Patch0:		%{name}-makefile.patch
-Patch1:		%{name}-paths.patch
+#to be fixed
+#Patch1:		%{name}-paths.patch
 URL:		http://www.t-o-m-e.net/
+BuildRequires:	lua51-devel
 BuildRequires:	ncurses-devel
 Conflicts:	applnk < 1.5.13
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,9 +36,9 @@
 jednym z wielu dostępnych wariantów Angbandu.
 
 %prep
-%setup -q -n %{name}-%{file_version}-src
+%setup -q -n %{name}-%{file_version}%{_alpha}-src
 %patch0 -p1
-%patch1 -p1
+#%%patch1 -p1
 
 %build
 # Only build ncurses version (see makefile patch), because I didn't
@@ -42,14 +46,17 @@
 cd src
 %{__make} -f makefile.std \
 	COPTS="%{rpmcflags}" \
-	CC="%{__cc}"
+	CC="%{__cc}" \
+	PREFIX="%{_prefix}" \
+	TOMENAME="%{name}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/games/tome/{cmov,dngn,edit,file,help,info,note,pref,scpt,user,mods},/var/games/tome/{apex,save,data,bone},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/games/tome,%{_pixmapsdir},%{_desktopdir}}
 
-install -D src/tome $RPM_BUILD_ROOT%{_bindir}/%{name}
-cp -r lib/{cmov,core,dngn,edit,file,help,info,note,pref,scpt,user,mods,module.lua} $RPM_BUILD_ROOT%{_datadir}/games/tome
+install src/tome $RPM_BUILD_ROOT%{_bindir}/%{name}
+install tome.cfg $RPM_BUILD_ROOT%{_datadir}/games/%{name}
+cp -r game $RPM_BUILD_ROOT%{_datadir}/games/%{name}
 # do not copy placeholders; bones are unnecessary
 #cp -r lib/{apex,save,data} $RPM_BUILD_ROOT/var/games/tome
 
@@ -62,11 +69,11 @@
 %files
 %defattr(644,root,root,755)
 %doc *.txt
-%attr(2755,root,games) %{_bindir}/%{name}
-%{_datadir}/games/tome
-%attr(775,root,games) /var/games/tome
-%{_pixmapsdir}/*
-%{_desktopdir}/*.desktop
+%attr(755,root,root) %{_bindir}/%{name}
+%{_datadir}/games/%{name}
+#%%attr(775,root,games) /var/games/tome
+%{_desktopdir}/tome.desktop
+%{_pixmapsdir}/tome.png
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -74,6 +81,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27.2.1  2007/10/26 15:24:34  lisu
+- 3.0.0alpha17
+- BR: lua51-devel (used to find paths)
+- comment -paths.patch (need to be fixed)
+- nfy
+
 Revision 1.27  2007/02/12 22:09:18  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tome.spec?r1=1.27&r2=1.27.2.1&f=u



More information about the pld-cvs-commit mailing list