packages: xut/xut.spec - up to 0.2 - manual linking (there is no linking wo...

lisu lisu at pld-linux.org
Thu Nov 5 13:11:10 CET 2009


Author: lisu                         Date: Thu Nov  5 12:11:10 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.2
- manual linking (there is no linking workaround in sources)
- add missing BRs: OpenGL-devel, OpenGL-GLU-devel
- add %%find_lang macro and proper BR
- install binaries and data files in DESTDIR (makefile.patch)
- TODO

---- Files affected:
packages/xut:
   xut.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/xut/xut.spec
diff -u packages/xut/xut.spec:1.2 packages/xut/xut.spec:1.3
--- packages/xut/xut.spec:1.2	Tue May  5 18:47:24 2009
+++ packages/xut/xut.spec	Thu Nov  5 13:11:05 2009
@@ -1,21 +1,32 @@
 # $Revision$, $Date$
+#
+# TODO: - fix auto tools
+#	- move linking to Makefiles
+#
+%define		file_version %(echo %{version} | tr . _)
 Summary:	A button football simulation
 Summary(hu.UTF-8):	Gombfoci szimuláció
 Name:		xut
-Version:	0.1
+Version:	0.2
 Release:	0.1
-License:	GPL v2
+License:	GPL v3+
 Group:		X11/Applications/Games
-Source0:	http://dl.sourceforge.net/digenv/%{name}_0_1_src.tar.bz2
-# Source0-md5:	09baba4b462c5ac53a40aabfb7b2e7a9
+Source0:	http://downloads.sourceforge.net/digenv/%{name}_%{file_version}_src.tar.bz2
+# Source0-md5:	66c4bcd2ebc0fb5762bdea1df0db5a94
+Patch0:		%{name}-makefile.patch
 URL:		http://xut.dnteam.org
 BuildRequires:	OpenAL-devel
+BuildRequires:	OpenGL-GLU-devel
+BuildRequires:	OpenGL-devel
 BuildRequires:	SDL_gfx-devel
 BuildRequires:	SDL_image-devel
 BuildRequires:	SDL_ttf-devel
+#BuildRequires:	autoconf >= 2.61
+#BuildRequires:	automake
 BuildRequires:	cal3d-devel
 BuildRequires:	libogg-devel
 BuildRequires:	libvorbis-devel
+BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,28 +37,35 @@
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
-%{__aclocal}
-%{__autoconf}
-%{__automake}
+#%%{__aclocal}
+#%%{__autoconf}
+#%%{__automake}
 %configure
 %{__make}
 
+# link manually (there is no linking workaround in sources)
+cd src
+%{__cc} %{rpmcflags} %{rpmldflags} -o ../bin/%{name} `find -name "*.o"` -lopenal `sdl-config --libs` -lSDL_gfx -lSDL_image -lSDL_ttf -lcal3d -logg -lGL -lGLU -lvorbisfile
+
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name} --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_datadir}/%{name}/%{name}-bin
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*
+%attr(755,root,root) %{_bindir}/xut
+%{_datadir}/%{name}
 
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -55,6 +73,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2009/11/05 12:11:05  lisu
+- up to 0.2
+- manual linking (there is no linking workaround in sources)
+- add missing BRs: OpenGL-devel, OpenGL-GLU-devel
+- add %%find_lang macro and proper BR
+- install binaries and data files in DESTDIR (makefile.patch)
+- TODO
+
 Revision 1.2  2009/05/05 16:47:24  uzsolt
 - fix changelog
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/xut/xut.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list