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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | Group: Games/Other # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install unzip # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: nogravity Version: 2.00 Release: alt2_37 Summary: Space shooter in 3D 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 Source8: %{name}.appdata.xml 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 Patch13: nogravity-2.00-stdint_h.patch Patch14: nogravity--gcc6.patch Requires: %{name}-data = %{version} BuildRequires: gcc-c++ BuildRequires: libSDL_mixer-devel libopenal-devel libpng-devel libvorbis-devel BuildRequires: automake desktop-file-utils libappstream-glib Requires: icon-theme-hicolor glxgears 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 %patch13 -p1 %patch14 -p1 sed -i 's/\r//g' GNU.TXT README.TXT pushd src/Linux sh bootstrap popd %patch33 -p2 %build export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS" pushd src/Linux %configure --enable-sound=sdl_mixer --disable-opengl %make_build LDADD=-lz mv %{name} %{name}-software make distclean %configure --enable-sound=openal --enable-opengl %make_build LDADD=-lz mv %{name} %{name}-opengl popd %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata 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 install -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/appdata appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml %files %doc GNU.TXT README.TXT %{_bindir}/%{name}* %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %changelog * Sat Feb 27 2021 Igor Vlasenko <viy@altlinux.org> 2.00-alt2_37 - update to new release by fcimport * Sat Feb 03 2018 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_29 - update to new release by fcimport * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_28 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_26 - update to new release by fcimport * Tue Mar 29 2016 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_25 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_23 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_22 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_21 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_20 - update to new release by fcimport * Tue May 07 2013 Igor Vlasenko <viy@altlinux.ru> 2.00-alt2_19 - update to new release by fcimport * 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 |