]> git.pld-linux.org Git - packages/SearchAndRescue.git/blobdiff - SearchAndRescue.spec
- added missing definition
[packages/SearchAndRescue.git] / SearchAndRescue.spec
index 1709d3743632619a33f1ad8a92b409b04fbd6241..64f810237db1e6079ca50be90d1910c3f65dbd7f 100644 (file)
@@ -1,27 +1,31 @@
 #
 # TODO:
-#      -fix default paths
-#      -add data subpackage
+#      - fix default paths
 #
 # Conditional build:
 %bcond_with    libY    # build with libY
-%bcond_with    jsw             # uild with joystick support
+%bcond_with    jsw     # uild with joystick support
 #
+%define                shortname       searchandrescue
+%define                data_ver        1.3.0
 Summary:       Search And Rescue - Linux flight simulator
 Summary(pl.UTF-8):     Search And Rescue - symulator lotu śmigłowca
 Name:          SearchAndRescue
-Version:       0.8.2
+Version:       1.3.0
 Release:       0.1
-License:       GPL
+License:       GPL v2+
 Group:         X11/Applications/Games
-Source0:       ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2
-# Source0-md5: e2c56a25adb57554dfb25cc8175b502b
-#Patch0:               %{name}-Makefile.patch
-URL:           http://wolfpack.twu.net/SearchAndRescue/
-BuildRequires: XFree86-devel >= 3.3.6
+Source0:       http://downloads.sourceforge.net/searchandrescue/Program/%{name}-%{version}.tar.gz
+# Source0-md5: a3fdc0bf0414a027da7ced635ec5ee25
+Source1:       http://downloads.sourceforge.net/searchandrescue/Data_Files/%{name}-data-%{data_ver}.tar.gz
+# Source1-md5: 53d6986bd53e7e2b5de0d7bd996a1910
+Patch0:                %{name}-flags.patch
+Patch1:                %{name}-v3dtex.patch
+URL:           http://searchandrescue.sourceforge.net/
 BuildRequires: OpenGL-devel
 %{?with_liby:BuildRequires:    libY-devel}
 %{?with_jsw:BuildRequires:     libjsw-devel}
+BuildRequires: xorg-xserver-server-devel
 Requires:      OpenGL
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,16 +38,23 @@ Linux flight simulator.
 Symulator lotu śmigłowcem.
 
 %prep
-%setup -q
-#%patch0 -p1
+%setup -q -n %{shortname}_%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
-./configure Linux --prefix=%{_prefix}
+./configure Linux \
+       --prefix=%{_prefix}
+
 %{__make} \
-       LDFLAGS="%{rpmldflags}" OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
+       LDFLAGS="%{rpmldflags}" \
+       OPTCFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
+       OPTCPPFLAGS="%{rpmcxxflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/games/%{shortname}
+
 %{__make} install \
        PREFIX=$RPM_BUILD_ROOT%{_prefix} \
        GAMES_DIR=$RPM_BUILD_ROOT%{_bindir} \
@@ -51,12 +62,16 @@ rm -rf $RPM_BUILD_ROOT
        SHARE_GAMES_DIR=$RPM_BUILD_ROOT%{_datadir} \
        SHADE_ICONS_DIR=$RPM_BUILD_ROOT%{_pixmapsdir}
 
+# unpack data files
+tar xvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/games/%{shortname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS INSTALL README
-%attr(755,root,root) %{_bindir}/*
-%{_iconsdir}/SearchAndRescue.xpm
-%{_mandir}/man6/*
+%attr(755,root,root) %{_bindir}/SearchAndRescue
+%{_datadir}/games/%{shortname}
+%{_pixmapsdir}/SearchAndRescue.xpm
+%{_mandir}/man6/SearchAndRescue.6*
This page took 0.061699 seconds and 4 git commands to generate.