]>
Commit | Line | Data |
---|---|---|
36b5ead6 | 1 | # |
2 | # TODO: - fix auto tools | |
3 | # - move linking to Makefiles | |
4 | # | |
5 | %define file_version %(echo %{version} | tr . _) | |
d7959d75 ZU |
6 | Summary: A button football simulation |
7 | Summary(hu.UTF-8): Gombfoci szimuláció | |
8 | Name: xut | |
36b5ead6 | 9 | Version: 0.2 |
d7959d75 | 10 | Release: 0.1 |
36b5ead6 | 11 | License: GPL v3+ |
d7959d75 | 12 | Group: X11/Applications/Games |
36b5ead6 | 13 | Source0: http://downloads.sourceforge.net/digenv/%{name}_%{file_version}_src.tar.bz2 |
14 | # Source0-md5: 66c4bcd2ebc0fb5762bdea1df0db5a94 | |
15 | Patch0: %{name}-makefile.patch | |
d7959d75 ZU |
16 | URL: http://xut.dnteam.org |
17 | BuildRequires: OpenAL-devel | |
36b5ead6 | 18 | BuildRequires: OpenGL-GLU-devel |
19 | BuildRequires: OpenGL-devel | |
d7959d75 ZU |
20 | BuildRequires: SDL_gfx-devel |
21 | BuildRequires: SDL_image-devel | |
22 | BuildRequires: SDL_ttf-devel | |
36b5ead6 | 23 | #BuildRequires: autoconf >= 2.61 |
24 | #BuildRequires: automake | |
d7959d75 ZU |
25 | BuildRequires: cal3d-devel |
26 | BuildRequires: libogg-devel | |
27 | BuildRequires: libvorbis-devel | |
36b5ead6 | 28 | BuildRequires: rpmbuild(macros) >= 1.268 |
d7959d75 ZU |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | XUT is a project to make a button football game simulation. | |
33 | ||
34 | %description -l hu.UTF-8 | |
35 | XUT egy project, amelynek a célja egy gombfoci szimulátor létrehozása. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{name} | |
36b5ead6 | 39 | %patch0 -p1 |
d7959d75 ZU |
40 | |
41 | %build | |
36b5ead6 | 42 | #%%{__aclocal} |
43 | #%%{__autoconf} | |
44 | #%%{__automake} | |
d7959d75 ZU |
45 | %configure |
46 | %{__make} | |
47 | ||
36b5ead6 | 48 | # link manually (there is no linking workaround in sources) |
49 | cd src | |
50 | %{__cc} %{rpmcflags} %{rpmldflags} -o ../bin/%{name} `find -name "*.o"` -lopenal `sdl-config --libs` -lSDL_gfx -lSDL_image -lSDL_ttf -lcal3d -logg -lGL -lGLU -lvorbisfile | |
51 | ||
d7959d75 ZU |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
36b5ead6 | 54 | install -d $RPM_BUILD_ROOT%{_bindir} |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %find_lang %{name} --all-name | |
d7959d75 ZU |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
36b5ead6 | 64 | %files -f %{name}.lang |
d7959d75 | 65 | %defattr(644,root,root,755) |
36b5ead6 | 66 | %attr(755,root,root) %{_bindir}/xut |
67 | %{_datadir}/%{name} |