]> git.pld-linux.org Git - packages/SearchAndRescue.git/blob - SearchAndRescue.spec
- remove TODO items
[packages/SearchAndRescue.git] / SearchAndRescue.spec
1 #
2 # Conditional build:
3 %bcond_with     libY    # build with libY
4 %bcond_with     jsw     # uild with joystick support
5 #
6 %define         shortname searchandrescue
7 Summary:        Search And Rescue - Linux flight simulator
8 Summary(pl.UTF-8):      Search And Rescue - symulator lotu śmigłowca
9 Name:           SearchAndRescue
10 Version:        1.0.0
11 Release:        0.1
12 License:        GPL v2+
13 Group:          X11/Applications/Games
14 Source0:        http://downloads.sourceforge.net/searchandrescue/Program/%{name}-%{version}.tar.gz
15 # Source0-md5:  3197fe440472e27d36477daaba3b1023
16 Source1:        http://downloads.sourceforge.net/searchandrescue/Data_Files/%{name}-data-%{version}.tar.gz
17 # Source1-md5:  da92f5fa7587cc0a712706d01b2f59f1
18 URL:            http://searchandrescue.sourceforge.net/
19 BuildRequires:  OpenGL-devel
20 %{?with_liby:BuildRequires:     libY-devel}
21 %{?with_jsw:BuildRequires:      libjsw-devel}
22 BuildRequires:  xorg-xserver-server-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.UTF-8
32 Symulator lotu śmigłowcem.
33
34 %prep
35 %setup -q -n %{shortname}_%{version}
36
37 %build
38 ./configure Linux --prefix=%{_prefix}
39 %{__make} \
40         LDFLAGS="%{rpmldflags}" OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_datadir}/games/%{shortname}
45
46 %{__make} install \
47         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
48         GAMES_DIR=$RPM_BUILD_ROOT%{_bindir} \
49         MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man6 \
50         SHARE_GAMES_DIR=$RPM_BUILD_ROOT%{_datadir} \
51         SHADE_ICONS_DIR=$RPM_BUILD_ROOT%{_pixmapsdir}
52
53 # unpack data files
54 tar xvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/games/%{shortname}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc AUTHORS INSTALL README
62 %attr(755,root,root) %{_bindir}/*
63 %{_datadir}/games/%{shortname}
64 #%%{_iconsdir}/SearchAndRescue.xpm
65 %{_mandir}/man6/*
This page took 0.06039 seconds and 4 git commands to generate.