]> git.pld-linux.org Git - packages/xut.git/commitdiff
- up to 0.2
authorlisu <lisu@pld-linux.org>
Thu, 5 Nov 2009 12:11:05 +0000 (12:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- 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

Changed files:
    xut.spec -> 1.3

xut.spec

index 5a11c5c434c943c300c82f4de5e2778bf48087bb..1ff26ad73fcc82914a034db05d8f176f69059f1e 100644 (file)
--- a/xut.spec
+++ b/xut.spec
@@ -1,20 +1,31 @@
+#
+# 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
@@ -25,25 +36,32 @@ XUT egy project, amelynek a célja egy gombfoci szimulátor létrehozása.
 
 %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}
This page took 0.076363 seconds and 4 git commands to generate.