]>
Commit | Line | Data |
---|---|---|
bcf4f753 | 1 | # |
00453ca0 | 2 | # TODO: |
3 | # -fix default paths | |
4 | # -add data subpackage | |
38fcc002 JB |
5 | # |
6 | # Conditional build: | |
1d757b8f | 7 | %bcond_with libY # build with libY |
8 | %bcond_with jsw # uild with joystick support | |
bcf4f753 JB |
9 | # |
10 | Summary: Search And Rescue - Linux flight simulator | |
219faed1 | 11 | Summary(pl.UTF-8): Search And Rescue - symulator lotu śmigłowca |
bcf4f753 | 12 | Name: SearchAndRescue |
00453ca0 | 13 | Version: 0.8.2 |
38fcc002 | 14 | Release: 0.1 |
bcf4f753 JB |
15 | License: GPL |
16 | Group: X11/Applications/Games | |
f748eb58 | 17 | Source0: ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2 |
00453ca0 | 18 | # Source0-md5: e2c56a25adb57554dfb25cc8175b502b |
4d173623 | 19 | #Patch0: %{name}-Makefile.patch |
bcf4f753 JB |
20 | URL: http://wolfpack.twu.net/SearchAndRescue/ |
21 | BuildRequires: XFree86-devel >= 3.3.6 | |
22 | BuildRequires: OpenGL-devel | |
00453ca0 | 23 | %{?with_liby:BuildRequires: libY-devel} |
24 | %{?with_jsw:BuildRequires: libjsw-devel} | |
bcf4f753 | 25 | Requires: OpenGL |
fddaddc1 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bcf4f753 JB |
27 | |
28 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
bcf4f753 JB |
29 | |
30 | %description | |
31 | Linux flight simulator. | |
32 | ||
109454af JR |
33 | %description -l pl.UTF-8 |
34 | Symulator lotu śmigłowcem. | |
bcf4f753 JB |
35 | |
36 | %prep | |
acd37848 | 37 | %setup -q |
4d173623 | 38 | #%patch0 -p1 |
bcf4f753 JB |
39 | |
40 | %build | |
4d173623 | 41 | ./configure Linux --prefix=%{_prefix} |
42 | %{__make} \ | |
43 | LDFLAGS="%{rpmldflags}" OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" | |
bcf4f753 JB |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
4d173623 | 47 | %{__make} install \ |
38fcc002 JB |
48 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ |
49 | GAMES_DIR=$RPM_BUILD_ROOT%{_bindir} \ | |
50 | MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man6 \ | |
51 | SHARE_GAMES_DIR=$RPM_BUILD_ROOT%{_datadir} \ | |
52 | SHADE_ICONS_DIR=$RPM_BUILD_ROOT%{_pixmapsdir} | |
bcf4f753 JB |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
4d173623 | 59 | %doc AUTHORS INSTALL README |
38fcc002 | 60 | %attr(755,root,root) %{_bindir}/* |
4d173623 | 61 | %{_iconsdir}/SearchAndRescue.xpm |
38fcc002 | 62 | %{_mandir}/man6/* |