]> git.pld-linux.org Git - packages/SearchAndRescue.git/blob - SearchAndRescue.spec
- caps unification, other cosmetics
[packages/SearchAndRescue.git] / SearchAndRescue.spec
1 #
2 # TODO: fix default paths
3 #
4 # Conditional build:
5 # --with libY   - with libY
6 # --with jsw    - with lib joystick
7 #
8 Summary:        Search And Rescue - Linux flight simulator
9 Summary(pl):    Search And Rescue - symulator lotu ¶mig³owca
10 Name:           SearchAndRescue
11 Version:        0.8.1
12 Release:        0.1
13 License:        GPL
14 Group:          X11/Applications/Games
15 Source0:        ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2
16 # Source0-md5:  f94feb21f950fc8c433efcfd13b11175
17 #Patch0:                %{name}-Makefile.patch
18 URL:            http://wolfpack.twu.net/SearchAndRescue/
19 BuildRequires:  XFree86-devel >= 3.3.6
20 BuildRequires:  OpenGL-devel
21 %{?_with_liby:BuildRequires:    libY-devel}
22 %{?_with_jsw:BuildRequires:     libjsw-devel}
23 Requires:       OpenGL
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
27
28 %description
29 Linux flight simulator.
30
31 %description -l pl
32 Symulator lotu ¶mig³owcem.
33
34 %prep
35 %setup -q
36 #%patch0 -p1
37
38 %build
39 ./configure Linux --prefix=%{_prefix}
40 %{__make} \
41         LDFLAGS="%{rpmldflags}" OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 %{__make} install \
46         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
47         GAMES_DIR=$RPM_BUILD_ROOT%{_bindir} \
48         MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
49         SHARE_GAMES_DIR=$RPM_BUILD_ROOT%{_datadir} \
50         SHADE_ICONS_DIR=$RPM_BUILD_ROOT%{_pixmapsdir}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc AUTHORS INSTALL README
58 %attr(755,root,root) %{_bindir}/*
59 %{_iconsdir}/SearchAndRescue.xpm
60 %{_mandir}/man6/*
This page took 0.041839 seconds and 3 git commands to generate.