Package nogravity: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | # BEGIN SourceDeps(oneline): BuildRequires: gcc-c++ unzip # END SourceDeps(oneline) Name: nogravity Version: 2.00 Release: alt2_18 Summary: Space shooter in 3D Group: Games/Other License: GPLv2+ URL: http://www.realtech-vr.com/nogravity/ Source0: http://downloads.sourceforge.net/%{name}/rt-%{name}-src.zip Source2: %{name}.desktop Source3: %{name}.png Source4: nogravity--Makefile.am Source5: nogravity--bootstrap Source6: nogravity--configure.in Source7: nogravity.sh Patch0: nogravity--snd_sdlmixer_c-powerpc-fix.diff Patch1: nogravity--fullscreen_as_option.patch Patch2: nogravity--fixed_path_to_game_data.diff Patch3: nogravity--64-bit.patch Patch4: nogravity--cvs.patch Patch5: nogravity--openal.patch # See: https://www.redhat.com/archives/fedora-games-list/2007-June/msg00000.html Patch6: nogravity--README.patch Patch7: nogravity--bufer-overflows.patch Patch8: nogravity--strcpy-abuse.patch Patch9: nogravity-2.00-rhbz699274.patch Patch10: nogravity-2.00-libpng15.patch Patch11: 0001-v3xscene-Remove-some-unused-code.patch Patch12: 0002-rlx32-Stop-using-MaxExtentableObjet.patch Requires: %{name}-data = %{version} BuildRequires: libSDL_mixer-devel libopenal-devel libpng-devel libvorbis-devel BuildRequires: automake desktop-file-utils Requires: icon-theme-hicolor xdriinfo glxinfo Source44: import.info Patch33: nogravity-2.00-alt-libpng15.patch %description No Gravity is a fantastic and futuristic universe made of five intergalactic worlds. An arcade type game with great playability, where it is easy to plunge into space battles against spacefighters, space stations and more! %prep %setup -q -c cp %{SOURCE4} ./src/Linux/Makefile.am cp %{SOURCE5} ./src/Linux/bootstrap cp %{SOURCE6} ./src/Linux/configure.in %patch0 -b .snd_sdlmixer_c-powerpc-fix %patch1 -b .fullscreen_as_option %patch2 -b .fixed_path_to_game_data %patch3 -p1 -b .64-bit %patch4 -p1 -b .cvs %patch5 -p1 -b .openal %patch6 -p1 -b .license %patch7 -p1 -b .buf-oflow %patch8 -p1 -b .strcpy %patch9 -p1 #patch10 -p1 %patch11 -p1 %patch12 -p1 sed -i 's/\r//g' GNU.TXT README.TXT pushd src/Linux sh bootstrap popd %patch33 -p2 %build pushd src/Linux %configure --enable-sound=sdl_mixer --disable-opengl make %{?_smp_mflags} LDADD=-lz mv %{name} %{name}-software make distclean %configure --enable-sound=openal --enable-opengl make %{?_smp_mflags} LDADD=-lz mv %{name} %{name}-opengl popd %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps install -m 755 src/Linux/%{name}-software $RPM_BUILD_ROOT%{_bindir} install -m 755 src/Linux/%{name}-opengl $RPM_BUILD_ROOT%{_bindir} install -p -m 755 %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/%{name} desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE2} install -p -m 644 %{SOURCE3} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png %files %doc GNU.TXT README.TXT %{_bindir}/%{name}* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %changelog * Mon Feb 25 2013 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_18 - fc update * Fri Oct 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.00-alt2_17.1 - Rebuilt with libpng15 * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_17 - update to new release by fcimport * Wed May 09 2012 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_16 - update to new release by fcimport * Fri Mar 02 2012 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_15 - rebuild with fixed sourcedep analyser (#27020) * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 2.00-alt1_15 - update to new release by fcimport * Mon Dec 12 2011 Igor Vlasenko <viy@altlinux.ru> 2.00-alt1_14 - updated by fcimport * Mon May 23 2011 Igor Vlasenko <viy@altlinux.ru> 2.00-alt1_12 - converted from Fedora by srpmconvert script |